This commit is contained in:
Phillip Webb
2014-06-15 09:09:06 -07:00
parent 2f12dc823c
commit a374929c90
4 changed files with 30 additions and 30 deletions

View File

@@ -265,24 +265,23 @@ executable jar file. For example:
$ spring jar my-app.jar *.groovy
----
The resulting jar will contain the classes produced by compiling the
application and all of the application's dependencies so that it can
then be run using `java -jar`. The jar file will also contain entries
from the application's classpath. You can add explicit paths to the
jar using `--include` and `--exclude` (both are comma separated, and
both accept prefixes to the values "+" and "-" to signify that they
shoudl be removed from the defaults). The default includes are
The resulting jar will contain the classes produced by compiling the application and all
of the application's dependencies so that it can then be run using `java -jar`. The jar
file will also contain entries from the application's classpath. You can add explicit
paths to the jar using `--include` and `--exclude` (both are comma separated, and both
accept prefixes to the values ``+'' and ``-'' to signify that they should be removed from
the defaults). The default includes are
[indent=0]
----
public/**, resources/**, static/**, templates/**, META-INF/**, *
public/**, resources/**, static/**, templates/**, META-INF/**, *
----
and the default excludes are
and the default excludes are
[indent=0]
----
.*, repository/**, build/**, target/**, **/*.jar, **/*.groovy
.*, repository/**, build/**, target/**, **/*.jar, **/*.groovy
----
See the output of `spring help jar` for more information.