@@ -31,9 +31,7 @@ multiple ones to merge together different trees of files into one JAR.
The extended fileset and groupfileset attributes from the zip task are
also available in the jar task.
See the <a href="zip.html">Zip</a> task for more details and examples.</p>
<p>If the manifest is omitted, a simple one will be supplied by Ant.
If there is a manifest or manifests in your set of files, these manifests can
be used if <i>filesetmanifests</i> is set to <i>merge</i> or <i>mergewithoutmain</i>.</p>
<p>If the manifest is omitted, a simple one will be supplied by Ant.</p>
<p>The <code>update</code> parameter controls what happens if the
JAR file already exists. When set to <code>yes</code>, the JAR file is
updated with the files specified. When set to <code>no</code> (the
@@ -121,19 +119,6 @@ being wrapped and continued on the next line.
<td valign="top">the manifest file to use. This can be either the location of a manifest, or the name of a jar added through a fileset. If its the name of an added jar, the task expects the manifest to be in the jar at META-INF/MANIFEST.MF</td>
<td valign="top" align="center">No</td>
</tr>
<tr>
<td valign="top">filesetmanifest</td>
<td valign="top">behavior when a Manifest is found in a zipfileset or
zipgroupfileset file is found. Valid values are "skip",
"merge", and "mergewithoutmain". "merge"
will merge all of manifests together, and merge this into any other
@@ -66,10 +66,10 @@ We <b>strongly</b> recommend that you use Jakarta Oro.
<td valign="top">flags</td>
<td valign="top">The flags to use when matching the regular expression. For more
information, consult the Perl5 syntax<br />
g --> Global replacement. Replace all occurences found<br />
i --> Case Insensitive. Do not consider case in the match<br />
m --> Multiline. Treat the string as multiple lines of input, using "^" and "$" as the start or end of any line, respectively, rather than start or end of string.<br />
s --> Singleline. Treat the string as a single line of input, using "." to match any character, including a newline, which normally, it would not match.<br />
g : Global replacement. Replace all occurences found<br />
i : Case Insensitive. Do not consider case in the match<br />
m : Multiline. Treat the string as multiple lines of input, using "^" and "$" as the start or end of any line, respectively, rather than start or end of string.<br />
s : Singleline. Treat the string as a single line of input, using "." to match any character, including a newline, which normally, it would not match.<br />
@@ -170,7 +170,7 @@ If false (default) has no effect.
username="auser"
password="secret"
rootlocalfolder="C:\dev\buildtest\co"
force="true"
force="true"
/>
</pre>
@@ -184,7 +184,7 @@ created for them and any non-StarTeam files found in the tree will be deleted.
username="auser"
password="secret"
rootlocalfolder="C:\dev\buildtest\co"
forced="true"
forced="true"
/>
</pre>
And this is a simpler way of accomplishing the same thing as the previous example, using the URL attribute.
@@ -197,7 +197,7 @@ And this is a simpler way of accomplishing the same thing as the previous exampl
rootstarteamfolder="\Dev"
excludes="*.bak *.old"
label="v2.6.001"
forced="true"
forced="true"
/>
</pre>
@@ -211,7 +211,7 @@ end in <i>.bak</i> or <i>.old</i> with the label <i>v2.6.001</i>.
rootlocalfolder="C:\dev\buildtest\co"
includes="*.htm,*.html"
excludes="index.*"
forced="true"
forced="true"
/>
</pre>
@@ -227,8 +227,8 @@ not be checked out by this command.
rootlocalfolder="C:\dev\buildtest\co"
includes="*.htm,*.html"
excludes="index.*"
forced="true"
recursive="false"
forced="true"
recursive="false"
/>
</pre>
This example is like the previous one, but will only check out files in
@@ -240,7 +240,7 @@ C:\dev\buildtest\co, because of the turning off of the recursive attribute.
password="secret"
rootstarteamfolder="src/java"
rootlocalfolder="C:\dev\buildtest\co"
forced="true"
forced="true"
/>
</pre>
<br></br>
@@ -258,7 +258,7 @@ C:\dev\buildtest\co, because of the turning off of the recursive attribute.
password="secret"
rootstarteamfolder="src/java"
rootlocalfolder="C:\dev\buildtest\co\src\java"
forced="true"
forced="true"
/>
</pre>
@@ -351,7 +351,7 @@ change it. If false (default) lock status will not change.
username="auser"
password="secret"
rootlocalfolder="C:\dev\buildtest\co"
forced="true"
forced="true"
/>
</pre>
@@ -365,7 +365,7 @@ For files and folders in the local tree but not in starteam, nothing will be don
username="auser"
password="secret"
rootlocalfolder="C:\dev\buildtest\co"
forced="true"
forced="true"
/>
</pre>
And this is a simpler way of giving the same commands as the command above using the URL shortcut.
@@ -377,7 +377,7 @@ And this is a simpler way of giving the same commands as the command above using
rootlocalfolder="C:\dev\buildtest\co"
rootstarteamfolder="\Dev"
excludes="*.bak *.old"
forced="true"
forced="true"
/>
</pre>
@@ -391,7 +391,7 @@ end in <i>.bak</i> or <i>.old</i> from the tree rooted at"C:\dev\buildtest\co" .
rootlocalfolder="C:\dev\buildtest\co"
includes="*.htm,*.html"
excludes="index.*"
forced="true"
forced="true"
/>
</pre>
@@ -408,8 +408,8 @@ not be checked in by this command.
rootstarteamfolder="src/java"
includes="*.htm,*.html"
excludes="index.*"
forced="true"
recursive="false"
forced="true"
recursive="false"
/>
</pre>
This example is like the previous one, but will only check in files from
@@ -422,8 +422,8 @@ C:\dev\buildtest\co, because of the turning off of the recursive attribute.
rootlocalfolder="C:\dev\buildtest\co"
rootstarteamfolder="src/java"
includes="version.txt"
forced="true"
recursive="false"
forced="true"
recursive="false"
/>
</pre>
This example is like the previous one, but will only check only in one file, C:\dev\buildtest\co\version.txt to the StarTeam folder src/java.
@@ -435,10 +435,10 @@ This example is like the previous one, but will only check only in one file, C:\
rootlocalfolder="C:\dev\buildtest\co"
rootstarteamfolder="src/java"
includes="version.java"
forced="true"
recursive="false"
addUncontrolled="true"
comment="Fix Bug #667"
forced="true"
recursive="false"
addUncontrolled="true"
comment="Fix Bug #667"
/>
</pre>
This example is like the previous one, but will only check only in one file, C:\dev\buildtest\co\version.java to the StarTeam folder src/java. Because the <i>addUncontrolled</i> attribute has been set, if StarTeam does not already control this file in this location, it will be added to the repository. Also, it will write a comment to the repository for this version of the file.
@@ -449,7 +449,7 @@ This example is like the previous one, but will only check only in one file, C:\
password="secret"
rootstarteamfolder="src/java"
rootlocalfolder="C:\dev\buildtest\co"
forced="true"
forced="true"
/>
</pre>
<br></br>
@@ -467,7 +467,7 @@ This example is like the previous one, but will only check only in one file, C:\
password="secret"
rootstarteamfolder="src/java"
rootlocalfolder="C:\dev\buildtest\co\src\java"
forced="true"
forced="true"
/>
</pre>
@@ -606,8 +606,8 @@ while adding a <i>rootlocalfolder</i> and an <i>excludes</i> param ...
* Contains special treatment for files that should end up in the
* <code>WEB-INF/lib</code>, <code>WEB-INF/classes</code> or
* <code>WEB-INF</code> directories of the Web Application Archive.</p>
* <p>(The War task is a shortcut for specifying the particular layout of a WAR file.
* <p>(The War task is a shortcut for specifying the particular layout of a WAR file.
* The same thing can be accomplished by using the <i>prefix</i> and <i>fullpath</i>
* attributes of zipfilesets in a Zip or Jar task.)</p>
* <p>The extended zipfileset element from the zip task (with attributes <i>prefix</i>, <i>fullpath</i>, and <i>src</i>) is available in the War task.</p>
@@ -86,7 +86,7 @@ public class War extends Jar {
* our web.xml deployment descriptor
*/
private File deploymentDescriptor;
/**
* flag set if the descriptor is added
*/
@@ -99,10 +99,10 @@ public class War extends Jar {
}
/**
* <i>Deprecated<i> name of the file to create
* -use <tt>destfile</tt> instead.
* <i>Deprecated<i> name of the file to create
* -use <tt>destfile</tt> instead.
* @deprecated Use setDestFile(File) instead
* @ant.attribute ignored="true"
* @ant.attribute ignore="true"
*/
public void setWarfile(File warFile) {
setDestFile(warFile);
@@ -115,8 +115,8 @@ public class War extends Jar {
public void setWebxml(File descr) {
deploymentDescriptor = descr;
if (!deploymentDescriptor.exists()) {
throw new BuildException("Deployment descriptor: "
+ deploymentDescriptor
throw new BuildException("Deployment descriptor: "
+ deploymentDescriptor
+ " does not exist.");
}
@@ -131,7 +131,7 @@ public class War extends Jar {
/**
* add files under WEB-INF/lib/
*/
public void addLib(ZipFileSet fs) {
// We just set the prefix for this fileset, and pass it up.
fs.setPrefix("WEB-INF/lib/");
@@ -148,7 +148,7 @@ public class War extends Jar {
}
/**
* files to add under WEB-INF;
* files to add under WEB-INF;
*/
public void addWebinf(ZipFileSet fs) {
// We just set the prefix for this fileset, and pass it up.
@@ -180,8 +180,8 @@ public class War extends Jar {
// it's being added twice, meaning the same file is specified
// by the "webxml" attribute and in a <fileset> element.
if (vPath.equalsIgnoreCase("WEB-INF/web.xml")) {
if (deploymentDescriptor == null
|| !deploymentDescriptor.equals(file)
if (deploymentDescriptor == null
|| !deploymentDescriptor.equals(file)
|| descriptorAdded) {
log("Warning: selected " + archiveType
+ " files include a WEB-INF/web.xml which will be ignored "
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.