I want to do a “javac” inside an antrun plugin based on the availability of a file. How do we add conditions inside the maven-antrun plugin.
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.
You can do this with help of Maven AntRun Plugin.
In the sample ant script executes on clean phase and Ant-Contrib library was used:
You can also view this link: How to execute tasks conditionally using the maven-antrun-plugin?