Ant’s Replace task has a nice option called failOnNoReplacements. Is something like this supported by ReplaceRegexp?
Ant’s Replace task has a nice option called failOnNoReplacements . Is something like this
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.
It looks like the answer is no, that task does not have such an option. For one thing it is not documented.
Secondly, if you browse the source, http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java, you will see that there is no such attribute in the class. It looks like the only exceptions thrown by the task are when it is invoked with invalid arguments.