1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-10 10:35:23 +02:00

Cleaning up formatting.

This commit is contained in:
David Dykstal 2006-04-23 21:21:20 +00:00
parent a77f091f5d
commit cd750d9bdf
2 changed files with 389 additions and 401 deletions

View file

@ -1,32 +1,32 @@
<project name="Build All Elements" default="main"> <project name="Build All Elements" default="main">
<!-- ===================================================================== -->
<!-- Custom settings -->
<!-- ===================================================================== -->
<property name="head" value="${baseLocation}\..\..\packagehome" /> <!-- ===================================================================== -->
<property name="configs" value="*,*,*"/> <!-- Custom settings -->
<path id="path_bootclasspath"> <!-- ===================================================================== -->
<fileset dir="${java.home}/lib"> <property name="head" value="${baseLocation}\..\..\packagehome" />
<include name="*.jar" /> <property name="configs" value="*,*,*" />
</fileset> <path id="path_bootclasspath">
</path> <fileset dir="${java.home}/lib">
<property name="bootclasspath" refid="path_bootclasspath" /> <include name="*.jar" />
<tstamp> </fileset>
<format property="today" pattern="E" locale="en"/> </path>
<format property="timestamp" pattern="yyyyMMdd" locale="en"/> <property name="bootclasspath" refid="path_bootclasspath" />
</tstamp> <tstamp>
<format property="today" pattern="E" locale="en" />
<format property="timestamp" pattern="yyyyMMdd" locale="en" />
</tstamp>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Global properties. See the build.properties for information on --> <!-- Global properties. See the build.properties for information on -->
<!-- the properties which callers can control. --> <!-- the properties which callers can control. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<property name="builderDirectory" location="${builder}"/> <property name="builderDirectory" location="${builder}" />
<property name="buildProperties" location="${builder}/build.properties"/> <property name="buildProperties" location="${builder}/build.properties" />
<property file="${buildProperties}"/> <property file="${buildProperties}" />
<property name="customTargets" location="${builderDirectory}/customTargets.xml"/> <property name="customTargets" location="${builderDirectory}/customTargets.xml" />
<property name="genericTargets" location="genericTargets.xml"/> <property name="genericTargets" location="genericTargets.xml" />
<property name="packageDirectory" location="%{packageDirectory}"/> <property name="packageDirectory" location="%{packageDirectory}" />
<property name="publishDirectory" location="%{publishDirectory}"/> <property name="publishDirectory" location="%{publishDirectory}" />
<condition property="doExtract" value="true"> <condition property="doExtract" value="true">
<equals arg1="${bld_do_extract}" arg2="yes" /> <equals arg1="${bld_do_extract}" arg2="yes" />
@ -37,117 +37,113 @@
<condition property="doPackage" value="true"> <condition property="doPackage" value="true">
<equals arg1="${bld_do_package}" arg2="yes" /> <equals arg1="${bld_do_package}" arg2="yes" />
</condition> </condition>
<condition property="doPublish" value="true"> <condition property="doPublish" value="true">
<equals arg1="${bld_do_publish}" arg2="yes" /> <equals arg1="${bld_do_publish}" arg2="yes" />
</condition> </condition>
<!-- ===================================================================== -->
<!-- main entry point to setup, fetch, generate, build etc. Use -->
<!-- the customTargets.xml to modify the build behaviour. -->
<!-- ===================================================================== -->
<!-- ******* add in the descriptions for each of the top level targets to teh target decl --> <!-- ===================================================================== -->
<!-- main entry point to setup, fetch, generate, build etc. Use -->
<!-- the customTargets.xml to modify the build behaviour. -->
<!-- ===================================================================== -->
<!-- ******* add in the descriptions for each of the top level targets to the target decl -->
<target name="main" description="the main build target">
<antcall target="preBuild" />
<antcall target="fetch" />
<antcall target="generate" />
<antcall target="process" />
<antcall target="assemble" />
<antcall target="postBuild" />
</target>
<target name="main" description="the main build target"> <!-- ===================================================================== -->
<antcall target="preBuild"/> <!-- Steps to do before starting the build. Typical setup includes -->
<antcall target="fetch"/> <!-- fetching the map files and building the directory. -->
<antcall target="generate" /> <!-- ===================================================================== -->
<antcall target="process" /> <target name="preBuild" if="doExtract">
<antcall target="assemble" /> <echo message="Preparing to extract..." />
<antcall target="postBuild" /> <mkdir dir="${buildDirectory}" />
</target> <ant antfile="${customTargets}" target="preSetup" />
<ant antfile="${customTargets}" target="getMapFiles" />
<concat destfile="${buildDirectory}/directory.txt" fixlastline="yes">
<fileset dir="${buildDirectory}" includes="maps/**/*.map" />
</concat>
<ant antfile="${customTargets}" target="postSetup" />
</target>
<!-- ===================================================================== -->
<!-- ===================================================================== --> <!-- Fetch the elements identified in the customTargets -->
<!-- Steps to do before starting the build. Typical setup includes --> <!-- ===================================================================== -->
<!-- fetching the map files and building the directory. --> <target name="fetch" if="doExtract">
<!-- ===================================================================== --> <echo message="Extracting..." />
<target name="preBuild" if="doExtract"> <ant antfile="${customTargets}" target="preFetch" />
<echo message="Preparing to extract..."/> <!-- Generates and then execute the fetch scripts for each build element-->
<mkdir dir="${buildDirectory}" /> <ant antfile="${customTargets}" target="allElements">
<ant antfile="${customTargets}" target="preSetup" /> <property name="target" value="fetchElement" />
<ant antfile="${customTargets}" target="getMapFiles" /> </ant>
<concat destfile="${buildDirectory}/directory.txt" fixlastline="yes">
<fileset dir="${buildDirectory}" includes="maps/**/*.map"/>
</concat>
<ant antfile="${customTargets}" target="postSetup" />
</target>
<!-- ===================================================================== --> <ant antfile="${customTargets}" target="postFetch" />
<!-- Fetch the elements identified in the customTargets --> </target>
<!-- ===================================================================== -->
<target name="fetch" if="doExtract">
<echo message="Extracting..."/>
<ant antfile="${customTargets}" target="preFetch"/>
<!-- Generates and then execute the fetch scripts for each build element-->
<ant antfile="${customTargets}" target="allElements">
<property name="target" value="fetchElement" />
</ant>
<ant antfile="${customTargets}" target="postFetch"/>
</target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Generate the build scripts for each element identified in the customTargets --> <!-- Generate the build scripts for each element identified in the customTargets -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="generate" if="doBuild"> <target name="generate" if="doBuild">
<echo message="Generating build scripts..."/> <echo message="Generating build scripts..." />
<ant antfile="${customTargets}" target="preGenerate"/> <ant antfile="${customTargets}" target="preGenerate" />
<!-- Generate the build.xml for each build element--> <!-- Generate the build.xml for each build element-->
<ant antfile="${customTargets}" target="allElements"> <ant antfile="${customTargets}" target="allElements">
<property name="target" value="generateScript" /> <property name="target" value="generateScript" />
</ant> </ant>
<ant antfile="${customTargets}" target="postGenerate"/> <ant antfile="${customTargets}" target="postGenerate" />
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Run the build scripts for each element identified in the customTargets --> <!-- Run the build scripts for each element identified in the customTargets -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="process" if="doBuild"> <target name="process" if="doBuild">
<echo message="Building..."/> <echo message="Building..." />
<!-- Run custom tasks before processing, i.e. creating source build zip files --> <!-- Run custom tasks before processing, i.e. creating source build zip files -->
<ant antfile="${customTargets}" target="preProcess" /> <ant antfile="${customTargets}" target="preProcess" />
<!-- Process all of the build elements--> <!-- Process all of the build elements-->
<ant antfile="${customTargets}" target="allElements"> <ant antfile="${customTargets}" target="allElements">
<property name="target" value="processElement" /> <property name="target" value="processElement" />
</ant> </ant>
<!-- Run custom tasks after compiling, i.e. reporting compile errors --> <!-- Run custom tasks after compiling, i.e. reporting compile errors -->
<ant antfile="${customTargets}" target="postProcess" /> <ant antfile="${customTargets}" target="postProcess" />
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Assemble the build elements into final distributions --> <!-- Assemble the build elements into final distributions -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="assemble" if="doPackage"> <target name="assemble" if="doPackage">
<echo message="Assembling..."/> <echo message="Assembling..." />
<ant antfile="${customTargets}" target="preAssemble"/> <ant antfile="${customTargets}" target="preAssemble" />
<ant antfile="${customTargets}" target="allElements"> <ant antfile="${customTargets}" target="allElements">
<property name="target" value="assembleElement"/> <property name="target" value="assembleElement" />
</ant> </ant>
<ant antfile="${customTargets}" target="postAssemble"/> <ant antfile="${customTargets}" target="postAssemble" />
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Do any steps required after the build (e.g., posting, testing, ...) --> <!-- Do any steps required after the build (e.g., posting, testing, ...) -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="postBuild" if="doPackage"> <target name="postBuild" if="doPackage">
<echo message="Packaging..."/> <echo message="Packaging..." />
<ant antfile="${customTargets}" target="postBuild" /> <ant antfile="${customTargets}" target="postBuild" />
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Clean the build elements. This target is here as an entry --> <!-- Clean the build elements. This target is here as an entry -->
<!-- point to the customTargets. It is not called directly in the normal --> <!-- point to the customTargets. It is not called directly in the normal -->
<!-- course of events. --> <!-- course of events. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="clean"> <target name="clean">
<ant antfile="${customTargets}" target="allElements"> <ant antfile="${customTargets}" target="allElements">
<property name="target" value="cleanElement"/> <property name="target" value="cleanElement" />
</ant> </ant>
</target> </target>
</project> </project>

View file

@ -1,70 +1,69 @@
<project name="Build specific targets and properties" default="noDefault" > <project name="Build specific targets and properties" default="noDefault">
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Run a given ${target} on all elements being built --> <!-- Run a given ${target} on all elements being built -->
<!-- Add on <ant> task for each top level element being built. --> <!-- Add on <ant> task for each top level element being built. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="allElements"> <target name="allElements">
<ant antfile="${genericTargets}" target="${target}"> <ant antfile="${genericTargets}" target="${target}">
<property name="type" value="feature"/> <property name="type" value="feature" />
<property name="id" value="org.eclipse.rse.core"/> <property name="id" value="org.eclipse.rse.core" />
</ant> </ant>
<ant antfile="${genericTargets}" target="${target}"> <ant antfile="${genericTargets}" target="${target}">
<property name="type" value="feature"/> <property name="type" value="feature" />
<property name="id" value="org.eclipse.rse.local"/> <property name="id" value="org.eclipse.rse.local" />
</ant> </ant>
<ant antfile="${genericTargets}" target="${target}"> <ant antfile="${genericTargets}" target="${target}">
<property name="type" value="feature"/> <property name="type" value="feature" />
<property name="id" value="org.eclipse.rse.ftp"/> <property name="id" value="org.eclipse.rse.ftp" />
</ant> </ant>
<ant antfile="${genericTargets}" target="${target}"> <ant antfile="${genericTargets}" target="${target}">
<property name="type" value="feature"/> <property name="type" value="feature" />
<property name="id" value="org.eclipse.rse.dstore"/> <property name="id" value="org.eclipse.rse.dstore" />
</ant> </ant>
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Targets to assemble the built elements for particular configurations --> <!-- Targets to assemble the built elements for particular configurations -->
<!-- These generally call the generated assemble scripts (named in --> <!-- These generally call the generated assemble scripts (named in -->
<!-- ${assembleScriptName}) but may also add pre and post processing --> <!-- ${assembleScriptName}) but may also add pre and post processing -->
<!-- Add one target for each root element and each configuration --> <!-- Add one target for each root element and each configuration -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="assemble.org.eclipse.rse.core"> <target name="assemble.org.eclipse.rse.core">
<antcall target="buildFeature"> <antcall target="buildFeature">
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.core"/> <param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.core" />
</antcall> </antcall>
</target> </target>
<target name="assemble.org.eclipse.rse.local"> <target name="assemble.org.eclipse.rse.local">
<antcall target="buildFeature"> <antcall target="buildFeature">
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.local"/> <param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.local" />
</antcall> </antcall>
</target> </target>
<target name="assemble.org.eclipse.rse.ftp"> <target name="assemble.org.eclipse.rse.ftp">
<antcall target="buildFeature"> <antcall target="buildFeature">
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.ftp"/> <param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.ftp" />
</antcall> </antcall>
</target> </target>
<target name="assemble.org.eclipse.rse.dstore"> <target name="assemble.org.eclipse.rse.dstore">
<antcall target="serverruntime"/> <antcall target="serverruntime" />
<antcall target="buildFeature"> <antcall target="buildFeature">
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.dstore"/> <param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.dstore" />
</antcall> </antcall>
</target> </target>
<target name="dstore_extra_server.jar"> <target name="dstore_extra_server.jar">
<mkdir dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverruntime"/> <mkdir dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverruntime" />
<delete dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverbuild"/> <delete dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverbuild" />
<mkdir dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverbuild"/> <mkdir dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverbuild" />
<javac debug="${dbg}" srcdir="${buildDirectory}/plugins/org.eclipse.dstore.extra/server" destdir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverbuild" includeAntRuntime="false"/> <javac debug="${dbg}" srcdir="${buildDirectory}/plugins/org.eclipse.dstore.extra/server" destdir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverbuild" includeAntRuntime="false" />
<jar jarfile="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverruntime/dstore_extra_server.jar" basedir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverbuild"/> <jar jarfile="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverruntime/dstore_extra_server.jar" basedir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverbuild" />
<delete dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverbuild"/> <delete dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverbuild" />
</target> </target>
<target name="serverruntime"> <target name="serverruntime">
<antcall target="dstore_extra_server.jar"/> <antcall target="dstore_extra_server.jar" />
<property name="universalserverfilelist" <property name="universalserverfilelist" value="${buildDirectory}/plugins/org.eclipse.dstore.core/dstore_core.jar,
value="${buildDirectory}/plugins/org.eclipse.dstore.core/dstore_core.jar,
${buildDirectory}/plugins/org.eclipse.dstore.extra/serverruntime/dstore_extra_server.jar, ${buildDirectory}/plugins/org.eclipse.dstore.extra/serverruntime/dstore_extra_server.jar,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/patterns.dat, ${buildDirectory}/plugins/org.eclipse.rse.services.dstore/patterns.dat,
${buildDirectory}/plugins/org.eclipse.rse.services/clientserver.jar, ${buildDirectory}/plugins/org.eclipse.rse.services/clientserver.jar,
@ -79,248 +78,241 @@
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/daemon.linux, ${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/daemon.linux,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/win.env.bat, ${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/win.env.bat,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/daemon.win.bat, ${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/daemon.win.bat,
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/run.win.bat"/> ${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/run.win.bat" />
<delete dir="${packageDirectory}\rseserver"/> <delete dir="${packageDirectory}\rseserver" />
<mkdir dir="${packageDirectory}\rseserver"/> <mkdir dir="${packageDirectory}\rseserver" />
<copy todir="${packageDirectory}\rseserver"> <copy todir="${packageDirectory}\rseserver">
<fileset dir="${buildDirectory}/plugins/org.eclipse.dstore.core" includes="dstore_core.jar"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.dstore.core" includes="dstore_core.jar" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverruntime" includes ="dstore_extra_server.jar"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverruntime" includes="dstore_extra_server.jar" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore" includes="dstore_miners.jar"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore" includes="dstore_miners.jar" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore" includes="patterns.dat"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore" includes="patterns.dat" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services" includes="clientserver.jar"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services" includes="clientserver.jar" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="auth.pl"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="auth.pl" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="ssl.properties"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="ssl.properties" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="minerFile.dat"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="minerFile.dat" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="rsecomm.properties"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="rsecomm.properties" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="server.linux"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="server.linux" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="server.unix"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="server.unix" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="patterns.dat"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="patterns.dat" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="daemon.linux"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="daemon.linux" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="win.env.bat"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="win.env.bat" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="daemon.win.bat"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="daemon.win.bat" />
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="run.win.bat"/> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="run.win.bat" />
</copy> </copy>
<fixcrlf srcdir="${packageDirectory}\rseserver" eol="crlf" eof="asis" includes="server.linux"/> <fixcrlf srcdir="${packageDirectory}\rseserver" eol="crlf" eof="asis" includes="server.linux" />
<fixcrlf srcdir="${packageDirectory}\rseserver" eol="crlf" eof="asis" includes="daemon.linux"/> <fixcrlf srcdir="${packageDirectory}\rseserver" eol="crlf" eof="asis" includes="daemon.linux" />
<fixcrlf srcdir="${packageDirectory}\rseserver" eol="crlf" eof="asis" includes="daemon.unix"/> <fixcrlf srcdir="${packageDirectory}\rseserver" eol="crlf" eof="asis" includes="daemon.unix" />
<fixcrlf srcdir="${packageDirectory}\rseserver" eol="crlf" eof="asis" includes="server.unix"/> <fixcrlf srcdir="${packageDirectory}\rseserver" eol="crlf" eof="asis" includes="server.unix" />
<jar jarfile="${packageDirectory}\rseserver.jar" filesonly="true"> <jar jarfile="${packageDirectory}\rseserver.jar" filesonly="true">
<fileset dir="${packageDirectory}\rseserver" <fileset dir="${packageDirectory}\rseserver" includes="*" excludes="">
includes="*" </fileset>
excludes=""> </jar>
<delete dir="${packageDirectory}\rseserver" />
<delete>
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="*">
</fileset>
</delete>
<copy todir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime">
<fileset dir="${packageDirectory}" includes="rseserver.jar">
</fileset>
</copy>
</target>
<!-- ===================================================================== -->
<!-- Check out map files from correct repository -->
<!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
<!-- ===================================================================== -->
<target name="getMapFiles">
<!-- Notify recipients that build has started.-->
<!--
<property name="cvsRoot" value=":pserver:build@dbgaix2:/usr/vatpfcvs" />
<property name="mapVersionTag" value="HEAD" />
<cvs cvsRoot="${cvsRoot}"
package="MenuEditorBuilder"
dest="${buildDirectory}/maps"
tag="${mapVersionTag}"
/>
-->
<copy todir="${buildDirectory}/maps">
<fileset dir="." includes="*.map" />
</copy>
</target>
<!-- ===================================================================== -->
<!-- Steps to do before setup -->
<!-- ===================================================================== -->
<target name="preSetup">
</target>
<!-- ===================================================================== -->
<!-- Steps to do after setup but before starting the build proper -->
<!-- ===================================================================== -->
<target name="postSetup">
</target>
<!-- ===================================================================== -->
<!-- Steps to do before fetching the build elements -->
<!-- ===================================================================== -->
<target name="preFetch">
<!-- clean up the old driver -->
<!-- <delete includeEmptyDirs="true">-->
<fileset dir="${buildDirectory}\plugins" casesensitive="yes" defaultexcludes="no">
<include name="org.eclipse.*/**" />
</fileset> </fileset>
</jar> <fileset dir="${buildDirectory}\features" casesensitive="yes" defaultexcludes="no">
<include name="org.eclipse.*/**" />
<delete dir="${packageDirectory}\rseserver"/>
<delete>
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="*">
</fileset> </fileset>
</delete> <fileset dir="${builddest}" casesensitive="yes" defaultexcludes="yes">
<include name="full/eclipse/**" />
<include name="full/Config/**" />
<include name="lite/**" />
</fileset>
<fileset dir="${head}\eclipse\plugins" casesensitive="yes" defaultexcludes="yes">
<include name="org.eclipse.*/**" />
</fileset>
<fileset dir="${head}\eclipse\features" casesensitive="yes" defaultexcludes="no">
<include name="org.eclipse.*/**" />
</fileset>
<!-- </delete>-->
</target>
<copy todir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime"> <!-- ===================================================================== -->
<fileset dir="${packageDirectory}" includes="rseserver.jar"> <!-- Steps to do after fetching the build elements -->
</fileset> <!-- ===================================================================== -->
</copy> <target name="postFetch">
</target> </target>
<!-- ===================================================================== -->
<!-- Check out map files from correct repository -->
<!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
<!-- ===================================================================== -->
<target name="getMapFiles">
<!-- Notify recipients that build has started.-->
<!--
<property name="cvsRoot" value=":pserver:build@dbgaix2:/usr/vatpfcvs" />
<property name="mapVersionTag" value="HEAD" />
<cvs cvsRoot="${cvsRoot}"
package="MenuEditorBuilder"
dest="${buildDirectory}/maps"
tag="${mapVersionTag}"
/>
-->
<copy todir="${buildDirectory}/maps">
<fileset dir="." includes="*.map"/>
</copy>
</target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do before setup --> <!-- Steps to do before generating the build scripts. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="preSetup"> <target name="preGenerate">
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do after setup but before starting the build proper --> <!-- Steps to do after generating the build scripts. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="postSetup"> <target name="postGenerate">
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do before fetching the build elements --> <!-- Steps to do before running the build.xmls for the elements being built. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="preFetch"> <target name="preProcess">
<!-- clean up the old driver --> </target>
<!-- <delete includeEmptyDirs="true">-->
<fileset dir="${buildDirectory}\plugins" casesensitive="yes" defaultexcludes="no" >
<include name="org.eclipse.*/**" />
</fileset> <!-- ===================================================================== -->
<fileset dir="${buildDirectory}\features" casesensitive="yes" defaultexcludes="no" > <!-- Steps to do after running the build.xmls for the elements being built. -->
<include name="org.eclipse.*/**" /> <!-- ===================================================================== -->
</fileset> <target name="postProcess">
<fileset dir="${builddest}" casesensitive="yes" defaultexcludes="yes" > </target>
<include name="full/eclipse/**" />
<include name="full/Config/**" />
<include name="lite/**" />
</fileset>
<fileset dir="${head}\eclipse\plugins" casesensitive="yes" defaultexcludes="yes" >
<include name="org.eclipse.*/**" />
</fileset>
<fileset dir="${head}\eclipse\features" casesensitive="yes" defaultexcludes="no" >
<include name="org.eclipse.*/**" />
</fileset>
<!-- </delete>-->
<!-- ===================================================================== -->
<!-- Steps to do before running assemble. -->
<!-- ===================================================================== -->
<target name="preAssemble">
</target>
</target> <!-- ===================================================================== -->
<!-- Steps to do after running assemble. -->
<!-- ===================================================================== -->
<target name="postAssemble">
</target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do after fetching the build elements --> <!-- Steps to do after the build is done. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="postFetch"> <target name="postBuild">
<mkdir dir="${packageDirectory}" />
</target> <property name="packageRuntimeDirectory" location="${packageDirectory}\runtime" />
<property name="packageRuntimeRootDirectory" location="${packageRuntimeDirectory}\eclipse" />
<mkdir dir="${packageRuntimeDirectory}" />
<mkdir dir="${packageRuntimeRootDirectory}" />
<!-- ===================================================================== --> <unzip src="${buildDirectory}\features\org.eclipse.rse.core\org.eclipse.rse.core_1.0.0.bin.dist.zip" dest="${packageRuntimeRootDirectory}" />
<!-- Steps to do before generating the build scripts. --> <unzip src="${buildDirectory}\features\org.eclipse.rse.dstore\org.eclipse.rse.dstore_1.0.0.bin.dist.zip" dest="${packageRuntimeRootDirectory}" />
<!-- ===================================================================== --> <unzip src="${buildDirectory}\features\org.eclipse.rse.ftp\org.eclipse.rse.ftp_1.0.0.bin.dist.zip" dest="${packageRuntimeRootDirectory}" />
<target name="preGenerate"> <unzip src="${buildDirectory}\features\org.eclipse.rse.local\org.eclipse.rse.local_1.0.0.bin.dist.zip" dest="${packageRuntimeRootDirectory}" />
</target>
<!-- ===================================================================== --> <zip destfile="${packageDirectory}\RSE-1.0M1.zip" basedir="${packageRuntimeDirectory}" />
<!-- Steps to do after generating the build scripts. -->
<!-- ===================================================================== -->
<target name="postGenerate">
</target>
<property name="packageSDKDirectory" location="${packageDirectory}\sdk" />
<property name="packageSDKRootDirectory" location="${packageSDKDirectory}\eclipse" />
<mkdir dir="${packageSDKDirectory}" />
<mkdir dir="${packageSDKRootDirectory}" />
<!-- ===================================================================== --> <unzip src="${packageDirectory}\RSE-1.0M1.zip" dest="${packageSDKDirectory}" />
<!-- Steps to do before running the build.xmls for the elements being built. --> <unzip src="${buildDirectory}\features\org.eclipse.rse.core\org.eclipse.rse.core_1.0.0.src.zip" dest="${packageSDKRootDirectory}" />
<!-- ===================================================================== --> <unzip src="${buildDirectory}\features\org.eclipse.rse.dstore\org.eclipse.rse.dstore_1.0.0.src.zip" dest="${packageSDKRootDirectory}" />
<target name="preProcess"> <unzip src="${buildDirectory}\features\org.eclipse.rse.ftp\org.eclipse.rse.ftp_1.0.0.src.zip" dest="${packageSDKRootDirectory}" />
</target> <unzip src="${buildDirectory}\features\org.eclipse.rse.local\org.eclipse.rse.local_1.0.0.src.zip" dest="${packageSDKRootDirectory}" />
<!-- ===================================================================== --> <zip destfile="${packageDirectory}\RSE-SDK-1.0M1.zip" basedir="${packageSDKDirectory}" />
<!-- Steps to do after running the build.xmls for the elements being built. -->
<!-- ===================================================================== -->
<target name="postProcess">
</target>
<!--
<antcall target="serverruntime"/>
<antcall target="publish"/>
-->
</target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do before running assemble. --> <!-- Steps to do to test the build results -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="preAssemble"> <target name="test">
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do after running assemble. --> <!-- Steps to do to publish the build results -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="postAssemble"> <target name="publish" if="doPublish">
</target> <mkdir dir="${publishDirectory}" />
<copy todir="${publishDirectory}">
<fileset dir="${packageDirectory}" includes="*.zip" />
</copy>
</target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do after the build is done. --> <!-- Default target -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="postBuild"> <target name="noDefault">
<mkdir dir="${packageDirectory}"/> <echo message="You must specify a target when invoking this file" />
</target>
<property name="packageRuntimeDirectory" location="${packageDirectory}\runtime"/>
<property name="packageRuntimeRootDirectory" location="${packageRuntimeDirectory}\eclipse"/>
<mkdir dir="${packageRuntimeDirectory}"/>
<mkdir dir="${packageRuntimeRootDirectory}"/>
<unzip src="${buildDirectory}\features\org.eclipse.rse.core\org.eclipse.rse.core_1.0.0.bin.dist.zip" dest="${packageRuntimeRootDirectory}"/>
<unzip src="${buildDirectory}\features\org.eclipse.rse.dstore\org.eclipse.rse.dstore_1.0.0.bin.dist.zip" dest="${packageRuntimeRootDirectory}"/>
<unzip src="${buildDirectory}\features\org.eclipse.rse.ftp\org.eclipse.rse.ftp_1.0.0.bin.dist.zip" dest="${packageRuntimeRootDirectory}"/>
<unzip src="${buildDirectory}\features\org.eclipse.rse.local\org.eclipse.rse.local_1.0.0.bin.dist.zip" dest="${packageRuntimeRootDirectory}"/>
<zip destfile="${packageDirectory}\rse-runtime-M1.zip" basedir="${packageRuntimeDirectory}"/>
<property name="packageSDKDirectory" location="${packageDirectory}\sdk"/>
<property name="packageSDKRootDirectory" location="${packageSDKDirectory}\eclipse"/>
<mkdir dir="${packageSDKDirectory}"/>
<mkdir dir="${packageSDKRootDirectory}"/>
<unzip src="${packageDirectory}\rse-runtime-M1.zip" dest="${packageSDKDirectory}"/>
<unzip src="${buildDirectory}\features\org.eclipse.rse.core\org.eclipse.rse.core_1.0.0.src.zip" dest="${packageSDKRootDirectory}"/>
<unzip src="${buildDirectory}\features\org.eclipse.rse.dstore\org.eclipse.rse.dstore_1.0.0.src.zip" dest="${packageSDKRootDirectory}"/>
<unzip src="${buildDirectory}\features\org.eclipse.rse.ftp\org.eclipse.rse.ftp_1.0.0.src.zip" dest="${packageSDKRootDirectory}"/>
<unzip src="${buildDirectory}\features\org.eclipse.rse.local\org.eclipse.rse.local_1.0.0.src.zip" dest="${packageSDKRootDirectory}"/>
<zip destfile="${packageDirectory}\rse-SDK-M1.zip" basedir="${packageSDKDirectory}"/>
<!--
<antcall target="serverruntime"/>
<antcall target="publish"/>
-->
</target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do to test the build results --> <!-- Build the feature in own way -->
<!-- ===================================================================== --> <!-- Somehow the default builder doesn't work -->
<target name="test"> <!-- ===================================================================== -->
</target> <target name="buildFeature">
<echo message="Building feature ${featureFolder}" />
<!--
<ant antfile="${featureFolder}\build.xml" dir="${featureFolder}" target="build.jars" />
-->
<ant antfile="${featureFolder}\build.xml" dir="${featureFolder}" target="zip.distribution" />
<ant antfile="${featureFolder}\build.xml" dir="${featureFolder}" target="zip.sources" />
</target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do to publish the build results --> <!-- Zip the docs -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="publish" if="doPublish"> <target name="zipDoc">
<mkdir dir="${publishDirectory}"/>
<copy todir="${publishDirectory}">
<fileset dir="${packageDirectory}" includes="*.zip"/>
</copy>
</target>
<!-- ===================================================================== -->
<!-- Default target -->
<!-- ===================================================================== -->
<target name="noDefault">
<echo message="You must specify a target when invoking this file" />
</target>
<!-- ===================================================================== -->
<!-- Build the feature in own way -->
<!-- Somehow the default builder doesn't work -->
<!-- ===================================================================== -->
<target name="buildFeature">
<echo message="Building feature ${featureFolder}" />
<!--
<ant antfile="${featureFolder}\build.xml" dir="${featureFolder}" target="build.jars" />
-->
<ant antfile="${featureFolder}\build.xml" dir="${featureFolder}" target="zip.distribution" />
<ant antfile="${featureFolder}\build.xml" dir="${featureFolder}" target="zip.sources" />
</target>
<!-- ===================================================================== -->
<!-- Zip the docs -->
<!-- ===================================================================== -->
<target name="zipDoc">
<zip destfile="${buildDirectory}\plugins\${docPluginID}\doc.zip" filesonly="false" defaultexcludes="true"> <zip destfile="${buildDirectory}\plugins\${docPluginID}\doc.zip" filesonly="false" defaultexcludes="true">
<fileset dir="${buildDirectory}\plugins\${docPluginID}" defaultexcludes="true"> <fileset dir="${buildDirectory}\plugins\${docPluginID}" defaultexcludes="true">
<include name= "**/*.gif" /> <include name="**/*.gif" />
<include name="**/*.html" /> <include name="**/*.html" />
<include name="**/*.htm" /> <include name="**/*.htm" />
<include name= "**/*.GIF" /> <include name="**/*.GIF" />
<include name="**/*.HTML" /> <include name="**/*.HTML" />
<include name="**/*.HTM" /> <include name="**/*.HTM" />
<include name="**/*.css" /> <include name="**/*.css" />
</fileset> </fileset>
</zip> </zip>
</target> </target>
</project> </project>