@@ -106,9 +106,22 @@ <h3>Parameters specified as nested elements</h3>
106
106
< h4 > runtime</ h4 >
107
107
< p > A < a href ="http://ant.apache.org/manual/Types/fileset.html "> fileset</ a > representing the Java
108
108
runtime to embed in the application. Corresponds to the < code > JVMRuntime</ code > key in the
109
- < tt > Info.plist</ tt > file. If specified, the contents of this directory will be copied to the
110
- < tt > Contents/PlugIns/</ tt > folder of the generated bundle. If unspecified, the target system must
111
- have a shared JRE installed in < tt > /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/</ tt > .</ p >
109
+ < tt > Info.plist</ tt > file.</ p >
110
+
111
+ < p > This element is optional. If specified, the runtime will be copied to the
112
+ < tt > Contents/PlugIns/</ tt > folder of the generated bundle. If omitted, the target system must
113
+ have a shared JRE installed in < tt > /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/</ tt >
114
+ in order to run the application.</ p >
115
+
116
+ < p > By default, the following runtime content will be excluded from the generated bundle:< p >
117
+ < ul >
118
+ < li > < tt > Contents/Home/bin/</ tt > </ li >
119
+ < li > < tt > Contents/Home/jre/bin/</ tt > </ li >
120
+ < li > < tt > Contents/Home/man/</ tt > </ li >
121
+ < li > < tt > Contents/Home/src.zip</ tt > </ li >
122
+ </ ul >
123
+
124
+ < p > Additional content can be excluded using nested < code > <excludes/></ code > elements.</ p >
112
125
113
126
< h4 > classpath</ h4 >
114
127
< p > A < a href ="http://ant.apache.org/manual/Types/fileset.html "> fileset</ a > representing the class
@@ -151,8 +164,10 @@ <h4>argument</h4>
151
164
</ table >
152
165
153
166
< h3 > Examples</ h3 >
154
- < p > Generate a launcher for the "Swing Set" demo, bundling the JRE defined by the
155
- < tt > JAVA_HOME</ tt > environment variable with the resulting executable:</ p >
167
+ < p > Generate a launcher for the "Swing Set" demo, bundling the JRE defined by the < tt > JAVA_HOME</ tt >
168
+ environment variable with the resulting executable. In addition to the default excludes, the
169
+ contents of the < tt > Contents/Home/db/</ tt > and < tt > Contents/Home/lib/</ tt > folders will also be
170
+ excluded from the bundled runtime:</ p >
156
171
< pre >
157
172
<-- Import environment variables -->
158
173
<property environment="env"/>
@@ -169,6 +184,9 @@ <h3>Examples</h3>
169
184
shortversion="1.0"
170
185
mainclassname="SwingSet2">
171
186
<runtime dir="${env.JAVA_HOME}/../.."/>
187
+ <exclude name="Contents/Home/db/"/>
188
+ <exclude name="Contents/Home/lib/"/>
189
+ </runtime>
172
190
<classpath file="/Library/Java/Demos/JFC/SwingSet2/SwingSet2.jar"/>
173
191
<option value="-Dapple.laf.useScreenMenuBar=true"/>
174
192
</bundleapp>
0 commit comments