| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- ====================================================================== |
| Aug 30, 2007 11:28:45 PM |
| |
| epp |
| Build the epp project plugins with the PDE build system |
| |
| Mark Russell |
| ====================================================================== --> |
| <project name="epp" default="build"> |
| <description> |
| Build the epp Installers with the PDE build system |
| </description> |
| |
| <import file="pde-macros.xml"/> |
| |
| <!-- ================================= |
| target: build |
| ================================= , build_javaee, build_rcp, build_cpp, build_classic --> |
| <target name="build" depends="build_java" |
| description="--> Build the epp installers with the PDE build system"> |
| <echo message="build of all epp installers complete" /> |
| </target> |
| |
| <!-- ================================= |
| target: build_java |
| ================================= --> |
| <target name="build_java" depends="init,init_java,setup_java" |
| description="--> Build the epp java installer with the PDE build system"> |
| <dirname file="${ant.file}" property="java.base.run.script" /> |
| <property name="java.builder" location="${java.base.run.script}/java.installer"/> |
| <property file="${java.builder}/build.properties" prefix="java.build.properties.file"/> |
| |
| <pdeRunBuild pdeBuilder="${java.builder}" pdebuilddir="${pde.build.product.dir}" |
| pdebuildscript="productBuild.xml"/> |
| |
| <copy todir="${build.out}"> |
| <fileset dir="${build.loc}/${java.build.properties.file.buildLabel}"/> |
| </copy> |
| </target> |
| |
| <!-- ================================= |
| target: build_javaee |
| ================================= --> |
| <target name="build_javaee" depends="init,init_javaee,setup_javaee" |
| description="--> Build the epp java EE installer with the PDE build system"> |
| </target> |
| |
| <!-- ================================= |
| target: build_cpp |
| ================================= --> |
| <target name="build_cpp" depends="init,init_cpp, setup_cpp" |
| description="--> Build the epp cpp installer with the PDE build system"> |
| </target> |
| |
| <!-- ================================= |
| target: build_rcp |
| ================================= --> |
| <target name="build_rcp" depends="init,init_rcp, setup_rcp" |
| description="--> Build the epp rcp installer with the PDE build system"> |
| </target> |
| |
| <!-- ================================= |
| target: build_classic |
| ================================= --> |
| <target name="build_classic" depends="init,init_classic, setup_classic" |
| description="--> Build the epp eclipse clasic installer with the PDE build system"> |
| </target> |
| |
| <!-- - - - - - - - - - - - - - - - - - |
| target: init |
| - - - - - - - - - - - - - - - - - --> |
| <target name="init"> |
| <tstamp /> |
| <pdeInit/> |
| <property name="installer.build.base" value="${build.temp}/epp.build" /> |
| <property name="build.loc" location="${build.temp}/eclipse.build" /> |
| <property name="epp.build.base" value="${build.temp}/epp.build" /> |
| <property name="eclipse.sdk.zip.dir" location="/opt/eclipses" /> |
| <property name="eclipse.sdk.zip.file" value="eclipse-SDK-3.3-win32.zip" /> |
| <property name="eclipse.deltapack.zip.dir" location="/opt/eclipses" /> |
| <property name="eclipse.deltapack.zip.file" value="eclipse-RCP-3.3-delta-pack.zip" /> |
| <property name="eclipse.sdk.zip" location="${eclipse.sdk.zip.dir}/${eclipse.sdk.zip.file}" /> |
| <property name="eclipse.deltapack.zip" location="${eclipse.deltapack.zip.dir}/${eclipse.deltapack.zip.file}" /> |
| <property name="epp.build.id" value="${build.num}" /> |
| <property name="java.build.id" value="${build.num}" /> |
| <property name="javaee.build.id" value="${build.num}" /> |
| <property name="cpp.build.id" value="${build.num}" /> |
| <property name="rcp.build.id" value="${build.num}" /> |
| <property name="classic.build.id" value="${build.num}" /> |
| <property name="epp.build.id" value="${build.num}" /> |
| </target> |
| |
| <!-- - - - - - - - - - - - - - - - - - |
| target: init_java |
| - - - - - - - - - - - - - - - - - --> |
| <target name="init_java"> |
| <delete_temp_directories/> |
| |
| <property name="java.builder" location="java.installer" /> |
| <pdeLoadBuildProperties prefix="java.pde.build.properties.file" |
| file="${java.builder}/build.properties" /> |
| </target> |
| |
| <!-- - - - - - - - - - - - - - - - - - |
| target: init_javaee |
| - - - - - - - - - - - - - - - - - --> |
| <target name="init_javaee"> |
| <delete_temp_directories/> |
| |
| </target> |
| |
| <!-- - - - - - - - - - - - - - - - - - |
| target: init_cpp |
| - - - - - - - - - - - - - - - - - --> |
| <target name="init_cpp"> |
| <delete_temp_directories/> |
| |
| </target> |
| |
| <!-- - - - - - - - - - - - - - - - - - |
| target: init_rcp |
| - - - - - - - - - - - - - - - - - --> |
| <target name="init_rcp"> |
| <delete_temp_directories/> |
| |
| </target> |
| |
| <!-- - - - - - - - - - - - - - - - - - |
| target: init_classic |
| - - - - - - - - - - - - - - - - - --> |
| <target name="init_classic"> |
| </target> |
| |
| <!-- - - - - - - - - - - - - - - - - - |
| target: setup_java |
| - - - - - - - - - - - - - - - - - --> |
| <target name="setup_java"> |
| <echo>java.pde.build.properties.file.base = ${java.pde.build.properties.file.base}</echo> |
| <echo>java.pde.build.properties.file.buildDirectory = ${java.pde.build.properties.file.buildDirectory}</echo> |
| <pdeCleanup base="${java.pde.build.properties.file.base}"/> |
| <pdeSetup base="${java.pde.build.properties.file.base}" |
| baseLocation="${java.pde.build.properties.file.baseLocation}" |
| eclipseSdkZip="${eclipse.sdk.zip}" |
| eclipseDeltapackZip="${eclipse.deltapack.zip}" /> |
| <unzip dest="${java.pde.build.properties.file.baseLocation}" |
| overwrite="false" taskname="unzipEppPlugins"> |
| <fileset dir="${build.out}"> |
| <include name="*org.eclipse.epp.installer*win32*.zip"/> |
| <include name="*org.eclipse.epp.installer*linux.gtk*.zip"/> |
| </fileset> |
| <mapper type="glob" from="eclipse/*" to="*" /> |
| </unzip> |
| <property name="java.plugins.loc" location="${epp.plugins.dir}" /> |
| <property name="java.features.loc" location="${epp.features.dir}" /> |
| <property name="java.releng.loc" location="${epp.releng.dir}" /> |
| <pdeCopy builddirectory="${java.pde.build.properties.file.buildDirectory}" |
| pluginsdir="${java.releng.loc}" |
| featuresdir="${java.features.loc}"> |
| <pluginsFileset> |
| <fileset dir="${java.releng.loc}"> |
| <include name="org.eclipse.epp.installer.europa.javapackage/**" /> |
| </fileset> |
| </pluginsFileset> |
| <featuresfileset> |
| <fileset dir="${java.features.loc}"> |
| <exclude name="**" /> |
| </fileset> |
| </featuresfileset> |
| </pdeCopy> |
| |
| </target> |
| |
| <!-- - - - - - - - - - - - - - - - - - |
| target: post_copy_processing |
| handle the rename of the features to match the feature id |
| - - - - - - - - - - - - - - - - - --> |
| <target name="post_copy_processing"> |
| <echo>rename directories to match the plugin id's</echo> |
| <echo>${buildFeaturesDir}/org.eclipse.epp.installer-feature to ${buildFeaturesDir}/org.eclipse.epp.installer</echo> |
| <move todir="${buildFeaturesDir}/org.eclipse.epp.installer"> |
| <fileset dir="${buildFeaturesDir}/org.eclipse.epp.installer-feature" /> |
| </move> |
| <echo>${buildFeaturesDir}/org.eclipse.epp.installer.tools-feature to ${buildFeaturesDir}/org.eclipse.epp.installer.tools</echo> |
| <move todir="${buildFeaturesDir}/org.eclipse.epp.installer.tools"> |
| <fileset dir="${buildFeaturesDir}/org.eclipse.epp.installer.tools-feature" /> |
| </move> |
| |
| </target> |
| |
| <!-- - - - - - - - - - - - - - - - - - |
| target: setup_javaee |
| - - - - - - - - - - - - - - - - - --> |
| <target name="setup_javaee"> |
| </target> |
| |
| <!-- - - - - - - - - - - - - - - - - - |
| target: setup_cpp |
| - - - - - - - - - - - - - - - - - --> |
| <target name="setup_cpp"> |
| </target> |
| |
| <!-- - - - - - - - - - - - - - - - - - |
| target: setup_rcp |
| - - - - - - - - - - - - - - - - - --> |
| <target name="setup_rcp"> |
| </target> |
| |
| <!-- - - - - - - - - - - - - - - - - - |
| target: setup_classic |
| - - - - - - - - - - - - - - - - - --> |
| <target name="setup_classic"> |
| </target> |
| </project> |