ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertjan Broeksema <b.broeks...@home.nl>
Subject Re: copying files
Date Tue, 03 Jun 2003 13:33:28 GMT
A until now i just worked with directory's, but maybe it's a pretty good idea 
to make it a package. Can u give me an example on how to handle if it is a 
package?

On Tuesday 03 June 2003 15:23, Tharp, Joshua L, SOLGV wrote:
> Are gui and base packages or just directories? It looks like you have
> two directories, no packages, and you tell ant to put all of the class
> files in the temp directory (destdir="${bTemp}"). If gui and base are
> packages then you can specify srcdir="src" and the java files under that
> will be picked up. At that point you should specify destdir="build" and
> the class files will end up in their respective directories.
>
> Josh
>
> -----Original Message-----
> From: Bertjan Broeksema [mailto:b.broeksema@home.nl]
> Sent: Tuesday, June 03, 2003 6:18 AM
> To: Ant Users List
> Subject: Re: copying files
>
> This is my javac statement to compile my source:
>
> <javac
> srcdir="${sAdministratie}:${sControle}:${sDatabase}:${sDetails}:${sDiver
> sen}:${sGui}:${sPrinter}"
> 			destdir="${bTemp}"/>
>
> I'm pretty new to ant, so if there is a better way to get the files in
> the
> right dir tell me plz. Btw the srcdir needs to be done this way cause
> files
> in sAdministratie and sDatabase are two way dependence.
>
> On Tuesday 03 June 2003 15:08, Tharp, Joshua L, SOLGV wrote:
> > Are you actually compiling? Your example looks like a copy. Could you
> > show us your build target?
> >
> > If you are compiling, does each of your source files have a package
> > statement?
> >
> > Josh
> >
> > -----Original Message-----
> > From: Bertjan Broeksema [mailto:b.broeksema@home.nl]
> > Sent: Tuesday, June 03, 2003 6:05 AM
> > To: user@ant.apache.org
> > Subject: copying files
> >
> > Can any one help me with this:
> >
> > I've in each source dir a file that contains a list of files in that
> > dir. When
> > i run my compile target all classes come in one dir. But i want them
>
> in
>
> > the
> > same dir structure as before. Therefore i want to use the filelist in
> > each
> > original dir to copy the compiled files to the right dir.
> >
> > When i have compiled i've something like this:
> > - src
> >
> >    |_ gui
> >    |
> >    |	|_ gui1.java
> >    |	|_ fgui2.java
> >    |	|_ filelist.txt
> >    |
> >    |_base
> >    |
> >    |	|_base1.java
> >    |	|_base2.java
> >    |	|_ filelist.txt
> >
> > - build
> >
> >    |_gui
> >    |_base
> >    |_tmp
> >    |
> >    |	|_ gui1.java
> >    |	|_ fgui2.java
> >    |	|_base1.java
> >    |	|_base2.java
> >
> > All files come in the tmp dir. But the question is thus how to get
>
> them
>
> > in the
> > right dir.
> >
> > Grtz,
> >
> > Bertjan
> >
> > ---------------------------------------------------------------------
> > 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