ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Meade" <eme...@geekfarm.org>
Subject Re: multiple classpathrefs
Date Thu, 09 Nov 2000 02:52:50 GMT

Stefan Bodewig wrote on 11/8/00 1:22 am:

>>>>>> "EM" == Erik Meade 
><emeade@geekfarm.org> 
>writes:
>
> EM> Is there any reason not 
>to allow multiple 
>classpathrefs separated  
>EM> by commas?  I would 
>like to be able to reuse 
>individual classrefs  EM> 
>together without having to 
>define all the combinations.
>
>You can use nested classpath 
>elements instead. IMHO 
>whenever you feel  need to 
>give a list of things you 
>should use nested elements. 
>Your proposal would prohibit 
>IDs containing a comma.
>
>Stefan

Yes, this sounds good.

 I got the results I wanted by doing:

<path id="ext.jars">
    <fileset dir="${ext.dir}" >
        <include name="**/*.jar" />
    </fileset >
</path>

<path id="weblogic.jars">
    <fileset dir="${weblogic.dir}" >
        <include name="**/*.jar" />
        <include name="**/*.zip" />
    </fileset >
</path>

and then in my Javac tasks:

        <classpath>
            <path refid="ext.jars" />
            <path refid="weblogic.jars" />
        </classpath>

Thanks,
Erik

Mime
View raw message