Tweak build.xml for jenkins running

This commit is contained in:
Christian 2013-06-08 16:08:56 -04:00
parent d1531d1f7b
commit 0da145308d

View file

@ -61,11 +61,12 @@
<property name="build.number" value="${env.BUILD_NUMBER}"/> <property name="build.number" value="${env.BUILD_NUMBER}"/>
</target> </target>
<target name="git.revision" if="git.present"> <target name="git.revision">
<exec executable="git" dir="${src.dir}" outputproperty="git.revision" failifexecutionfails="false" errorproperty=""> <exec executable="git" dir="${src.dir}" outputproperty="git.revision" failifexecutionfails="false" errorproperty="">
<arg value="describe"/> <arg value="describe"/>
<arg value="--tags"/> <arg value="--tags"/>
<arg value="--always"/> <arg value="--always"/>
<arg value="--match='[^(jenkins)]*'"/>
<arg value="HEAD"/> <arg value="HEAD"/>
</exec> </exec>
<condition property="project.version" value="${git.revision}" else="0.0.0"> <condition property="project.version" value="${git.revision}" else="0.0.0">