ant-user mailing list archives

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

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" />
    	</exec>
    	<echo message="hg = ${hg}" />
    </target>

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

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

but the "echo" during the build shows this:

id:
     [echo] hg =
[propertyfile] Updating property file:
/home/patrick/repo/dib/dib_8800/build.properties

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

Thanks, patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message