ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: Advanced includes/excludes for javac
Date Mon, 23 Jun 2008 12:13:26 GMT
Give this a try:

<javac ..>
 	<include name="src/proj1/Class1.java src/proj2/Class2.java"/>
</javac>

This is not something I typically do...and don't have time to test it...

The javac task HTML has some more information on this...

On Mon, 23 Jun 2008, Roman Kennke wrote:

> Hi there,
>
> I have a problem with the javac task that I cannot solve, maybe somebody
> can help me. Let's say I have a directory layout like this:
>
> src/proj1/Class1.java
> src/proj1/Class2.java
> src/proj2/Class1.java
> src/proj2/Class2.java
>
> Now I want to compile Class1 from proj1 and Class2 from proj2 and
> exclude the other two. Also, I need to compile those in one go because
> they depend on each other. I didn't find a way to implement this using
> the srcdir attribute, or nested src tags. Any ideas?
>
> Cheers, Roman
>
> -- 
> http://kennke.org/blog/
>

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

Mime
View raw message