On Wed, 8 Aug 2001 06:28, Mark Eliason wrote:
> Has anyone encountered this error using the "available" built-in? The
> basic context is this:
>
> <available file="${srcdir}/Analysis.jar" property="Analysis.jar.present"/>
> <target name="LoadAnalysis.zip" if="Analysis.jar.present"/>
At the moment available is only valid inside targets so you would have to
rearrange your setup to look like
<target name="test-Analysis.jar-present">
<available file="${srcdir}/Analysis.jar" property="Analysis.jar.present"/>
</target>
<target name="LoadAnalysis.zip"
depends="test-Analysis.jar-present"
if="Analysis.jar.present"/>
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*
|