val component_name = "flatlaf-" + version val component_dir =
Components.Directory(target_dir + Path.basic(component_name)).create(progress = progress)
/* download */
Isabelle_System.make_directory(component_dir.lib)
for (lib <- libs) { val lib_path = lib.path(version) val target = component_dir.lib + Path.basic(lib_path.file_name)
Isabelle_System.download_file(
download_url + "/" + lib_path.implode, target, progress = progress) if (lib.exe) File.set_executable(target)
}
val jar_names = libs.flatMap(_.jar_name(version))
/* settings */
val classpath =
libs.flatMap(_.jar_name(version)).map(a => "$ISABELLE_FLATLAF_HOME/lib/" + a)
.mkString(":")
val isabelle_tool =
Isabelle_Tool("component_flatlaf", "build Isabelle flatlaf component from official downloads",
Scala_Project.here,
{ args => var target_dir = Path.current var download_url = default_download_url var version = default_version
val getopts = Getopts("""
Usage: isabelle component_flatlaf [OPTIONS]
Options are:
-D DIR target directory (default ".")
-U URL download URL (default: """ + quote(default_download_url) + """)
-V VERSION version (default: """ + quote(default_version) + """)
Build flatlaf component from official downloads.""", "D:" -> (arg => target_dir = Path.explode(arg)), "U:" -> (arg => download_url = arg), "V:" -> (arg => version = 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.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.