ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Weintraub <>
Subject Re: <available> task hanging
Date Wed, 22 Jul 2009 19:07:40 GMT
This could be an OS issue. Referencing the mount could make the OS attempt
to mount the NFS directory, and if NFS hangs, the <available> task will sit
there and wait.

Remember too that it could take some time for the OS to determine it cannot
mount a particular filesystem, so that it could be the <available> task is
working, but you're not giving it long enough to verify that the directory
cannot be mounted. Give it about five minutes and see if it returns from the
<available> task.

You can also wrap your <available> task inside a <waitfor> task.

*<waitfor maxwait="30"
    <available file="${nfs.mount}"/>

On Wed, Jul 22, 2009 at 1:19 PM, Cole, Derek E <>wrote:

> I am having a problem with some build scripts I have written that have
> <available> tasks to set a property based on whether a particular mount
> is available on the build box.  It seems like if the mount is not
> available for whatever reason, the build hangs at this point. Has anyone
> seen this behavior before?

David Weintraub

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message