I have a file which i need to copy from workspace/dir1 to the current project[workspace/dir2]
My ANT build file is in dir2
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.
Have you reviewed the ant tasks that are available to you?
The copy task can be used to do this:
The copy will only happen if the file doesn’t already exist in the project directory, or if the file in
../dir1is newer than the extant copy in the project directory.