@@ -106,9 +106,22 @@ <h3>Parameters specified as nested elements</h3>
106106< h4 > runtime</ h4 >
107107< p > A < a href ="http://ant.apache.org/manual/Types/fileset.html "> fileset</ a > representing the Java
108108runtime 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 >
112125
113126< h4 > classpath</ h4 >
114127< p > A < a href ="http://ant.apache.org/manual/Types/fileset.html "> fileset</ a > representing the class
@@ -151,8 +164,10 @@ <h4>argument</h4>
151164</ table >
152165
153166< 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 >
156171< pre >
157172<-- Import environment variables -->
158173<property environment="env"/>
@@ -169,6 +184,9 @@ <h3>Examples</h3>
169184 shortversion="1.0"
170185 mainclassname="SwingSet2">
171186 <runtime dir="${env.JAVA_HOME}/../.."/>
187+ <exclude name="Contents/Home/db/"/>
188+ <exclude name="Contents/Home/lib/"/>
189+ </runtime>
172190 <classpath file="/Library/Java/Demos/JFC/SwingSet2/SwingSet2.jar"/>
173191 <option value="-Dapple.laf.useScreenMenuBar=true"/>
174192 </bundleapp>
0 commit comments