I’m trying to store a relative path to a file in my ant build.xml like this:
<property name="foo" location="somedir/myfile" relative="true"/>
According to the Ant manual for Property this is ok syntax, but when running it Ant says:
property doesn’t support the
“relative” attribute
I’m using Apache Ant version 1.7.1 compiled on August 13 2009
Manual that came with 1.7.1 distribution does not mention
relativeproperty.If you look at the top of ant manual link, it says 1.8.0RC1.
I guess these are new 1.8.0 attributes of
propertytask.Probably you should report a bug to the ant team to mark
relativeandbasedirattributes asSince 1.8.0On the other hand if you need a relative path to a
basedir, just use avalueattribute ofpropertytask.— UPDATE
I’ve submitted a bug to ant team