ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From THUFIR HAWAT <hawat.thu...@gmail.com>
Subject Re: RTFM, literally
Date Wed, 16 Mar 2005 10:21:17 GMT
Trying to integrate
<http://ant.apache.org/manual/CoreTasks/manifest.html> into my build
code.  the example doesn't include the "jar" tags.


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

intuitively, it should be:
	<target name="package1" depends="manifest2">
		<jar
			jarfile="${outputDir}/${mainClass1}.jar"
			basedir="${outputDir}"
                        <manifest>
                       			manifest="${outputDir}/MANIFEST.MF"
                       </manifest>
		 />
	</target>

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


Mime
View raw message