_getBuildNumber.xml 604 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<?xml version="1.0" encoding="UTF-8" ?> 
<project name="_getBuildNumber" default="build">


<!--	INTERNAL:	_getBuildNumber
		Add the build number to the jar file name, if necessary.
-->
<target name="_getBuildNumber">
	<if><and>
			<isset property="buildnumber" />
			<not>
				<equals arg1="${buildnumber}" arg2="none" />
			</not>
		</and>
		<then>
			<buildnumber />
			<propertyregex	property="tmp"
							override="true"
							input="${file.jar}"
							regexp="(.*).jar"
							select="\1" />

			<var name="file.jar" value="${tmp}-${build.number}.jar" />
		</then>
	</if>

</target>
	
</project>