ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Waugh" <>
Subject Can't get output of exec to property
Date Sat, 22 Nov 2008 17:58:20 GMT

This is what I'm trying to to:

	<!-- Get Hg Revision -->
    <target name="id" description="Get the current hg revision">
        <exec executable="hg" output="hg.txt" outputproperty="hg">
        	<arg value="id" />
        	<arg value="-i" />
    	<echo message="hg = ${hg}" />

The output is coorrect in the text file, same as the command:

patrick@berrysoft:~/repo/dib/dib_8800$ hg id -i

but the "echo" during the build shows this:

     [echo] hg =
[propertyfile] Updating property file:

In other words, the property is never getting set!  What am I missing????

Thanks, patrick

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message