@@ -95,34 +95,34 @@ <h3>Parameters</h3>
95
95
</ tr >
96
96
< tr >
97
97
< 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 >
101
99
< td align ="center " valign ="top "> Yes</ td >
102
100
</ tr >
103
101
</ table >
104
102
105
103
< h3 > Parameters specified as nested elements</ h3 >
106
104
< h4 > runtime</ h4 >
107
105
< 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 >
110
107
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 >
115
112
116
- < p > By default, the following runtime content will be excluded from the generated bundle:< p >
117
113
< 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 >
122
118
</ ul >
123
119
124
120
< p > Additional content can be excluded using nested < code > <excludes/></ code > elements.</ p >
125
121
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
+
126
126
< h4 > classpath</ h4 >
127
127
< p > A < a href ="http://ant.apache.org/manual/Types/fileset.html "> fileset</ a > representing the class
128
128
path of the bundled application. Corresponds to the < tt > java.class.path</ tt > system property.
@@ -166,8 +166,8 @@ <h4>argument</h4>
166
166
< h3 > Examples</ h3 >
167
167
< p > Generate a launcher for the "Swing Set" demo, bundling the JRE defined by the < tt > JAVA_HOME</ tt >
168
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 >
169
+ contents of the < tt > db/</ tt > and < tt > lib/</ tt > folders will also be excluded from the bundled
170
+ runtime:</ p >
171
171
< pre >
172
172
<-- Import environment variables -->
173
173
<property environment="env"/>
@@ -183,9 +183,9 @@ <h3>Examples</h3>
183
183
identifier="com.oracle.javax.swing.SwingSet2"
184
184
shortversion="1.0"
185
185
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/"/>
189
189
</runtime>
190
190
<classpath file="/Library/Java/Demos/JFC/SwingSet2/SwingSet2.jar"/>
191
191
<option value="-Dapple.laf.useScreenMenuBar=true"/>
0 commit comments