I know how to run a single target in ANT, but it also checks the “depends” attribute and runs those before the target. Is there a way to prevent this or a way to structure my ANT file so that I can do this more easily?
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.
Create a “withoutdeps” version of the target. If you had
Change to
Now you can call A as normal (which will fire off B then AwithoutDeps) or just call AwithoutDeps explicitly and no deps fired. [Note that “depends” calls the dependencies in order]
Of course, choose some better names than these 😉