ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grinvald, Edward" <Edward.Grinv...@ca.com>
Subject RE: Cross Project Dependencies
Date Fri, 16 Aug 2002 15:06:33 GMT
True, but then i would have to have a target for each of the 20+ (currently) subprojects that
i have. I'd like to avoid that if possible, and just reuse the common <compile> and
<jar> tasks.

Thank You,

Edward Grinvald
Computer Associates International
Programmer, Storage Development
Edward.Grinvald@ca.com
(631) 342 6350


-----Original Message-----
From: Tibor Strausz [mailto:Tibor.Strausz@tridion.com]
Sent: Friday, August 16, 2002 11:06 AM
To: 'Ant Users List'
Subject: RE: Cross Project Dependencies


can't you just use the depend property from the target task
<target name="a" depend="b,c,d"/>

tibi

> -----Original Message-----
> From: Grinvald, Edward [mailto:Edward.Grinvald@ca.com]
> Sent: Friday, August 16, 2002 4:54 PM
> To: ant-user@jakarta.apache.org
> Subject: Cross Project Dependencies
> 
> 
> Hello all,
> 	I have a problem, which i hope you can help me solve:
> My project has several subprojects, let's say a - z.
> Some of the subprojects depend on other subprojects. Let's 
> say a depends on b and c, c depends on d and e, and e depends 
> on f. Assum there are no circular dependencies (i hope there 
> aren't). Each subproject is in a separate directory, so i can 
> say build in a subdirectory, jar, put in 'lib', build in b 
> subdirectory, jar, put in 'lib', etc.
> I am trying to make it so that the user can say he/she wants 
> to build a, and it will go to a, read dependencies on b and c 
> (from a text file or something), go to build b, see 
> dependency on d and e, etc.
> I see no way to do this other then recursion, but i'm having 
> difficulties, because i don't fully understand how recursion 
> would work in ant - would the properties be mixed up if i 
> invoke the same target multiple times, etc.
> 
> Please help.
> 
> Thank You,
> 
> Edward Grinvald
> Computer Associates International
> Programmer, Storage Development
> Edward.Grinvald@ca.com
> (631) 342 6350
> 
> 

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


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