ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gaurav Sharma" <>
Subject Executable jar using ANT-urgent
Date Wed, 17 Jul 2002 06:39:04 GMT

I am building an executable jar using jar task . I use following syntax

<jar jarfile="${assembly}/test.jar">  <fileset dir="${build}"/>

	     <attribute name="Main-Class" value="a.b.MainClass"/>
             <attribute name="Class-Path" value=" mail.jar activation.jar"/>

When I run this jar, I get exceptions as application doesn't find classes referenced by Class-Path
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!!!


-----Original Message-----
From: Azoulay, Zacky []
Sent: Wednesday, July 17, 2002 1:06 AM
To: 'Ant Users List'
Subject: send mail if target fail


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 name="a" depends="check.error" if="lll">		
		<antcall target="sendmail"/>

regards zacky

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

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

View raw message