ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sayatovic, Brian" <>
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):

	C:\Project\build\build.xml:138: C:\Project\build (Access is

Any ideas?


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message