ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baz" <ba...@goodconsultants.com>
Subject Re: compilation dependency from one subdirectory to another?
Date Sat, 24 Jan 2004 03:35:35 GMT
Jacbo, and all,

Yes, your input is good. I already have it. But I also would like to do the
followings:

1. Go to "thissrc" directory and able to compile just that directory...
2. When compiling files in "thissrc" directory, it depends on "thatsrc"
directory's classes or compilation results.

How can i do it?

Thanks

B.

----- Original Message ----- 
From: "Jacob Kjome" <hoju@visi.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Friday, January 23, 2004 11:49 AM
Subject: Re: compilation dependency from one subdirectory to another?


> You can have something like...
>
> thissrc/
>
> thatsrc/
>
> othersrc/
>
>
> <javac ....>
>    <src path="thissrc"/>
>    <src path="thatsrc"/>
>    <src path="othersrc"/>
> </javac>
>
> However, I'm not sure this is what you want given that I think you want to
have
> separate build files for compiling each src.  If you want to do that,
though,
> then you will need to get rid of circular dependencies.  Hope that
answered your
> question.
>
> Jake
>
> Quoting Baz <barry@goodconsultants.com>:
>
> > Jake,
> >
> > Thanks for the reply. Are you referring the following structure?
> >
> > Parentdir_C/
> >     Dir_A/
> >     Dir_B/
> >
> > The build.xml in directory C just have the javac one single source
directory
> > at directory C? I was doing it like that, however, then you cannot go to
> > directory and just type ant to compile A right?
> >
> > Thanks and please comment.
> >
> > B.
> >
> > ----- Original Message -----
> > From: "Jacob Kjome" <hoju@visi.com>
> > To: "Ant Users List" <user@ant.apache.org>
> > Sent: Thursday, January 22, 2004 8:34 PM
> > Subject: Re: compilation dependency from one subdirectory to another?
> >
> >
> >
> > Well, it is possible to point to multiple src directories in a single
> > <javac> task, so you could try that, but I'm not sure that is quite what
> > you are looking for.
> >
> > Jake
> >
> > At 06:36 PM 1/22/2004 -0600, you wrote:
> >
> >
> > >Anyone can comment on this subject?
> > >
> > >Thanks
> > >
> > >B.
> > >
> > >----- Original Message -----
> > >From: "Baz ¤Ñª°" <sky_fox1@yahoo.com>
> > >To: <ant-user@jakarta.apache.org>
> > >Sent: Tuesday, January 20, 2004 9:16 PM
> > >Subject: Re: compilation dependency from one subdirectory to another?
> > >
> > >
> > > > All,
> > > >
> > > > The first thing comes to my head is to do <ant dir="../B"
> > > > Target="compile"/> from directory A. Is it the right way to do it?
> > > >
> > > > Thanks
> > > >
> > > > Barry
> > > >
> > > > --- In apache-ant@yahoogroups.com, barry@g... wrote:
> > > > > Hi all,
> > > > >
> > > > > What is the correct way to do the followings?
> > > > >
> > > > > If module A depends on the classes from module B, then how can I
> > > > use ant to do
> > > > > it? The build.xml in src directory is building B then A. So thats
> > > > not a
> > > > > problem. But I would like to be able to go to A directory and
> > > > build B if B is
> > > > > not built.
> > > > >
> > > > > Directory structure
> > > > >
> > > > > src/
> > > > >   build.xml
> > > > >      A/
> > > > >      build.xml
> > > > >      B/
> > > > >      build.xml
> > > > >
> > > > >
> > > > > Thank you.
> > > > >
> > > > > B
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> -------------------------------------------------------------------
> > > > --
> > > > > To unsubscribe, e-mail: user-unsubscribe@a...
> > > > > For additional commands, e-mail: user-help@a...
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > 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
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
> ---------------------------------------------------------------------
> 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