I’m using Ant 1.8.2. Given a directory, how do I add an “.html” extension to all files in the directory and its sub-directories only if those files don’t already have an .html extension?
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.
There’s an example in the Ant
movetask docs for renaming.bakfiles that is similar, here it is adjusted for.htmlfiles under a directory calledmy_dir:The fileset excludes files that already have the target extension, the mapper defines the renaming pattern.