blob: 88e8d7b095459d6a319d0f0aa403db0ee8f3fb5c [file] [log] [blame]
<project default="build" basedir=".">
<target name="build" depends="getBaseBuilder">
<dirname file="${ant.file}" property="distribution.wtp.build.dir" />
<property file="${wtp.builder.home}/build.properties" />
<property name="buildTargets"
value="${wtp.builder.home}/scripts/build/runbuild.xml" />
<ant antfile="${buildTargets}">
<property name="component" value="wtp-thirdparty" />
</ant>
<ant antfile="${wtp.builder.home}/scripts/build/label.xml" />
<antcall target="updateSite" />
</target>
<target name="getBaseBuilder" if="eclipse.builder.fetch">
<dirname file="${ant.file}" property="wtbuilder.dir" />
<property name="buildTargets"
value="${wtp.builder.home}/scripts/build/runbuild.xml" />
<!-- delete dir="${pde.builder.path}" failonerror="false"/ -->
<ant antfile="${buildTargets}" target="getBaseBuilder" />
</target>
<target name="updateSite">
<!-- get our authored, tokenized site.xml file -->
<copy file="${wtp.builder.home}/distribution/wtp.site/templateFiles/siteEnablingFeatures.xml"
tofile="${buildDirectory}/${buildLabel}/updateSite/site.xml" overwrite="true" failonerror="true"/>
<!-- get the ${buildDirectory}/finalPluginsVersions.properties, and
read as properties -->
<!-- substitute property value for tokens -->
<replace file="${buildDirectory}/${buildLabel}/updateSite/site.xml"
propertyfile="${buildDirectory}/finalFeaturesVersions.properties" >
<replacefilter token="@org.apache.commons_logging.feature@"
property="org.apache.commons_logging.feature" />
<replacefilter token="@org.apache.jakarta_log4j.feature@"
property="org.apache.jakarta_log4j.feature" />
<replacefilter token="@org.apache.xerces.feature@"
property="org.apache.xerces.feature" />
</replace>
</target>
</project>