Copying a Directory
Posted: Tue Dec 06, 2016 5:10 pm
I am sorry if there is a post regarding this already, however, I was unable to find it.
Basically what I want to do is copy a directory and place that copy someplace else. Here is my code. I am using a workspace because I plan to zip the file before copying the file from the workspace to its new home.
Basically what I want to do is copy a directory and place that copy someplace else. Here is my code. I am using a workspace because I plan to zip the file before copying the file from the workspace to its new home.
Code: Select all
<project name="Copy Folder" mainModule="Main" version="2.0" logLevel="verbose">
<module name="Main">
<createWorkspace version="1.0" />
<copy destDir="${system.job.workspace}" version="1.0">
<fileset dir="C:\X\*">
<wildcardFilter>
<include pattern="*" />
</wildcardFilter>
</fileset>
</copy>
<copy destDir="C:\Y" version="1.0">
<fileset dir="${system.job.workspace}" />
</copy>
<deleteWorkspace version="1.0" />
<exitProject version="1.0" />
</module>
</project>