Add option to disable copying files in non standalone bootstraps (#884)

This commit is contained in:
Alexandre Archambault 2018-07-17 18:46:48 +02:00 committed by GitHub
parent d4fff47ebe
commit c6fb16de5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -357,7 +357,7 @@ object Bootstrap extends CaseApp[BootstrapOptions] {
).toList.foldLeft((List.empty[String], List.empty[File])){
case ((urls, files), (url, file)) =>
if (options.options.assembly || options.options.standalone) (urls, file :: files)
else if (url.startsWith("file:/")) (urls, file :: files)
else if (options.options.embedFiles && url.startsWith("file:/")) (urls, file :: files)
else (url :: urls, files)
}

View File

@ -13,6 +13,9 @@ final case class BootstrapSpecificOptions(
@Help("Generate a standalone launcher, with all JARs included, instead of one downloading its dependencies on startup.")
@Short("s")
standalone: Boolean = false,
@Help("Include files in generated launcher even in non-standalone mode.")
@Short("s")
embedFiles: Boolean = true,
@Help("Set Java properties in the generated launcher.")
@Value("key=value")
@Short("D")