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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to