I have two projects, each with its own ant build file.
What should I do so that, when I build project B, it will first build project A using project A’s antfile?
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 achieve this by using the ant task, which runs ant on an external buildfile.
Example:
Properties
By default all current properties are passed to the invoked ant build, this can be disabled by setting
inheritAll="false", if you want the other build to behave natively.Properties that are need can be passed by nested tags: