mirror of https://github.com/sbt/sbt.git
Add option to disable copying files in non standalone bootstraps (#884)
This commit is contained in:
parent
d4fff47ebe
commit
c6fb16de5b
|
|
@ -357,7 +357,7 @@ object Bootstrap extends CaseApp[BootstrapOptions] {
|
||||||
).toList.foldLeft((List.empty[String], List.empty[File])){
|
).toList.foldLeft((List.empty[String], List.empty[File])){
|
||||||
case ((urls, files), (url, file)) =>
|
case ((urls, files), (url, file)) =>
|
||||||
if (options.options.assembly || options.options.standalone) (urls, file :: files)
|
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)
|
else (url :: urls, files)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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.")
|
@Help("Generate a standalone launcher, with all JARs included, instead of one downloading its dependencies on startup.")
|
||||||
@Short("s")
|
@Short("s")
|
||||||
standalone: Boolean = false,
|
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.")
|
@Help("Set Java properties in the generated launcher.")
|
||||||
@Value("key=value")
|
@Value("key=value")
|
||||||
@Short("D")
|
@Short("D")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue