ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
Subject Re: Updating a jar file
Date Fri, 14 Nov 2003 02:42:16 GMT

Try excludes="**/*.war"


At 05:51 PM 11/13/2003 -0600, you wrote:
>I am new to ant, and I know that this is probably a simple fix, but I can't
>put my finger on what's wrong the following script:
>     <!-- Copy war file to bin -->
>         <copy file="${portal.war}" tofile="${dist}/${}.war"
>                         overwrite="yes">
>     </copy>
>   <!-- Update WAR file This section still is not working-->
>         <jar jarfile="${dist}/${}.war"
>         basedir="${dist}" update="yes">
>      </jar>
>When I run this script, I am able to copy portal.war over to my dist
>directory and rename it UnifocusPortal.  But when I attempt to update the
>war file with the new/revised classes, while excluding the war file I just
>copied, the build fails.  Using the -v option when running ant, I get the
>         [copy] Copying 1 file to C:\UnifocusPortal\dist
>         [copy] Copying C:\Downloads\portal\bin\portal.war to
>          [jar] Updating jar since jar manifest has changed
>          [jar] BUILD FAILED:
>: A zip file cannot include itself
>I thought that the excludes parameter would exclude the war file from trying
>to include itself while I am attempting to update the same file.  What am I
>missing here?
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message