ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Taner Diler <>
Subject moving folders under a folder
Date Thu, 25 Aug 2005 15:07:10 GMT

I have folder structure like that

       ---------> OLD_FOLDERS
       ---------> ...
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"/>

 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?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message