ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donald Strong" <dstr...@agentissoftware.com>
Subject RE: dirset too general
Date Tue, 03 Feb 2004 23:21:23 GMT
Hi Craig,

I think you want something that looks more like this.

 <path id="notcommon1">
 	<dirset dir="/common">
 		<include name="**" />
 		<exclude name="notcommon2/**" />
 	</dirset>
 </path>
 
 <path id="notcommon2">
 	<dirset dir="/common">
 		<include name="**" />
 		<exclude name="notcommon1/**" />
 	</dirset>
 </path>

Donald.

> -----Original Message-----
> From: news [mailto:news@sea.gmane.org]On Behalf Of Craig Fleming
> Sent: Tuesday, 3 February 2004 6:43 PM
> To: user@ant.apache.org
> Subject: dirset too general
> 
> 
> Hey there,
> 
> I have a rather interesting directory structure that isn't compiling
> so nice with Ant. Something similar to:
> 
> /common
> /common/notcommon1
> /common/notcommon2
> 
> In order to compile properly I have two paths:
> 
> <path id="notcommon1">
> 	<dirset dir="/common">
> 		<include name="." />
> 		<include name="notcommon1" />
> 	</dirset>
> </path>
> 
> <path id="notcommon2">
> 	<dirset dir="/common">
> 		<include name="." />
> 		<include name="notcommon2" />
> 	</dirset>
> </path>
> 
> When I run javac on these two sets of files, in the first case I
> expect all the files in /common, and all the files in
> /common/notcommon1 to compile, and NONE of the files in
> /common/notcommon2. (And vice versa for the second path). The problem
> is that it doesn't seem to like the "." and any other way I try to do
> it compiles the entire directory structure together. I also tried
> including <exclude name="notcommon2" /> in the first path, but it
> ignored it.
> 
> Thanks for reading :)
> Craig
> 
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message