ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: environment variable property not available in target tag
Date Mon, 25 Feb 2002 10:17:46 GMT
On Mon, 25 Feb 2002, Mark Robinson <mark.robinson@baltimore.com>
wrote:

> could anyone explain why, given the build.xml below, i get this:

> all:
> Skipped because property '${env.MSDEVDIR}' not set.

> 	<target name="all" if="${env.MSDEVDIR}">

because target's if attribute takes the name of a property, while
${foo} is the value of the property with name foo.

Make above

<target name="all" if="env.MSDEVDIR">

and it should work.

Stefan

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


Mime
View raw message