Updated the Jar task to have an whenmanifestonly attribute,
creating the possibility to skip jar files that would
otherwise only contain a jar file. Also started to use this
for the optional tasks in the build.xml
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@293157 13f79535-47bb-0310-9956-ffa450edef68
@@ -43,6 +43,13 @@ note that ZIP files store file modification times with a granularity
of two seconds. If a file is less than two seconds newer than the
of two seconds. If a file is less than two seconds newer than the
entry in the archive, Ant will not consider it newer.</p>
entry in the archive, Ant will not consider it newer.</p>
<p>The <code>whenmanifestonly</code> parameter controls what happens when no
files, apart from the manifest file, match.
If <code>skip</code>, the JAR is not created and a warning is issued.
If <code>fail</code>, the JAR is not created and the build is halted with an error.
If <code>create</code>, (default) an empty JAR file (only containing a manifest)
is created.</p>
<p>(The Jar task is a shortcut for specifying the manifest file of a JAR file.
<p>(The Jar task is a shortcut for specifying the manifest file of a JAR file.
The same thing can be accomplished by using the <i>fullpath</i>
The same thing can be accomplished by using the <i>fullpath</i>
attribute of a zipfileset in a Zip task. The one difference is that if the
attribute of a zipfileset in a Zip task. The one difference is that if the
@@ -155,6 +162,11 @@ to a value other than its default, <code>"add"</code>.</b></p>
the destination file if it already exists. Default is "false".</td>
the destination file if it already exists. Default is "false".</td>
<td valign="top" align="center">No</td>
<td valign="top" align="center">No</td>
</tr>
</tr>
<tr>
<td valign="top">whenmanifestonly</td>
<td valign="top">behavior when no files match. Valid values are "fail", "skip", and "create". Default is "create".</td>
<td valign="top" align="center">No</td>
</tr>
<tr>
<tr>
<td valign="top">duplicate</td>
<td valign="top">duplicate</td>
<td valign="top">behavior when a duplicate file is found. Valid values are "add", "preserve", and "fail". The default value is "add". </td>
<td valign="top">behavior when a duplicate file is found. Valid values are "add", "preserve", and "fail". The default value is "add". </td>
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.