ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob van Oostrum <rvanoost...@ezgov.com>
Subject Re: Available not working
Date Fri, 22 Jun 2001 10:16:19 GMT
you need to be in the context of a target to use available. So put all
your available stuff in a target and make sure that gets executed.

Stefano Mancarella wrote:

> I'm trying to use the "available" task, but parsing
> fails with the following message:
>
> Unexpected element "available".
>
> I've noticed the no property was defined in
> defaults.properties for this task so I added the
> following line:
>
> available=org.apache.tools.ant.taskdefs.Available
>
> but still doesn't work.
>
> I'm using Ant 1.3. Here's my example:
>
> <project name="myProject" default="compile" basedir=".">
>     ...
>     <available property="log.present" file="${log.file}" />
>     ...
> </project>
>
> Where am I wrong?


Mime
View raw message