For me the jar task itself works properly while supplying my own manifest. Try saving the manifest file using textpad editor, while saving choose the file format as PC and file encoding as ANSI. This works fine for me.
Cheers, Sugu -----Original Message----- From: Gaurav Sharma [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 1:11 PM To: Ant Users List Subject: RE: Executable jar using ANT-urgent hi, I think you are right. There is something wrong with which ANT saves manifest file. Even if I suppy my own manifets file using manifest "attribtue" of "jar" task, the executable jar doesn't work. Only wasy it works is when I use jar tool manually to make executable jar. Is it some kind of bug!!! thanks. -----Original Message----- From: H, Sugumaran (CORP, GEITC) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 12:33 PM To: Ant Users List Subject: RE: Executable jar using ANT-urgent I also faced the same kind of problem. Now I am supplying my own manifest file itself. This one works properly. One of the reason behind this could the file format in which manifest was saved by Ant. Cheers, Sugu -----Original Message----- From: Gaurav Sharma [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 12:09 PM To: Ant Users List Subject: Executable jar using ANT-urgent Hi, I am building an executable jar using jar task . I use following syntax <jar jarfile="${assembly}/test.jar"> <fileset dir="${build}"/> <manifest> <attribute name="Main-Class" value="a.b.MainClass"/> <attribute name="Class-Path" value="classes12.zip mail.jar activation.jar"/> </manifest> </jar> </target> When I run this jar, I get exceptions as application doesn't find classes referenced by Class-Path attribute. I checked the manifest generated by ANT. It has all the things proper like space after Class-Path attribte and new line after Class-Path enteries. If I write the same Manifest manually and make jar, it runs properly. I dont understand why should Class-Path attribute cause propblem if generated by ANT. Anybody got any clues!!! Thanks. -----Original Message----- From: Azoulay, Zacky [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 1:06 AM To: 'Ant Users List' Subject: send mail if target fail Hi, I need to run some target even if one of them was fail. can we run a target and continue if it was fail. I need to run mail target from the same build xmlfile in case of another target was fail. <target name="check.error" > <fail message="mmm"/> <property name="lll" value="aaa"/> </target> <target name="a" depends="check.error" if="lll"> <antcall target="sendmail"/> </target> regards zacky -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>