You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Bertjan Broeksema <b....@home.nl> on 2003/06/03 15:04:42 UTC

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

RE: copying files

Posted by Sachin Chowdhary <cs...@pisoftek.com>.
Hi you should place package tag in *.java file.so that when you compile your
files you dont't need to
mention Ant will Automatically create same output directory structure for
you.

So in you don't need to do somthing special

Ok


-----Original Message-----
From: Bertjan Broeksema [mailto:b.broeksema@home.nl]
Sent: Tuesday, June 03, 2003 6:35 PM
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