Hi All,
I have one requirement.Could you please give me any solution.
My folder structures as follows:
Root\
Root\sub1\sample1.txt
Root\sub2\sample2.txt
I need to copy all text files into Target folder.
Please find the my
Ant target as follows:
<target name="copyFiles">
<copy todir="C:/Target">
<fileset dir="C:/Root">
<includesfile name="**/*.txt"/>
</fileset>
</copy>
</target>
But it will copies the text files as well as folder sttructue on Target folder.
I am expecting Target folder as follows:
Target\
Sample1.txt
Sample2.txt
Could any body please give me solution for this.
Regards,
Sasank.