1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-10 18:45:26 +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"> <!-- ===================================================================== -->
<property name="head" value="${baseLocation}\..\..\packagehome" />
<property name="configs" value="*,*,*" />
<path id="path_bootclasspath">
<fileset dir="${java.home}/lib"> <fileset dir="${java.home}/lib">
<include name="*.jar" /> <include name="*.jar" />
</fileset> </fileset>
</path> </path>
<property name="bootclasspath" refid="path_bootclasspath" /> <property name="bootclasspath" refid="path_bootclasspath" />
<tstamp> <tstamp>
<format property="today" pattern="E" locale="en"/> <format property="today" pattern="E" locale="en" />
<format property="timestamp" pattern="yyyyMMdd" locale="en"/> <format property="timestamp" pattern="yyyyMMdd" locale="en" />
</tstamp> </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" />
@ -42,71 +42,67 @@
<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 --> <!-- main entry point to setup, fetch, generate, build etc. Use -->
<!-- the customTargets.xml to modify the build behaviour. --> <!-- the customTargets.xml to modify the build behaviour. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- ******* add in the descriptions for each of the top level targets to the target decl -->
<!-- ******* add in the descriptions for each of the top level targets to teh target decl --> <target name="main" description="the main build target">
<antcall target="preBuild" />
<target name="main" description="the main build target"> <antcall target="fetch" />
<antcall target="preBuild"/>
<antcall target="fetch"/>
<antcall target="generate" /> <antcall target="generate" />
<antcall target="process" /> <antcall target="process" />
<antcall target="assemble" /> <antcall target="assemble" />
<antcall target="postBuild" /> <antcall target="postBuild" />
</target> </target>
<!-- ===================================================================== -->
<!-- Steps to do before starting the build. Typical setup includes -->
<!-- ===================================================================== --> <!-- fetching the map files and building the directory. -->
<!-- Steps to do before starting the build. Typical setup includes --> <!-- ===================================================================== -->
<!-- fetching the map files and building the directory. --> <target name="preBuild" if="doExtract">
<!-- ===================================================================== --> <echo message="Preparing to extract..." />
<target name="preBuild" if="doExtract">
<echo message="Preparing to extract..."/>
<mkdir dir="${buildDirectory}" /> <mkdir dir="${buildDirectory}" />
<ant antfile="${customTargets}" target="preSetup" /> <ant antfile="${customTargets}" target="preSetup" />
<ant antfile="${customTargets}" target="getMapFiles" /> <ant antfile="${customTargets}" target="getMapFiles" />
<concat destfile="${buildDirectory}/directory.txt" fixlastline="yes"> <concat destfile="${buildDirectory}/directory.txt" fixlastline="yes">
<fileset dir="${buildDirectory}" includes="maps/**/*.map"/> <fileset dir="${buildDirectory}" includes="maps/**/*.map" />
</concat> </concat>
<ant antfile="${customTargets}" target="postSetup" /> <ant antfile="${customTargets}" target="postSetup" />
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Fetch the elements identified in the customTargets --> <!-- Fetch the elements identified in the customTargets -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="fetch" if="doExtract"> <target name="fetch" if="doExtract">
<echo message="Extracting..."/> <echo message="Extracting..." />
<ant antfile="${customTargets}" target="preFetch"/> <ant antfile="${customTargets}" target="preFetch" />
<!-- Generates and then execute the fetch scripts for each build element--> <!-- Generates and then execute the fetch scripts for each build element-->
<ant antfile="${customTargets}" target="allElements"> <ant antfile="${customTargets}" target="allElements">
<property name="target" value="fetchElement" /> <property name="target" value="fetchElement" />
</ant> </ant>
<ant antfile="${customTargets}" target="postFetch"/> <ant antfile="${customTargets}" target="postFetch" />
</target> </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" />
@ -117,37 +113,37 @@
<!-- 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,43 +78,41 @@
${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="*"
excludes="">
</fileset> </fileset>
</jar> </jar>
<delete dir="${packageDirectory}\rseserver"/> <delete dir="${packageDirectory}\rseserver" />
<delete> <delete>
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="*"> <fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime" includes="*">
@ -126,13 +123,13 @@
<fileset dir="${packageDirectory}" includes="rseserver.jar"> <fileset dir="${packageDirectory}" includes="rseserver.jar">
</fileset> </fileset>
</copy> </copy>
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Check out map files from correct repository --> <!-- Check out map files from correct repository -->
<!-- Replace values for cvsRoot, package and mapVersionTag as desired. --> <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="getMapFiles"> <target name="getMapFiles">
<!-- Notify recipients that build has started.--> <!-- Notify recipients that build has started.-->
<!-- <!--
<property name="cvsRoot" value=":pserver:build@dbgaix2:/usr/vatpfcvs" /> <property name="cvsRoot" value=":pserver:build@dbgaix2:/usr/vatpfcvs" />
@ -144,183 +141,178 @@
/> />
--> -->
<copy todir="${buildDirectory}/maps"> <copy todir="${buildDirectory}/maps">
<fileset dir="." includes="*.map"/> <fileset dir="." includes="*.map" />
</copy> </copy>
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do before setup --> <!-- Steps to do before setup -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="preSetup"> <target name="preSetup">
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do after setup but before starting the build proper --> <!-- Steps to do after setup but before starting the build proper -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="postSetup"> <target name="postSetup">
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do before fetching the build elements --> <!-- Steps to do before fetching the build elements -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="preFetch"> <target name="preFetch">
<!-- clean up the old driver --> <!-- clean up the old driver -->
<!-- <delete includeEmptyDirs="true">--> <!-- <delete includeEmptyDirs="true">-->
<fileset dir="${buildDirectory}\plugins" casesensitive="yes" defaultexcludes="no" > <fileset dir="${buildDirectory}\plugins" casesensitive="yes" defaultexcludes="no">
<include name="org.eclipse.*/**" />
</fileset>
<fileset dir="${buildDirectory}\features" casesensitive="yes" defaultexcludes="no" >
<include name="org.eclipse.*/**" /> <include name="org.eclipse.*/**" />
</fileset> </fileset>
<fileset dir="${builddest}" casesensitive="yes" defaultexcludes="yes" > <fileset dir="${buildDirectory}\features" casesensitive="yes" defaultexcludes="no">
<include name="org.eclipse.*/**" />
</fileset>
<fileset dir="${builddest}" casesensitive="yes" defaultexcludes="yes">
<include name="full/eclipse/**" /> <include name="full/eclipse/**" />
<include name="full/Config/**" /> <include name="full/Config/**" />
<include name="lite/**" /> <include name="lite/**" />
</fileset> </fileset>
<fileset dir="${head}\eclipse\plugins" casesensitive="yes" defaultexcludes="yes" > <fileset dir="${head}\eclipse\plugins" casesensitive="yes" defaultexcludes="yes">
<include name="org.eclipse.*/**" /> <include name="org.eclipse.*/**" />
</fileset> </fileset>
<fileset dir="${head}\eclipse\features" casesensitive="yes" defaultexcludes="no" > <fileset dir="${head}\eclipse\features" casesensitive="yes" defaultexcludes="no">
<include name="org.eclipse.*/**" /> <include name="org.eclipse.*/**" />
</fileset> </fileset>
<!-- </delete>--> <!-- </delete>-->
</target>
<!-- ===================================================================== -->
<!-- Steps to do after fetching the build elements -->
<!-- ===================================================================== -->
<target name="postFetch">
</target>
</target> <!-- ===================================================================== -->
<!-- Steps to do before generating the build scripts. -->
<!-- ===================================================================== -->
<target name="preGenerate">
</target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do after fetching the build elements --> <!-- Steps to do after generating the build scripts. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="postFetch"> <target name="postGenerate">
</target>
</target> <!-- ===================================================================== -->
<!-- Steps to do before running the build.xmls for the elements being built. -->
<!-- ===================================================================== -->
<target name="preProcess">
</target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do before generating the build scripts. --> <!-- Steps to do after running the build.xmls for the elements being built. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="preGenerate"> <target name="postProcess">
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do after generating the build scripts. --> <!-- Steps to do before running assemble. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="postGenerate"> <target name="preAssemble">
</target> </target>
<!-- ===================================================================== -->
<!-- Steps to do after running assemble. -->
<!-- ===================================================================== -->
<target name="postAssemble">
</target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do before running the build.xmls for the elements being built. --> <!-- Steps to do after the build is done. -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="preProcess"> <target name="postBuild">
</target> <mkdir dir="${packageDirectory}" />
<!-- ===================================================================== --> <property name="packageRuntimeDirectory" location="${packageDirectory}\runtime" />
<!-- Steps to do after running the build.xmls for the elements being built. --> <property name="packageRuntimeRootDirectory" location="${packageRuntimeDirectory}\eclipse" />
<!-- ===================================================================== --> <mkdir dir="${packageRuntimeDirectory}" />
<target name="postProcess"> <mkdir dir="${packageRuntimeRootDirectory}" />
</target>
<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-1.0M1.zip" basedir="${packageRuntimeDirectory}" />
<!-- Steps to do before running assemble. -->
<!-- ===================================================================== -->
<target name="preAssemble">
</target>
<!-- ===================================================================== --> <property name="packageSDKDirectory" location="${packageDirectory}\sdk" />
<!-- Steps to do after running assemble. --> <property name="packageSDKRootDirectory" location="${packageSDKDirectory}\eclipse" />
<!-- ===================================================================== --> <mkdir dir="${packageSDKDirectory}" />
<target name="postAssemble"> <mkdir dir="${packageSDKRootDirectory}" />
</target>
<!-- ===================================================================== --> <unzip src="${packageDirectory}\RSE-1.0M1.zip" dest="${packageSDKDirectory}" />
<!-- Steps to do after the build is done. --> <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="postBuild"> <unzip src="${buildDirectory}\features\org.eclipse.rse.ftp\org.eclipse.rse.ftp_1.0.0.src.zip" dest="${packageSDKRootDirectory}" />
<mkdir dir="${packageDirectory}"/> <unzip src="${buildDirectory}\features\org.eclipse.rse.local\org.eclipse.rse.local_1.0.0.src.zip" dest="${packageSDKRootDirectory}" />
<property name="packageRuntimeDirectory" location="${packageDirectory}\runtime"/> <zip destfile="${packageDirectory}\RSE-SDK-1.0M1.zip" basedir="${packageSDKDirectory}" />
<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="serverruntime"/>
<antcall target="publish"/> <antcall target="publish"/>
--> -->
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do to test the build results --> <!-- Steps to do to test the build results -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="test"> <target name="test">
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Steps to do to publish the build results --> <!-- Steps to do to publish the build results -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="publish" if="doPublish"> <target name="publish" if="doPublish">
<mkdir dir="${publishDirectory}"/> <mkdir dir="${publishDirectory}" />
<copy todir="${publishDirectory}"> <copy todir="${publishDirectory}">
<fileset dir="${packageDirectory}" includes="*.zip"/> <fileset dir="${packageDirectory}" includes="*.zip" />
</copy> </copy>
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Default target --> <!-- Default target -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="noDefault"> <target name="noDefault">
<echo message="You must specify a target when invoking this file" /> <echo message="You must specify a target when invoking this file" />
</target> </target>
<!-- ===================================================================== -->
<!-- Build the feature in own way --> <!-- ===================================================================== -->
<!-- Somehow the default builder doesn't work --> <!-- Build the feature in own way -->
<!-- ===================================================================== --> <!-- Somehow the default builder doesn't work -->
<target name="buildFeature"> <!-- ===================================================================== -->
<target name="buildFeature">
<echo message="Building feature ${featureFolder}" /> <echo message="Building feature ${featureFolder}" />
<!-- <!--
<ant antfile="${featureFolder}\build.xml" dir="${featureFolder}" target="build.jars" /> <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.distribution" />
<ant antfile="${featureFolder}\build.xml" dir="${featureFolder}" target="zip.sources" /> <ant antfile="${featureFolder}\build.xml" dir="${featureFolder}" target="zip.sources" />
</target> </target>
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Zip the docs --> <!-- Zip the docs -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<target name="zipDoc"> <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>