ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien BLANC <Sebastien.Bl...@alcatel.com>
Subject Re: manifest task / wrapping after 72 bytes
Date Fri, 22 Nov 2002 01:48:52 GMT
BUILD FAILED
file: ....org.apache.tools.ant.taskdefs.ManifestException: The attribute "classpath"
may not occur more than once in the same section.
do u have any idea of another way to perform it with ant (contrib foreach ?) ?
seb.

Conor MacNeill wrote:

> Sebastien BLANC wrote:
> > Hello Connor !
> > u mean the task supports multiple arguments ? do u have an example coz I'm not
> > sure wat u mean ?
> > or do u mean that java allows u to put
> > classpath: jarfile1
> > classpath: jarfile2 ?
>
> yes, this is allowed and in Ant you achieve this by
>
> <manifest file="${thispkg.dir}/META-INF/MANIFEST.MF" mode="update">
>      <attribute name="classpath" value="global-jar-tl1-types.jar"/>
>      <attribute name="classpath" value="global-jar-gem-types.jar"/>
>      <attribute name="classpath" value="ejb-jar-gm3-types.jar"/>
> </manifest>
>
> That should work (although I did not try it just now). Let me know if it
> doesn't
>
> Conor
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


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


Mime
View raw message