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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to