There are two folders A and B. I need to copy different files between A and B to a third folder C. How can I do it? There is a difference collection in ant, but how to use it in copy? Thanks for any idea.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Following ANT script will only copy those files not present in both directories:
Test setup:
Running the build demonstrates that the files called “shared” are not copied: