Quoting Dominique Devienne <[EMAIL PROTECTED]>:
> 1) Thinking if="foo" means "execute the target is foo's property value
> is true (or yes, or 1)". It sounds like you're are not making that
> mistake.
>
Here is the target I'm running (this is the only target in this buildfile, and
fileToCheck & destination are getting passed correctly).
I didn't necessarily think that if="foo" meant that it had to be true, just that
it had to be set.
However, if file.exists isn't set <echo message="${file.exists}/> prints
${file.exists} then checkout does not run, and update still does
<target name="main" >
<condition property="file.exists">
<length file="${fileToCheck}" when="greater" length="0"/>
</condition>
<echo message="File Exists ${file.exists}" />
<antcall target="checkout">
<param name="destination" value="${destination}"/>
<param name="file.exists" value="${file.exists}" />
</antcall>
<antcall target="update">
<param name="destination" value="${destination}"/>
<param name="file.exists" value="${file.exists}" />
</antcall>
</target>
<target name="checkout" unless="file.exists" >
<echo message="svn co
https://svn.forge.amervideo.com/svn/systems/cim/atlas/${destination}
${destination}" />
<exec executable="svn" >
<arg line="co
https://svn.forge.amervideo.com/svn/systems/cim/atlas/${destination}
${destination}" />
</exec>
</target>
<target name="update" if="file.exists" >
<echo message="svn update ${destination}" />
<exec executable="svn" >
<arg line="co
https://svn.forge.amervideo.com/svn/systems/cim/atlas/${destination}
${destination}" />
</exec>
</target>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]