ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain.Rouvoy" <Romain.Rou...@lifl.fr>
Subject Re: javac task
Date Mon, 11 Mar 2002 17:10:31 GMT
Niall Smart wrote:
> 
> Hi,
> 
Hi ! 

you could try :

<javac>
    <src path="."/>
    <include name="foo/a.java"/>
    <include name="bar/b.java"/>
 </javac> 

Romain

> Lets say I have a build system laid out like this:
> 
> top/
>      build.xml
>      foo/
>          a.java
>          b.java
>      bar/
>          a.java
>          c.java
> 
> Is it possible to compile foo/a.java and bar/c.java using one javac
> target?   The following target natually fails with a "duplicate class:
> a" error.
> 
> <javac>
>    <src path="foo"/>
>    <src path="bar"/>
>    <include name="a.java"/>
>    <include name="b.java"/>
> </javac>
> 
> --
> Niall Smart
> Rococo Software
> 9-11 Upper Baggot St.
> Dublin 4, Ireland
> 
> p: +353 - 1 - 6601315 x221
> f: +353 - 1 - 6601328
> e: niall.smart@rococosoft.com
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

-- 
R. Rouvoy

------------------------------
Romain ROUVOY <rouvoy@lifl.fr>
GOAL Team - LIFL (Laboratoire d'Informatique Fondamentale de Lille)
USTL Lille 1 - France

--
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