@@ -95,34 +95,34 @@ <h3>Parameters</h3>
9595 </ tr >
9696 < tr >
9797 < td valign ="top "> mainclassname</ td >
98- < td valign ="top "> The name of the bundled application's main class.
99- Corresponds to the < code > JVMMainClassName</ code > key in the < tt > Info.plist</ tt >
100- file.</ td >
98+ < td valign ="top "> The name of the bundled application's main class.</ td >
10199 < td align ="center " valign ="top "> Yes</ td >
102100 </ tr >
103101</ table >
104102
105103< h3 > Parameters specified as nested elements</ h3 >
106104< h4 > runtime</ h4 >
107105< p > A < a href ="http://ant.apache.org/manual/Types/fileset.html "> fileset</ a > representing the Java
108- runtime to embed in the application. Corresponds to the < code > JVMRuntime</ code > key in the
109- < tt > Info.plist</ tt > file.</ p >
106+ runtime environment to embed in the application.</ p >
110107
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 >
108+ < p > This element is optional. If specified, the base directory of the fileset must point to the
109+ root directory of a valid Java runtime environment. The contents of the runtime will be copied to
110+ the < tt > Contents/PlugIns/ </ tt > folder of the generated application bundle. By default, the
111+ following content will be excluded from the bundled runtime: </ p >
115112
116- < p > By default, the following runtime content will be excluded from the generated bundle:< p >
117113< 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 >
114+ < li > < tt > bin/</ tt > </ li >
115+ < li > < tt > jre/bin/</ tt > </ li >
116+ < li > < tt > man/</ tt > </ li >
117+ < li > < tt > src.zip</ tt > </ li >
122118</ ul >
123119
124120< p > Additional content can be excluded using nested < code > <excludes/></ code > elements.</ p >
125121
122+ < p > If this element is omitted, a Java runtime environment will not be copied into the generated
123+ bundle, and target systems must have a shared JRE installed in
124+ < tt > /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/</ tt > in order to run the application.</ p >
125+
126126< h4 > classpath</ h4 >
127127< p > A < a href ="http://ant.apache.org/manual/Types/fileset.html "> fileset</ a > representing the class
128128path of the bundled application. Corresponds to the < tt > java.class.path</ tt > system property.
@@ -166,8 +166,8 @@ <h4>argument</h4>
166166< h3 > Examples</ h3 >
167167< p > Generate a launcher for the "Swing Set" demo, bundling the JRE defined by the < tt > JAVA_HOME</ tt >
168168environment 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 >
169+ contents of the < tt > db/</ tt > and < tt > lib/</ tt > folders will also be excluded from the bundled
170+ runtime:</ p >
171171< pre >
172172<-- Import environment variables -->
173173<property environment="env"/>
@@ -183,9 +183,9 @@ <h3>Examples</h3>
183183 identifier="com.oracle.javax.swing.SwingSet2"
184184 shortversion="1.0"
185185 mainclassname="SwingSet2">
186- <runtime dir="${env.JAVA_HOME}/../.. "/>
187- <exclude name="Contents/Home/ db/"/>
188- <exclude name="Contents/Home/ lib/"/>
186+ <runtime dir="${env.JAVA_HOME}"/>
187+ <exclude name="db/"/>
188+ <exclude name="lib/"/>
189189 </runtime>
190190 <classpath file="/Library/Java/Demos/JFC/SwingSet2/SwingSet2.jar"/>
191191 <option value="-Dapple.laf.useScreenMenuBar=true"/>
0 commit comments