ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Taner Diler <tan...@riskturk.com>
Subject moving folders under a folder
Date Thu, 25 Aug 2005 15:07:10 GMT
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


Mime
View raw message