ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Ashby <ant-u...@cashby.me.uk>
Subject Re: RTFM, literally
Date Wed, 16 Mar 2005 10:33:52 GMT
> intuitively, it should be:
> 	<target name="package1" depends="manifest2">
> 		<jar
> 			jarfile="${outputDir}/${mainClass1}.jar"
> 			basedir="${outputDir}"
>                         <manifest>
>                        			manifest="${outputDir}/MANIFEST.MF"
>                        </manifest>
> 		 />
> 	</target>

This is invalid XML syntax. Try this:

 	<target name="package1" depends="manifest2">
 		<jar
 			jarfile="${outputDir}/${mainClass1}.jar"
 			basedir="${outputDir}" manifest="${outputDir}/MANIFEST.MF"
 		 </jar>
 	</target>

See <http://ant.apache.org/manual/CoreTasks/jar.html>. I think you are 
getting confused between the inline Manifest specification, and the 
manifest file attribute.

Christian Ashby
Spiralinks, Inc.

>
> but this gives an error:
>
> BUILD FAILED
> D:\build.xml:37: Element type "jar" must be followed by either
> attribute specifications, ">" or "/>".
>
> which doesn't follow for me, as manifest is nested within jar.  what
> does the error mean, please?
>
>
> thanks,
>
> Thufir
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>



-- 
Christian Ashby

148 City Road
Tilehurst
Reading
RG31 5SD
EU Tel: +44 (118) 941 1037
EU Mob: +44 (7968) 727 568
EU Fax: +44 (7977) 538 928
US Tel: +1  (408) 317 7117

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message