Notable difference between Apache Ant 1.7.x and 1.8.x - path and pathelement | MyThinkPond

On key notable difference I’m observing between Apache Ant 1.7.1 and 1.8.1 is with the path and pathelement.

a build.xml file before


If you had a path-id set in a target that may never get executed, Ant will make an attempt to find that path and use it. Whereas with 1.8.1, you will need to move those “Init” properties to the main level so that they will be properly found and used.

build.xml file after Ant 1.8.1


I guess Ant is making it more like a language that if a property is set within a “target”, it’s only accessable within that target.

And so the properties and path-id fields need to be set globally at the main level.

Any thought? or comments?

Venkatt Guhesan avatar
About Venkatt Guhesan
Enterprise Software Architect currently working at DataDirect Networks developing a highly scalable monitoring solution called DDN Insight. My passions include all things Open Source including Linux (CentOS, Red Hat, Gentoo, Open Stack, Docker & Ubuntu), embedded ARM processors and microcontrollers (Arduino, UDOO, Cubieboard, BeagleBoard, OnionIO, TI's Zigbee). Coming from an Electrical and Computer Engineering background, working in developing and designing enterprise - distributed, highly scalable software requires a unique set of software skills with a good understanding of the hardware. This makes his work challenging and interesting. In his free time, he spends his time with his family and two children. He also enjoys researching on topics including - world ancient history and yoga. Visit the 'About' section for more details.
comments powered by Disqus