I'm not sure what's going on now. It seems like it should work. The only difference I see between my code and yours is I am updating the manifest file first, then performing the copy and jarring all the files last ...
Sorry I couldn't be any help ... Ray Harper, Jr. Software Engineer II Wachovia Corporation 1525 West WT Harris Blvd. Charlotte, NC, 28270 Tel: 704-427-1717 ? Fax: 704-427-3234 ? Mailcode: NC1077 CONFIDENTIALITY NOTICE: The information accompanying this email transmission may contain confidential or legally privileged information that is intended only for the use of the individual or entity named in this message. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or reliance upon the contents of this email is strictly prohibited. If you receive this email in error, please notify the sender immediately. Pascal Lalonde <[EMAIL PROTECTED]> 10/28/2008 12:55 PM Please respond to "Ant Users List" <user@ant.apache.org> To Ant Users List <user@ant.apache.org> cc Subject RE: Update Manifest This is not working: <jar destfile="${env.repos.username}_${DSTAMP}${TSTAMP}_${env.repos.revision}.zip" basedir="${env.deploy.path}_${env.repos.revision}"> <manifest file="MAN.MF"> <attribute name="Built-By" value="${env.repos.username}"/> <attribute name="Built-Date" value="${DSTAMP}${TSTAMP}"/> <attribute name="Repository" value="${env.repos.url}"/> <attribute name="Revision" value="${env.repos.revision}"/> </manifest> </jar> This is working [Without the file attribute]: <jar destfile="${env.repos.username}_${DSTAMP}${TSTAMP}_${env.repos.revision}.zip" basedir="${env.deploy.path}_${env.repos.revision}"> <manifest> <attribute name="Built-By" value="${env.repos.username}"/> <attribute name="Built-Date" value="${DSTAMP}${TSTAMP}"/> <attribute name="Repository" value="${env.repos.url}"/> <attribute name="Revision" value="${env.repos.revision}"/> </manifest> </jar> - Pascal -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: October 28, 2008 12:48 PM To: Ant Users List Subject: RE: Update Manifest I read something about the Ant Manifest Tag not liking dashes "-" in the names of files ... try to create a file called test.mf and see if this works ... Make sure you hardcode the name first before trying to pass in as a parameter ... Ray Harper, Jr. Software Engineer II Wachovia Corporation 1525 West WT Harris Blvd. Charlotte, NC, 28270 Tel: 704-427-1717 ? Fax: 704-427-3234 ? Mailcode: NC1077 CONFIDENTIALITY NOTICE: The information accompanying this email transmission may contain confidential or legally privileged information that is intended only for the use of the individual or entity named in this message. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or reliance upon the contents of this email is strictly prohibited. If you receive this email in error, please notify the sender immediately. Pascal Lalonde <[EMAIL PROTECTED]> 10/28/2008 12:42 PM Please respond to "Ant Users List" <user@ant.apache.org> To Ant Users List <user@ant.apache.org> cc Subject RE: Update Manifest That's what I tough at the beginning. But they do exist. - Pascal -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: October 28, 2008 12:32 PM To: Ant Users List Subject: Re: Update Manifest You may be getting the error because you are trying to perform an update and the file may not exist Ray Harper, Jr. Software Engineer II Wachovia Corporation 1525 West WT Harris Blvd. Charlotte, NC, 28270 Tel: 704-427-1717 ? Fax: 704-427-3234 ? Mailcode: NC1077 CONFIDENTIALITY NOTICE: The information accompanying this email transmission may contain confidential or legally privileged information that is intended only for the use of the individual or entity named in this message. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or reliance upon the contents of this email is strictly prohibited. If you receive this email in error, please notify the sender immediately. Pascal Lalonde <[EMAIL PROTECTED]> 10/28/2008 11:55 AM Please respond to "Ant Users List" <user@ant.apache.org> To "user@ant.apache.org" <user@ant.apache.org> cc Subject Update Manifest I am attempting to update two manifest files from existing jar and war. The goal of my ant task is to update their manifest file and jar the parent folder. This is what my task looks like: <target name="copy-files"> <echo>********************************************************************</echo> <echo>Copying the binaries to configured destination.</echo> <copy todir="${env.deploy.path}-${env.repos.revision}"> <fileset dir="${env.source.path}/Optimizer/deploy"/> </copy> <tstamp/> <jar destfile="${env.repos.username}-${DSTAMP}${TSTAMP}-${env.repos.revision}.zip" basedir="${env.deploy.path}-${env.repos.revision}"> <manifest> <attribute name="Built-By" value="${env.repos.username}"/> <attribute name="Built-Date" value="${DSTAMP}${TSTAMP}"/> <attribute name="Repository" value="${env.repos.url}"/> <attribute name="Revision" value="${env.repos.revision}"/> </manifest> <manifest file="${env.deploy.path}-${env.repos.revision}/local/comact_Optimizer_main.jar " mode="update"> <attribute name="Built-By" value="${env.repos.username}"/> <attribute name="Built-Date" value="${DSTAMP}${TSTAMP}"/> <attribute name="Repository" value="${env.repos.url}"/> <attribute name="Revision" value="${env.repos.revision}"/> </manifest> <!--manifest file="${env.deploy.path}-${env.repos.revision}/web/EdgExpert.war" mode="update"> <attribute name="Built-By" value="${env.repos.username}"/> <attribute name="Built-Date" value="${DSTAMP}${TSTAMP}"/> <attribute name="Repository" value="${env.repos.url}"/> <attribute name="Revision" value="${env.repos.revision}"/> </manifest--> </jar> <echo>[DONE]</echo> <echo>********************************************************************</echo> </target> The copy is executed without any problem, right after the copy. The build quits without any error, and manifest aren't updated. If I comment the two last manifest call, everything gets executed without any problem. I tried reading the doc to find "update" samples, but didn't find any. Or maybe the manifest calls aren't done at the right place ? Something important to know is that this script is not the one building the jar and war files. Thanks for your help, Pascal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]