ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baz" <ba...@goodconsultants.com>
Subject Re: Dependencies between two subdirectories
Date Fri, 12 Mar 2004 15:34:23 GMT
Matt, and all,

Yes, it is possible to define the order of compilation in the parent
directory. However, I would like to be able to go into directory A and type
"ant" and it will check and compile directory B if necessary.

How can I do that?

In my directory A, currently I have a compile-depend target. compile target
depends on compile-depend target. compile-depend target will check the
existence of certain jar files. If they do not exist, then it will do
<subant> ../B directory and start compiling. I am not convence that it is
the correct solution. May be using <depend> but how? Can anyone please give
me some advice? I am sure this is has been done by some of you many many
times.

Thanks

Barry

----- Original Message ----- 
From: "Matt Benson" <gudnabrsam@yahoo.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Friday, March 12, 2004 7:26 AM
Subject: Re: Dependencies between two subdirectories


> --- Baz <barry@goodconsultants.com> wrote:
> >  If subdirectory A depends on the classes from
> > subdirectory B, then how can
> > I
> > use ant to do  it?
>
> Maybe you want to go up a level, make A and B
> subprojects of some "AB" project, then have A depend
> on B at that level, using <subant>.
>
> -Matt
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Search - Find what you're looking for faster
> http://search.yahoo.com
>
> ---------------------------------------------------------------------
> 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