File build.xml of Package openjfx

<project name="VersionInfo" default="replaceVersionInfo" basedir=".">
  <!-- set global properties for this build -->
  <property file="build.properties"/>
  
  <property name="file.versioninfo"	 value="VersionInfo.java"/>
  <property name="src.versioninfo"	 value="modules/javafx.base/src/main/version-info"/>
  <property name="dst.versioninfo"	 value="modules/javafx.base/src/main/java/com/sun/javafx/runtime"/>
  
  <target name="replaceVersionInfo" depends="prepare,replaceReleaseVersion">
	  <echo message="RELEASE_SUFFIX="/>
	  <replace file="${dst.versioninfo}/${file.versioninfo}" token="@RELEASE_SUFFIX@" value=""/>
	  <tstamp>
		<format property="NOW" pattern="yyyy-MM-dd-HHmmss"/>
	  </tstamp>
	  <echo message="BUILD_TIMESTAMP=${NOW}"/>
	  <replace file="${dst.versioninfo}/${file.versioninfo}" token="@BUILD_TIMESTAMP@" value="${NOW}"/>
	  <echo message="HUDSON_JOB_NAME=not_hudson"/>
	  <replace file="${dst.versioninfo}/${file.versioninfo}" token="@HUDSON_JOB_NAME@" value="not_hudson"/>
	  <echo message="HUDSON_BUILD_NUMBER=0000"/>
	  <replace file="${dst.versioninfo}/${file.versioninfo}" token="@HUDSON_BUILD_NUMBER@" value="0000"/>
	  <echo message="PROMOTED_BUILD_NUMBER=0"/>
	  <replace file="${dst.versioninfo}/${file.versioninfo}" token="@PROMOTED_BUILD_NUMBER@" value="0"/>
  </target>
  
  <target name="checkReleaseVersion">
      <condition property="patch">
        <equals arg1="${jfx.release.patch.version}" arg2="0" trim="true"/>
      </condition>
  </target>
  
  <target name="replaceReleaseVersion" depends="checkReleaseVersion,replaceFullReleaseVersion" if="patch">
	  <echo message="RELEASE_VERSION=${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.security.version}"/>
	  <replace file="${dst.versioninfo}/${file.versioninfo}" token="@RELEASE_VERSION@" value="${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.security.version}"/>
	  <replace file="javafx.pom" token="@VERSION@" value="${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.security.version}"/>
	  <replace file="pom.xml" token="@RELEASE_VERSION@" value="${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.security.version}"/>
	  <replace dir="modules" value="${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.security.version}">
		  <include name="**/pom.xml"/>
		  <replacetoken>@RELEASE_VERSION@</replacetoken>
	  </replace>
  </target>
  
  <target name="replaceFullReleaseVersion" unless="patch">
	  <echo message="RELEASE_VERSION=${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.security.version}.${jfx.release.patch.version}"/>
	  <replace file="${dst.versioninfo}/${file.versioninfo}" token="@RELEASE_VERSION@" value="${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.security.version}.${jfx.release.patch.version}"/>
	  <replace file="javafx.pom" token="@VERSION@" value="${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.security.version}.${jfx.release.patch.version}"/>
	  <replace file="pom.xml" token="@RELEASE_VERSION@" value="${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.security.version}.${jfx.release.patch.version}"/>
	  <replace dir="modules" value="${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.security.version}.${jfx.release.patch.version}">
		  <include name="**/pom.xml"/>
		  <replacetoken>@RELEASE_VERSION@</replacetoken>
	  </replace>
  </target>
  
  <target name="prepare">
	  <copy file="${src.versioninfo}/${file.versioninfo}" tofile="${dst.versioninfo}/${file.versioninfo}"/>
  </target>
  
  
</project>
openSUSE Build Service is sponsored by