Aditya
Aditya

Reputation: 547

How to verify the changes made in ant build file without running the whole build again?

Is there any way by which i can see any errors in build.xml file without running the build again? i mean is there any tool for that?

Upvotes: 3

Views: 92

Answers (2)

Manish
Manish

Reputation: 3968

If you happen to use any IDE (like Eclipse for Java EE Developers edition), they include support for editing of ant build files, including code completion, syntactical error detection etc.

Upvotes: 5

Victor Sorokin
Victor Sorokin

Reputation: 12006

Syntactic parsing of build.xml happens during start of ant. You can just add "empty" ant task that does nothing and run it to validate your build.xml. Candidate for such empty task is task which just prints out targets declared inside build.xml, i.e., "usage help page".

Besides this kind of validation, you can't be 100% sure your build.xml is correct without actually running build process.

Upvotes: 3

Related Questions