You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-docs/src/main/asciidoc/appendix-executable-jar-format.adoc
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,7 +214,10 @@ NOTE: `PropertiesLauncher` supports loading properties from
214
214
just like a regular `-classpath` on the `javac` command line.
215
215
216
216
|`loader.home`
217
-
|Used to resolve relative paths in `loader.path`. E.g. `loader.path=lib` then `${loader.home}/lib` is a classpath location (along with all jar files in that directory). Also used to locate a `loader.properties file`. Example `file:///opt/app` (defaults to `${user.dir}`).
217
+
|Used to resolve relative paths in `loader.path`. E.g. `loader.path=lib` then
218
+
`${loader.home}/lib` is a classpath location (along with all jar files in that
219
+
directory). Also used to locate a `loader.properties file`. Example `file:///opt/app`
220
+
(defaults to `${user.dir}`).
218
221
219
222
|`loader.args`
220
223
|Default arguments for the main method (space separated)
@@ -271,21 +274,24 @@ TIP: Build plugins automatically move the `Main-Class` attribute to `Start-Class
271
274
the fat jar is built. If you are using that, specify the name of the class to launch using
272
275
the `Main-Class` attribute and leave out `Start-Class`.
273
276
274
-
* `loader.properties` are searched for in `loader.home` then in the root of the classpath,
275
-
then in `classpath:/BOOT-INF/classes`. The first location that exists is used.
276
-
* `loader.home` is only the directory location of an additional properties file (overriding
277
-
the default) as long as `loader.config.location` is not specified.
277
+
* `loader.properties` are searched for in `loader.home` then in the root of the
278
+
classpath, then in `classpath:/BOOT-INF/classes`. The first location that exists is
279
+
used.
280
+
* `loader.home` is only the directory location of an additional properties file
281
+
(overriding the default) as long as `loader.config.location` is not specified.
278
282
* `loader.path` can contain directories (scanned recursively for jar and zip files),
279
283
archive paths, or wildcard patterns (for the default JVM behavior).
280
284
* `loader.path` (if empty) defaults to `BOOT-INF/lib` (meaning a local directory or a
281
285
nested one if running from an archive). Because of this `PropertiesLauncher` behaves the
282
286
same as `JarLauncher` when no additional configuration is provided.
283
-
* `loader.path` can not be used to configure the location of `loader.properties` (the classpath
284
-
used to search for the latter is the JVM classpath when `PropertiesLauncher` is launched).
287
+
* `loader.path` can not be used to configure the location of `loader.properties` (the
288
+
classpath used to search for the latter is the JVM classpath when `PropertiesLauncher`
289
+
is launched).
285
290
* Placeholder replacement is done from System and environment variables plus the
286
291
properties file itself on all values before use.
287
292
* The search order for properties (where it makes sense to look in more than one place)
288
-
is env vars, system properties, `loader.properties`, exploded archive manifest, archive manifest.
293
+
is env vars, system properties, `loader.properties`, exploded archive manifest, archive
Copy file name to clipboardExpand all lines: spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java
Copy file name to clipboardExpand all lines: spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/PropertiesLauncherTests.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2016 the original author or authors.
2
+
* Copyright 2012-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
0 commit comments