blob: e543f8474567ce3e19a094d12e52894622ca8749 [file]
<?xml version="1.0" encoding="UTF-8"?>
<project default="product_all">
<import file="build-macros.xml"/>
<!-- ================================================= -->
<target name="set_recorder" if="recorder.file"
depends="read_build_properties">
<echo>recorder file ${build.root}/${recorder.file}</echo>
<mkdir dir="${build.root}"/>
<touch file="${build.root}/${recorder.file}"></touch>
<record name="${build.root}/${recorder.file}" loglevel="${recorder.level}"/>
<echoproperties format="text" destfile="${build.root}/properties.txt" />
</target>
<!-- =================================================
Read build properties
-->
<target name="read_build_properties">
<read_product_properties prefix="epp"/>
</target>
<!-- =================================================
setup for local builds
-->
<target name="setup_local"
if="setup.local">
<!-- but this in the temp directory so the eclipsetools.removeNontaggedDirectories
does not try to cleanup the temp directory
-->
<mkdir dir="${build.temp}"/>
<touch file="${build.temp}/.clean_build"></touch>
</target>
<!-- =================================================
cleanup the temparary directories
-->
<target name="clean_tmp_directories"
if="clean.temp.directories.flag">
<delete_temp_directories/>
</target>
<!-- =================================================
If this is Cruise Control,
then import the projects and set classpath variables
-->
<target name="setup_workspace"
if="setup.workspace"
depends="read_build_properties">
</target>
<!-- ================================================= -->
<target name="product_init"
depends="read_build_properties, set_recorder, setup_workspace">
<checkEclipseRunning />
<condition property="clean.temp.directories.flag">
<or>
<istrue value="${clean.temp.directories}"/>
<not>
<isset property="clean.temp.directories" />
</not>
</or>
</condition>
<tstamp>
<format property="BUILD_NUM" pattern="yyyyMMddhhmmss"/>
</tstamp>
<property name="build.num" value="${BUILD_NUM}" />
<property name="build.type" value="I" />
<fail>could not find the EPP plugins directory it is currently set to ${epp.plugins.dir}
This value should be in a file build-settings/${user.name}.properties
the value should look like this
epp.plugins.dir= either an absolute or relative path to the epp plugins directory
<condition>
<not>
<available file="${epp.plugins.dir}" type="dir" />
</not>
</condition>
</fail>
<fail>could not find the EPP plugins directory it is currently set to ${epp.features.dir}
This value should be in a file build-settings/${user.name}.properties
the value should look like this
epp.features.dir= either an absolute or relative path to the epp features directory
<condition>
<not>
<available file="${epp.features.dir}" type="dir" />
</not>
</condition>
</fail>
<property name="epp.build.base" value="${build.temp}/epp.build" />
<property name="build.loc" location="${build.temp}/eclipse.build" />
<property name="epp.build.id" value="${build.num}" />
</target>
<!-- ================================================= -->
<target name="product_all" depends="product_init, clean_tmp_directories, setup_local">
<ant antfile="build-pde.xml" />
<ant antfile="build-installers.xml" />
<mkdir dir="${build.out}/load-image/E-3.3" />
<unzip dest="${build.out}/load-image/E-3.3">
<fileset dir="${build.out}">
<include name="org.eclipse.epp.installer*${osgi.os}.${osgi.ws}.${osgi.arch}.zip" />
</fileset>
</unzip>
<finalize_build_product/>
</target>
</project>