ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Couvreur" <>
Subject Weird "available" behavior on test for a just created file
Date Tue, 20 Jun 2000 00:58:59 GMT


I have tried this little set of targets, by calling "ant test" but
doesn't execute as one could have thought.
Would somebody have an idea ?
Are the writing deferred until the JVM closes or something ?

Here are the target, followed by the execution stdout :

    <target name="test.copy">
       <copyfile src="./A"
       <echo message="Copied B"/>

    <target name="" depends="B.check" if="B.exists">
       <echo message="Test read executed"/>

    <target name="test" depends="test.copy,">
       <echo message="Test executed"/>

Executing Target: test.copy
Copied B
Executing Target: B.check
Verifying presence of B
Executing Target:
Executing Target: test
Test executed

NB : if you run "ant test" a second time right after, it will work fine,
since the first execution DID copy the A file to B...


View raw message