Hi!
In "myfolder1" I have many files. I need to find (by name) all files that are 
exist in the folder "myfolder1" AND folder "myfolder2" (and all it's 
subfolders)  and copy finded files from "myfolder1" to "myfolder2"(and all it's 
subfolders).
 
E.g. in the folder "myfolder1" I have the next files:
 myclass1.class
 myclass2.class
 myclass3.class
 myclass4.class
 myclass5.class
 
In the "myfolder2" I have the next subfolders:
 test
 test\test2
 test3
 
In subfolder "myfolder2\test" I have file: "myclass.class".
In subfolder "myfolder2\test\test2" I have files: "myclass2.class", 
"myclass3.class".
In subfolder "myfolder2\test3" I have files: "myclass.class", "myclass3.class".
 
The result of Ant target must be:
1.Copy file "myclass.class" from "myfolder1" to subfolders: "myfolder2/test" 
and "myfolder2/test3".
2.Copy file "myclass2.class" from "myfolder1" to subfolder: "myfolder2/test2".
3.Copy file "myclass3.class" from "myfolder1" to subfolders: "myfolder2/test2" 
and "myfolder2/test3".
4.Files "myclass4.class" and "myclas5.class" must not be copy because they are 
not exist in the folder "myfolder2"
 
 
How I can do this?
 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to