ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sayatovic, Brian" <Brian.Sayato...@divine.com>
Subject Available task not working as expected
Date Tue, 28 May 2002 19:24:02 GMT
I've got an available task that I want to have evaluate to false when a property evaluates
to an empty string:

	<available file="${version.file}" type="file" property="version.file.present"/>

I other words, if ${version.file} is a filename that exists, I want the available condition
to be true.  If ${version.file} is empty (its built from a path element), I want teh available
condition to be unset.  But, unfortunately, it is always evaluating to true and the error
looks like this (C:\project\build is my working directory):

	BUILD FAILED
	C:\Project\build\build.xml:138: java.io.FileNotFoundException: C:\Project\build (Access is
denied)

Any ideas?

Regards,
Brian.

--
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