| <?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 /> |
| </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> |
| </target> |
| |
| <!-- ================================================= --> |
| <target name="product_all" depends="product_init, clean_tmp_directories, setup_local"> |
| <ant antfile="build-pde.xml" /> |
| |
| |
| <mkdir dir="${build.out}/install-image"/> |
| <mkdir dir="${build.out}/install-image/E-common/eclipse"/> |
| <mkdir dir="${build.out}/install-image/E-3.3/eclipse"/> |
| <mkdir dir="${build.out}/install-image/E-zip/eclipse"/> |
| |
| <finalize_build_product/> |
| </target> |
| |
| </project> |