Posted: Thu Jan 26, 2012 8:36 am Post subject: arguing with Ant
Grand Master
Joined: 25 Jun 2008 Posts: 17447
I have recently had a fun time trying to figure out why an Ant task was not properly executing my mqsicreatebar command.
I had done something useful sounding by putting the values that would be passed to -o and -p into specific properties in a properties file (thus ensuring that I would not need to alter my script to build different projects!).
The fun part of this is that it would work as long as project list and object list were only a single value.
When Ant sees <arg value=""> and it determines that the contents of the value includes spaces, then Ant decides that it needs to pass this value wrapped in double-quotes.
So when I ended up with more than one project and more than one object, ant would be passing
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum