ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramu Sethu" <sra...@yahoo.co.in>
Subject Re: copy multiple directories into one
Date Mon, 10 Mar 2008 06:09:41 GMT
You could also try this.... Not 100% sure about this one ...:-)

<copy todir="Target/src">
  <fileset dir="." includes="Project*/src/**"/>
</copy>

On Mon, Mar 10, 2008 at 11:28 AM, <Jan.Materne@rzf.fin-nrw.de> wrote:

> <copy todir="Target/src">
>   <fileset dir="ProjectA/src"/>
>   <fileset dir="ProjectB/src"/>
> </copy>
>
>
> Jan
>
>
> > -----Ursprüngliche Nachricht-----
> > Von: Lars Ohlén [mailto:lars@ohlen.se]
> > Gesendet: Sonntag, 9. März 2008 13:14
> > An: user@ant.apache.org
> > Betreff: copy multiple directories into one
> >
> > Hi Ant Users!
> >
> > I have a bunch of directories that contains a src folder that
> > contains java code (in package structure)
> > I want to copy all the directoreis belove the src directory
> > into one diretory (basiclly I want to move all java files
> > including the package structure into one location).
> > See below.
> >
> > I have not found any way to do this. Can anyone share some sample?
> >
> > BR
> >
> > L
> >
> >
> >
> >
> > What I have:
> >
> > Project A
> > |
> > |---- src
> >         |----- com
> >                 |
> >                 |--- company
> >                         |
> >                         |----- package1
> >                                     |
> >                                     |--- <java files>
> >
> > ...
> >
> >
> > Project n
> > |
> > |---- src
> >         |----- com
> >                 |
> >                 |--- company
> >                         |
> >                         |----- package2
> >                                     |
> >                                     |--- <java files>
> >
> >
> > What I want the result to be is
> >
> > Target
> > |
> > |---- src
> >         |----- com
> >                 |
> >                 |--- company
> >                         |
> >                         |----- package1
> >                                     |
> >                                     |--- <java files>
> >                         |----- package2
> >                                     |
> >                                     |--- <java files>
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
Thank you
Ramu S

 If A is success in life, then A equals x plus y plus z. Work is x; y is
play; and z is keeping your mouth shut.
- Albert Einstein

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message