ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <ddevie...@gmail.com>
Subject Re: "available" appears to get confused if I use "-f buildfile"
Date Thu, 19 Aug 2010 21:45:40 GMT
On Thu, Aug 19, 2010 at 3:47 PM, KARR, DAVID (ATTSI) <dk068x@att.com> wrote:
>      <available file="review" type="dir" property="review.dir.exists"/>

your file="review" will be resolved against the current 'basedir' of
the build (the basedir attribute of the top-level <project> element),
and the 'basedir' of an imported file is affected by the importer
(which may import it indirectly to complicate matters).

Either use an absolute path by using a property,
file="${mypath}/review", and use the "magic" property that contains
the directory of the current build file, in case it's imported. It's
documented somewhere, either the doc of <import> or the Ant Wiki. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message