You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Rebhan, Gilbert" <Gi...@huk-coburg.de> on 2004/08/17 14:34:00 UTC

Move Task ?

Hi,

i wanted to move the contents under a directory to
another directory _without_ moving the directory itself.

How to do that ? I've tried several combinations with
filterset etc. but the dir always gets lost.

dir1/*.* move to dir2/*.* where dir1 should remain.


thanks for any advice!


Regards, Gilbert

 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Move Task ?

Posted by Peter Reilly <pe...@apache.org>.
Try:
    <move todir="to">
      <fileset dir="from" includes="**/*"/>
    </move>


Peter

Rebhan, Gilbert wrote:

>Hi,
>
>i wanted to move the contents under a directory to
>another directory _without_ moving the directory itself.
>
>How to do that ? I've tried several combinations with
>filterset etc. but the dir always gets lost.
>
>dir1/*.* move to dir2/*.* where dir1 should remain.
>
>
>thanks for any advice!
>
>
>Regards, Gilbert
>
> 
>
>---------------------------------------------------------------------
>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