You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Taner Diler <ta...@riskturk.com> on 2005/08/25 17:07:10 UTC
moving folders under a folder
Hi,
I have folder structure like that
ROOTFOLDER
|
---------> OLD_FOLDERS
|
--------->FOLDER_1
--------->FOLDER_2
---------> ...
--------->FOLDER_N
.
I want to write a target that moves FOLDER_1, FOLDER_2,...,FOLDER_N
under OLD_FOLDERS folder.
I wrote an target like that:
<target name="BACKUP**" >
<move todir="${ROOTFOLDER}\\OLD_FOLDERS" >
<!-- select the files to copy with a fileset -->
<fileset dir="${ROOTFOLDER}">
<include name="**/*"/>
<exclude name="**/OLD_FOLDERS/*"/>
<exclude name="**/OLD_FOLDERS"/>
</fileset>
</move>
</target>
this definition moves all folders named as FOLDER_*. But it copy
OLD_FOLDERS folder under OLD_FOLDERS folder.
Is there a mistake in the target definition?
Thanks
Taner
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org