ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erwin.de....@belgacom.be
Subject Re: URGENT: Compiling from more than one directory
Date Tue, 03 Jun 2003 09:05:49 GMT



> Hi Bertjan,
> 
> For the src directory in the javac task, it is important to map the
> directory structure to your package structure.
> So, if you have two package roots, 1 in /src/sDatabase and 1 in
> /src/sAdministratie, you should really consider this as 2 src trees.
> You can compile both using 1 javac task as indicated below.
> 
> The include(s) attribute always uses paths relative to the "root" src
> location, so you can not use a parallel src location in an include.
> 
> I've checked the javac task documentation, and they advise the following
> constructs for multiple src locations:
> 
> ...
>   <javac srcdir="${src}:${src2}"
>          destdir="${build}"
>          includes="mypackage/p1/**,mypackage/p2/**"
>          excludes="mypackage/p1/testpackage/**"
>          classpath="xyz.jar"
>          debug="on"
>   />
> is the same as the previous example, with the addition of a second source
> path, defined by the property src2. This can also be represented using
> nested <src> elements as follows:
>   <javac destdir="${build}"
>          classpath="xyz.jar"
>          debug="on">
>     <src path="${src}"/>
>     <src path="${src2}"/>
>     <include name="mypackage/p1/**"/>
>     <include name="mypackage/p2/**"/>
>     <exclude name="mypackage/p1/testpackage/**"/>
>   </javac>
> 
> ...
> 
> Hope this works/helps!
> 
> CHeers
> 
> Erwin
> 
-----Original Message-----
From: Bertjan Broeksema [mailto:b.broeksema@home.nl]
Sent: 11 July 2002 10:54
To: Ant Users List
Subject: Re: URGENT: Compiling from more than one directory


This isn't possible cause sDatabase depents also on sAdministratie.

Grtz,

Bertjan

On Tuesday 03 June 2003 09:50, Verma, Nitin (GECP, OTHER, 529706) wrote:
> Try have :-
>
> projects
>
>
> 	\--build.xml(use <ant/> task to invoke sDatabase/build.xml and then
> sAdministratie)
>
>
> 	\---sDatabase
>
> 	|	\--build.xml(compile src)
> 	|
> 	|
> 	|	\--src
>
> 	\--sAdministratie
>
>
> 		\--build.xml(compile src - classpath having
> sDatabase-<version>.jar)
>
>
> 		\--src
>
>
> -----Original Message-----
> From: Bertjan Broeksema [mailto:b.broeksema@home.nl]
> Sent: Thursday, July 11, 2002 12:02 PM
> To: Ant Users List
> Subject: Re: URGENT: Compiling from more than one directory
>
>
> No they fall both under the same root. Like:
>
> /src/sDatabase
> /src/sAdministratie
>
> I don't know how to do this.
>
> On Tuesday 03 June 2003 01:37, W. Sean Hennessy wrote:
> > is ${sDatabase} a subdirectory of ${sAdministratie} such that
> > *.java files can be found under "${sAdministratie}/${sDatabase}/"
> >
> >
> > -----Original Message-----
> > From: Bertjan Broeksema [mailto:b.broeksema@home.nl]
> > Sent: Wednesday, July 10, 2002 4:27 PM
> > To: user@ant.apache.org
> > Subject: URGENT: Compiling from more than one directory
> >
> >
> > I use the following piece of ant code to compile sourcefiles in a
>
> directory
>
> > that uses source files that are in the sDatabase dir:
> >
> > <javac srcdir="${sAdministratie}"
> > 			destdir="${bAdministratie}"
> > 			includes="${sDatabase}/**" />
> >
> > The problem is that ant says build succesfull but there is notting
> > compiled. How can i solve this?
> >
> > ---------------------------------------------------------------------
> > 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



**** DISCLAIMER **** 
"This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, 
total or partial reproduction, communication or distribution in any form) 
by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation."


Mime
View raw message