val patched_scripts = List("bin/scala", "bin/scalac") for (name <- patched_scripts) {
File.change(component_dir.path + Path.explode(name)) {
_.replace(""""-Dscala.home=$PROG_HOME"""", """"-Dscala.home=\"$PROG_HOME\""""")
}
}
/* README */
File.write(component_dir.README, "This distribution of Scala integrates the following parts:\n\n" +
(main_download :: lib_downloads).map(_.print).mkString("\n\n") + """
Minor changes to """ + patched_scripts.mkString(" and ") + """ allow an installation location with spaces in the directory name.
val isabelle_tool =
Isabelle_Tool("component_scala", "build Isabelle Scala component from official downloads",
Scala_Project.here,
{ args => var target_dir = Path.current
val getopts = Getopts("""
Usage: isabelle component_scala [OPTIONS]
Options are:
-D DIR target directory (default ".")
Build Isabelle Scala component from official downloads. """, "D:" -> (arg => target_dir = Path.explode(arg)))
val more_args = getopts(args) if (more_args.nonEmpty) getopts.usage()
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.16Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.