You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Juergen Weber <we...@gmail.com> on 2007/09/03 23:17:03 UTC

Re: Defining a set of jars for classpath, jar and manifest

Thanks for your solution, it helps a lot. Probably I'll have to cope
with having to invent an id for each new jar.

On 8/31/07, Jan.Materne@rzf.fin-nrw.de <Ja...@rzf.fin-nrw.de> wrote:
> <path id="all">
>     <fileset id="fs1" ... />
>     <fileset id="fs2" ... />
>     ...
> </path>
>
> <javac classpathref="all"/>
> <jar>
>     <fileset refid="fs1"/>
>     <fileset refid="fs2"/>
>     ...
> </jar>
> <manifestclasspath ...>
>     <classpath refid="all"/>
> </manifestclasspath>
>
>
>
> Jan
>
>
> >-----Ursprüngliche Nachricht-----
> >Von: Juergen Weber [mailto:weberjn@gmail.com]
> >Gesendet: Freitag, 31. August 2007 18:20
> >An: user@ant.apache.org
> >Betreff: Defining a set of jars for classpath, jar and manifest
> >
> >Hi,
> >
> >for building an ear archive I need a set of jars three times:
> >
> >1) for the compiler classpath
> >2) for inclusion in the jar
> >3) an EJB's manifest classpath
> >
> >OK, on the web there are solutions for automatically creating Manifest
> >classpathes, but how can you define only once the set of jars and use
> >that set for 1-3 ?
> >The set of jars is at different places in the filesystem, e.g.
> >
> >/java/commons-io-1.0/commons-io-1.0.jar
> >/java/jakarta-struts-1.2.4/lib/struts.jar
> >/java/mysql-connector-java-2.0.14/mysql-connector-java-2.0.14-bin.jar
> >
> >so the fileset task cannot be used, as it needs a dir attribute.
> >
> >But I need a fileset as input for the jar task.
> >
> >
> >Has anybody an idea how this could be done?
> >
> >Thanks,
> >Juergen
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >For additional commands, e-mail: user-help@ant.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Re: Defining a set of jars for classpath, jar and manifest

Posted by DATACOM - Diego <di...@datacom.ind.br>.
Not exactly the same issue, but you may find these discussions useful:

http://marc.info/?l=ant-user&m=118407191401116&w=2

Diego

Juergen Weber escreveu:
> Thanks for your solution, it helps a lot. Probably I'll have to cope
> with having to invent an id for each new jar.
> 
> On 8/31/07, Jan.Materne@rzf.fin-nrw.de <Ja...@rzf.fin-nrw.de> wrote:
>> <path id="all">
>>     <fileset id="fs1" ... />
>>     <fileset id="fs2" ... />
>>     ...
>> </path>
>>
>> <javac classpathref="all"/>
>> <jar>
>>     <fileset refid="fs1"/>
>>     <fileset refid="fs2"/>
>>     ...
>> </jar>
>> <manifestclasspath ...>
>>     <classpath refid="all"/>
>> </manifestclasspath>
>>
>>
>>
>> Jan


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