This post originated from an RSS feed registered with Java Buzz
by Mats Henricson.
Original Post: Watch out for the <arg> tag in ant
Feed Title: Code:Q
Feed URL: http://sedoparking.com/search/registrar.php?domain=®istrar=sedopark
Feed Description: Mats Henricson's weblog
So, I figured out the problem I had with passing in "-i x/y/z/upl.xsd" to Castor. It turned out to be me, using the <arg> tag incorrectly. In all examples in the ant docs the <arg> tag is used like this:
<arg value="-h"/>
So, I was naturally doing this:
<arg value="-i x/y/z/upl.xsd"/>
Ooops. This will only pass in "-i", nothing else. What you need to do is:
<arg line="-i x/y/z/upl.xsd"/>
Now it will pass in "-i x/y/z/upl.xsd".
I would have figured it out quicker if Castor had given me a better error message, but yeah yeah, I'm just whining... :-)