Skip to content

Commit 102c0be

Browse files
author
gk_brown
committed
Specifically exclude binary content from the embedded runtime so it cannot be included via an <include> tag.
git-svn-id: https://svn.java.net/svn/appbundler~svn@23 07572b26-92e5-4d45-f66a-c18421440a21
1 parent ef1357b commit 102c0be

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

appbundler/doc/appbundler.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,12 @@ <h4>runtime</h4>
114114

115115
<p>This element is optional. If specified, the base directory of the fileset must point to the
116116
root directory of a valid Java runtime environment. The contents of the runtime will be copied to
117-
the <tt>Contents/PlugIns/</tt> folder of the generated application bundle. By default, only the
118-
contents of the <tt>jre/</tt> directory (minus <tt>jre/bin/</tt>) will be included in the bundled
119-
application. Additional content can be included or excluded using nested
120-
<code>&lt;include&gt;</code> and <code>&lt;exclude&gt;</code> elements, respectively.</p>
117+
the <tt>Contents/PlugIns/</tt> folder of the generated application bundle.</p>
118+
119+
<p>By default, only the contents of the <tt>jre/</tt> directory will be included with the bundled
120+
application. All executable content (i.e. <tt>bin/</tt>, <tt>jre/bin/</tt>) is excluded. Additional
121+
content can be included or excluded using nested <code>&lt;include&gt;</code> and
122+
<code>&lt;exclude&gt;</code> elements, respectively.</p>
121123

122124
<p>If this element is omitted, a Java runtime environment will not be copied into the generated
123125
bundle, and target systems must have a shared JRE installed in

appbundler/src/com/oracle/appbundler/AppBundlerTask.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ public void addConfiguredRuntime(FileSet runtime) throws BuildException {
139139
});
140140

141141
runtime.appendExcludes(new String[] {
142+
"bin/",
142143
"jre/bin/"
143144
});
144145
}

0 commit comments

Comments
 (0)