mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
initial population of build project
This commit is contained in:
parent
eb37f378dd
commit
9244029a86
5 changed files with 724 additions and 0 deletions
11
releng/org.eclipse.rse.build/.project
Normal file
11
releng/org.eclipse.rse.build/.project
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>org.eclipse.rse.build</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
</natures>
|
||||
</projectDescription>
|
163
releng/org.eclipse.rse.build/scripts/build.xml
Normal file
163
releng/org.eclipse.rse.build/scripts/build.xml
Normal file
|
@ -0,0 +1,163 @@
|
|||
<project name="Build All Elements" default="main">
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Custom settings -->
|
||||
<!-- ===================================================================== -->
|
||||
|
||||
<property name="MailLogger.mailhost" value="d25ml01.torolab.ibm.com" />
|
||||
<property name="MailLogger.from" value="dmcknigh@ca.ibm.com" />
|
||||
<property name="MailLogger.success.notify" value="true" />
|
||||
<property name="MailLogger.failure.to" value="dmcknigh@ca.ibm.com" />
|
||||
<property name="MailLogger.success.to" value="dmcknigh@ca.ibm.com" />
|
||||
<property name="MailLogger.success.subject" value="Build Success from RSE Head 8.0" />
|
||||
<property name="MailLogger.failure.subject" value="Build Failure from RSE Head 8.0" />
|
||||
<property name="head" value="${baseLocation}\..\..\packagehome" />
|
||||
<property name="configs" value="*,*,*"/>
|
||||
<path id="path_bootclasspath">
|
||||
<fileset dir="${java.home}/lib">
|
||||
<include name="*.jar" />
|
||||
</fileset>
|
||||
</path>
|
||||
<property name="bootclasspath" refid="path_bootclasspath" />
|
||||
|
||||
<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 -->
|
||||
<!-- the properties which callers can control. -->
|
||||
<!-- ===================================================================== -->
|
||||
<property name="builderDirectory" location="${builder}"/>
|
||||
<property name="buildProperties" location="${builder}/build.properties"/>
|
||||
<property file="${buildProperties}"/>
|
||||
<property name="customTargets" location="${builderDirectory}/customTargets.xml"/>
|
||||
<property name="genericTargets" location="genericTargets.xml"/>
|
||||
<property name="packageDirectory" location="%{packageDirectory}"/>
|
||||
<property name="publishDirectory" location="%{publishDirectory}"/>
|
||||
|
||||
<condition property="doExtract" value="true">
|
||||
<equals arg1="${bld_do_extract}" arg2="yes" />
|
||||
</condition>
|
||||
<condition property="doBuild" value="true">
|
||||
<equals arg1="${bld_do_build}" arg2="yes" />
|
||||
</condition>
|
||||
<condition property="doPackage" value="true">
|
||||
<equals arg1="${bld_do_package}" arg2="yes" />
|
||||
</condition>
|
||||
|
||||
<condition property="doPublish" value="true">
|
||||
<equals arg1="${bld_do_publish}" arg2="yes" />
|
||||
</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 -->
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- 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..."/>
|
||||
<mkdir dir="${buildDirectory}" />
|
||||
<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 -->
|
||||
<!-- ===================================================================== -->
|
||||
<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 -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="generate" if="doBuild">
|
||||
<echo message="Generating build scripts..."/>
|
||||
<ant antfile="${customTargets}" target="preGenerate"/>
|
||||
<!-- Generate the build.xml for each build element-->
|
||||
<ant antfile="${customTargets}" target="allElements">
|
||||
<property name="target" value="generateScript" />
|
||||
</ant>
|
||||
<ant antfile="${customTargets}" target="postGenerate"/>
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Run the build scripts for each element identified in the customTargets -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="process" if="doBuild">
|
||||
<echo message="Building..."/>
|
||||
<!-- Run custom tasks before processing, i.e. creating source build zip files -->
|
||||
<ant antfile="${customTargets}" target="preProcess" />
|
||||
|
||||
<!-- Process all of the build elements-->
|
||||
<ant antfile="${customTargets}" target="allElements">
|
||||
<property name="target" value="processElement" />
|
||||
</ant>
|
||||
|
||||
<!-- Run custom tasks after compiling, i.e. reporting compile errors -->
|
||||
<ant antfile="${customTargets}" target="postProcess" />
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Assemble the build elements into final distributions -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="assemble" if="doPackage">
|
||||
<echo message="Assembling..."/>
|
||||
<ant antfile="${customTargets}" target="preAssemble"/>
|
||||
<ant antfile="${customTargets}" target="allElements">
|
||||
<property name="target" value="assembleElement"/>
|
||||
</ant>
|
||||
<ant antfile="${customTargets}" target="postAssemble"/>
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Do any steps required after the build (e.g., posting, testing, ...) -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="postBuild" if="doPackage">
|
||||
<echo message="Packaging..."/>
|
||||
<ant antfile="${customTargets}" target="postBuild" />
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Clean the build elements. This target is here as an entry -->
|
||||
<!-- point to the customTargets. It is not called directly in the normal -->
|
||||
<!-- course of events. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="clean">
|
||||
<ant antfile="${customTargets}" target="allElements">
|
||||
<property name="target" value="cleanElement"/>
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
</project>
|
362
releng/org.eclipse.rse.build/scripts/customTargets.xml
Normal file
362
releng/org.eclipse.rse.build/scripts/customTargets.xml
Normal file
|
@ -0,0 +1,362 @@
|
|||
<project name="Build specific targets and properties" default="noDefault" >
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Run a given ${target} on all elements being built -->
|
||||
<!-- Add on <ant> task for each top level element being built. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="allElements">
|
||||
<ant antfile="${genericTargets}" target="${target}" >
|
||||
<property name="type" value="feature" />
|
||||
<property name="id" value="org.eclipse.rse.core" />
|
||||
</ant>
|
||||
<ant antfile="${genericTargets}" target="${target}" >
|
||||
<property name="type" value="feature" />
|
||||
<property name="id" value="org.eclipse.rse.local" />
|
||||
</ant>
|
||||
<ant antfile="${genericTargets}" target="${target}" >
|
||||
<property name="type" value="feature" />
|
||||
<property name="id" value="org.eclipse.rse.ftp" />
|
||||
</ant>
|
||||
<ant antfile="${genericTargets}" target="${target}" >
|
||||
<property name="type" value="feature" />
|
||||
<property name="id" value="org.eclipse.rse.telnet" />
|
||||
</ant>
|
||||
<ant antfile="${genericTargets}" target="${target}" >
|
||||
<property name="type" value="feature" />
|
||||
<property name="id" value="org.eclipse.rse.dstore" />
|
||||
</ant>
|
||||
<ant antfile="${genericTargets}" target="${target}" >
|
||||
<property name="type" value="feature" />
|
||||
<property name="id" value="org.eclipse.rse.dstore.services" />
|
||||
</ant>
|
||||
|
||||
<ant antfile="${genericTargets}" target="${target}" >
|
||||
<property name="type" value="feature" />
|
||||
<property name="id" value="org.eclipse.rse.doc.isv" />
|
||||
</ant>
|
||||
<ant antfile="${genericTargets}" target="${target}" >
|
||||
<property name="type" value="feature" />
|
||||
<property name="id" value="org.eclipse.rse.sdk" />
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Targets to assemble the built elements for particular configurations -->
|
||||
<!-- These generally call the generated assemble scripts (named in -->
|
||||
<!-- ${assembleScriptName}) but may also add pre and post processing -->
|
||||
<!-- Add one target for each root element and each configuration -->
|
||||
<!-- ===================================================================== -->
|
||||
|
||||
<target name="assemble.org.eclipse.rse.core">
|
||||
<antcall target="buildFeature">
|
||||
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.core" />
|
||||
</antcall>
|
||||
</target>
|
||||
<target name="assemble.org.eclipse.rse.local">
|
||||
<antcall target="buildFeature">
|
||||
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.local" />
|
||||
</antcall>
|
||||
</target>
|
||||
<target name="assemble.org.eclipse.rse.ftp">
|
||||
<antcall target="buildFeature">
|
||||
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.ftp" />
|
||||
</antcall>
|
||||
</target>
|
||||
<target name="assemble.org.eclipse.rse.telnet">
|
||||
<antcall target="buildFeature">
|
||||
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.telnet" />
|
||||
</antcall>
|
||||
</target>
|
||||
<target name="assemble.org.eclipse.rse.dstore">
|
||||
<antcall target="buildFeature">
|
||||
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.dstore" />
|
||||
</antcall>
|
||||
</target>
|
||||
<target name="assemble.org.eclipse.rse.dstore.services">
|
||||
<antcall target="serverruntime"/>
|
||||
<antcall target="buildFeature">
|
||||
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.dstore.services" />
|
||||
</antcall>
|
||||
</target>
|
||||
|
||||
<target name="assemble.org.eclipse.rse.doc.isv">
|
||||
<antcall target="buildFeature">
|
||||
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.doc.isv" />
|
||||
</antcall>
|
||||
</target>
|
||||
<target name="assemble.org.eclipse.rse.sdk">
|
||||
<antcall target="buildFeature">
|
||||
<param name="featureFolder" value="${buildDirectory}\features\org.eclipse.rse.sdk" />
|
||||
</antcall>
|
||||
</target>
|
||||
|
||||
|
||||
|
||||
<target name="dstore_extra_server.jar">
|
||||
<mkdir dir="${buildDirectory}/plugins/org.eclipse.dstore.extra/serverruntime"/>
|
||||
<delete 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"/>
|
||||
<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"/>
|
||||
</target>
|
||||
|
||||
<target name="serverruntime">
|
||||
<antcall target="dstore_extra_server.jar"/>
|
||||
<property name="universalserverfilelist"
|
||||
value="${buildDirectory}/plugins/org.eclipse.dstore.core/dstore_core.jar,
|
||||
${buildDirectory}/plugins/org.eclipse.dstore.core/serverscripts/auth.pl,
|
||||
${buildDirectory}/plugins/org.eclipse.dstore.core/serverscripts/ssl.properties,
|
||||
${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/clientserver.jar,
|
||||
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/dstore_miners.jar,
|
||||
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/minerFile.dat,
|
||||
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/rsecomm.properties,
|
||||
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/server.linux,
|
||||
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/server.unix,
|
||||
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/patterns.dat,
|
||||
${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/daemon.win.bat,
|
||||
${buildDirectory}/plugins/org.eclipse.rse.services.dstore/serverruntime/run.win.bat"/>
|
||||
|
||||
<delete dir="${packageDirectory}\rseserver"/>
|
||||
<mkdir dir="${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/serverscripts" includes="auth.pl"/>
|
||||
<fileset dir="${buildDirectory}/plugins/org.eclipse.dstore.core/serverscripts" includes="ssl.properties"/>
|
||||
<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="patterns.dat"/>
|
||||
<fileset dir="${buildDirectory}/plugins/org.eclipse.rse.services" includes="clientserver.jar"/>
|
||||
<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="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="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="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="run.win.bat"/>
|
||||
</copy>
|
||||
|
||||
<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.unix"/>
|
||||
<fixcrlf srcdir="${packageDirectory}\rseserver" eol="crlf" eof="asis" includes="server.unix"/>
|
||||
|
||||
|
||||
<jar jarfile="${packageDirectory}\rseserver.jar" filesonly="true">
|
||||
<fileset dir="${packageDirectory}\rseserver"
|
||||
includes="*"
|
||||
excludes="">
|
||||
</fileset>
|
||||
</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 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/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>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do after fetching the build elements -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="postFetch">
|
||||
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do before generating the build scripts. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="preGenerate">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do after generating the build scripts. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="postGenerate">
|
||||
</target>
|
||||
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do before running the build.xmls for the elements being built. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="preProcess">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do after running the build.xmls for the elements being built. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="postProcess">
|
||||
</target>
|
||||
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do before running assemble. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="preAssemble">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do after running assemble. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="postAssemble">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do after the build is done. -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="postBuild">
|
||||
<mkdir dir="${packageDirectory}"/>
|
||||
<copy todir="${packageDirectory}">
|
||||
<fileset dir="${buildDirectory}\features\org.eclipse.rse.core" includes="org.eclipse.rse.core_8.0.0.bin.dist.zip"/>
|
||||
<fileset dir="${buildDirectory}\features\org.eclipse.rse.dstore" includes="org.eclipse.rse.dstore_8.0.0.bin.dist.zip"/>
|
||||
<fileset dir="${buildDirectory}\features\org.eclipse.rse.dstore.services" includes="org.eclipse.rse.dstore.services_8.0.0.bin.dist.zip"/>
|
||||
<fileset dir="${buildDirectory}\features\org.eclipse.rse.ftp" includes="org.eclipse.rse.ftp_8.0.0.bin.dist.zip"/>
|
||||
<fileset dir="${buildDirectory}\features\org.eclipse.rse.local" includes="org.eclipse.rse.local_8.0.0.bin.dist.zip"/>
|
||||
<fileset dir="${buildDirectory}\features\org.eclipse.rse.telnet" includes="org.eclipse.rse.telnet_8.0.0.bin.dist.zip"/>
|
||||
<fileset dir="${buildDirectory}\features\org.eclipse.rse.sdk" includes="org.eclipse.rse.sdk_8.0.0.bin.dist.zip"/>
|
||||
</copy>
|
||||
|
||||
<move tofile="${packageDirectory}\rse-core-runtime_8.0.0.zip" file="${packageDirectory}\org.eclipse.rse.core_8.0.0.bin.dist.zip"/>
|
||||
<move tofile="${packageDirectory}\rse-dstore-runtime_8.0.0.zip" file="${packageDirectory}\org.eclipse.rse.dstore_8.0.0.bin.dist.zip"/>
|
||||
<move tofile="${packageDirectory}\rse-dstore-services-runtime_8.0.0.zip" file="${packageDirectory}\org.eclipse.rse.dstore.services_8.0.0.bin.dist.zip"/>
|
||||
<move tofile="${packageDirectory}\rse-ftp-runtime_8.0.0.zip" file="${packageDirectory}\org.eclipse.rse.ftp_8.0.0.bin.dist.zip"/>
|
||||
<move tofile="${packageDirectory}\rse-local-runtime_8.0.0.zip" file="${packageDirectory}\org.eclipse.rse.local_8.0.0.bin.dist.zip"/>
|
||||
<move tofile="${packageDirectory}\rse-telnet-runtime_8.0.0.zip" file="${packageDirectory}\org.eclipse.rse.telnet_8.0.0.bin.dist.zip"/>
|
||||
<move tofile="${packageDirectory}\rse-sdk_8.0.0.zip" file="${packageDirectory}\org.eclipse.rse.sdk_8.0.0.bin.dist.zip"/>
|
||||
|
||||
<!--
|
||||
<antcall target="serverruntime"/>
|
||||
|
||||
<antcall target="publish"/>
|
||||
-->
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do to test the build results -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="test">
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Steps to do to publish the build results -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="publish" if="doPublish">
|
||||
<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" />
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Zip the docs -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="zipDoc">
|
||||
<zip destfile="${buildDirectory}\plugins\${docPluginID}\doc.zip" filesonly="false" defaultexcludes="true">
|
||||
<fileset dir="${buildDirectory}\plugins\${docPluginID}" defaultexcludes="true">
|
||||
<include name= "**/*.gif" />
|
||||
<include name="**/*.html" />
|
||||
<include name="**/*.htm" />
|
||||
<include name= "**/*.GIF" />
|
||||
<include name="**/*.HTML" />
|
||||
<include name="**/*.HTM" />
|
||||
<include name="**/*.css" />
|
||||
</fileset>
|
||||
</zip>
|
||||
</target>
|
||||
</project>
|
149
releng/org.eclipse.rse.build/scripts/genericTargets.xml
Normal file
149
releng/org.eclipse.rse.build/scripts/genericTargets.xml
Normal file
|
@ -0,0 +1,149 @@
|
|||
<project name="Generic Build Targets" default="noDefault">
|
||||
|
||||
<!-- Properties that must be passed to this script:
|
||||
buildDirectory
|
||||
id
|
||||
type
|
||||
ignoreTagInfo
|
||||
recursiveGeneration
|
||||
workingDirectory
|
||||
configInfo
|
||||
-->
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Setup default values -->
|
||||
<!-- configs : by default build a platform-independent configuration -->
|
||||
<!-- fetchTag : by default use the CVS tags as spec'd in directory.txt -->
|
||||
<!-- ===================================================================== -->
|
||||
<property name="configs" value="*,*,*"/>
|
||||
<property name="fetchTag" value=""/>
|
||||
<property name="buildingOSGi" value="true"/>
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Fetch a single element (feature, plugin, fragment) -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="fetchElement" description="Checking out source from repository..." depends="init">
|
||||
<mkdir dir="${buildDirectory}/features"/>
|
||||
<mkdir dir="${buildDirectory}/plugins"/>
|
||||
<eclipse.fetch
|
||||
elements="${type}@${id}"
|
||||
buildDirectory="${buildDirectory}"
|
||||
directory="${buildDirectory}/directory.txt"
|
||||
fetchTag="${fetchTag}"
|
||||
configInfo="${configs}"
|
||||
/>
|
||||
|
||||
<!-- Run generated fetch script -->
|
||||
|
||||
<echo message="featuresRecursively is :${featuresRecursively}"/>
|
||||
|
||||
<ant antfile="${buildDirectory}/fetch_${id}.xml">
|
||||
<!-- ************ should not have to spec these *************** -->
|
||||
<property name="featureOnly" value="true"/>
|
||||
<property name="featureAndPlugins" value="true"/>
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Clean previously built elements -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="cleanElement" description="Scrubbing features and plugins of old jars..." depends="init">
|
||||
<echo message="${elementPath}"/>
|
||||
<ant antfile="build.xml" dir="${elementPath}" target="clean"/>
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Generate a build.xml file for an element -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="generateScript" description="Generating build scripts..." depends="init">
|
||||
<echo message="eclipse.buildScript ${type}@${id} buildDirectory=${buildDirectory} buildingOSGi=${buildingOSGi} baseLocation=${baseLocation} " />
|
||||
<eclipse.buildScript
|
||||
elements="${type}@${id}"
|
||||
buildDirectory="${buildDirectory}"
|
||||
configInfo="${configs}"
|
||||
baseLocation="${baseLocation}"
|
||||
buildingOSGi="${buildingOSGi}"
|
||||
archivesFormat="${archivesFormat}"
|
||||
/>
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Run build.xml for a single element-->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="processElement" description="Processing build scripts..." depends="init">
|
||||
<ant antfile="build.xml" dir="${elementPath}" target="build.jars">
|
||||
<property name="target" value="build.jars"/>
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<!-- **********************
|
||||
1) the gather targets do more than just gather. These are packaging targets.
|
||||
We need to continue ot separate the two concepts (gather and package) as
|
||||
the packaging is different if we wanted to create an update site packaging
|
||||
(for example). The gathers are commented out for now as the new generated
|
||||
scripts do not seem to have them.
|
||||
|
||||
2) do we really need the ws and os properties? In all cases? Do they have to be
|
||||
set here?
|
||||
-->
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Gather items listed in bin.includes -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="gatherBinaries" description="Gathering binary distribution..." depends="init">
|
||||
<!-- ant antfile="build.xml" dir="${elementPath}" target="gather.bin.parts"/ -->
|
||||
<ant antfile="build.xml" dir="${elementPath}" target="zip.distribution">
|
||||
<property name="os" value="${os}" />
|
||||
<property name="ws" value="${ws}" />
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Gather source for a build element -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="gatherSources" description="Gathering source distribution..." depends="init">
|
||||
<!--suspect: this call is required to create the *.src.zip inside each plugin-->
|
||||
<ant antfile="build.xml" dir="${elementPath}" target="build.sources">
|
||||
<property name="os" value="${os}" />
|
||||
<property name="ws" value="${ws}" />
|
||||
</ant>
|
||||
<ant antfile="build.xml" dir="${elementPath}" target="zip.sources">
|
||||
<property name="os" value="${os}" />
|
||||
<property name="ws" value="${ws}" />
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Gather log files for an element -->
|
||||
<!-- Suspect: We just unzip these right away -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="gatherLogs" description="Gathering build logs..." depends="init">
|
||||
<ant antfile="build.xml" dir="${elementPath}" target="zip.logs" >
|
||||
<property name="buildDirectory" value="${buildDirectory}" />
|
||||
</ant>
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Default target -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="noDefault">
|
||||
<echo message="This file must be called with explicit targets" />
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Assemble one build element -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="assembleElement" description="Assembling the build..." depends="init">
|
||||
<ant antfile="assemble.${id}.all.xml" dir="${buildDirectory}"/>
|
||||
</target>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- Miscellaneous helper targets -->
|
||||
<!-- ===================================================================== -->
|
||||
<target name="init">
|
||||
<condition property="elementPath" value="${buildDirectory}/plugins/${id}">
|
||||
<equals arg1="${type}" arg2="fragment" />
|
||||
</condition>
|
||||
<property name="elementPath" value="${buildDirectory}/${type}s/${id}" />
|
||||
</target>
|
||||
|
||||
</project>
|
39
releng/org.eclipse.rse.build/scripts/rse.map
Normal file
39
releng/org.eclipse.rse.build/scripts/rse.map
Normal file
|
@ -0,0 +1,39 @@
|
|||
feature@org.eclipse.rse.core=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse,,org.eclipse.rse.core.feature
|
||||
feature@org.eclipse.rse.local=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse,,org.eclipse.rse.local.feature
|
||||
feature@org.eclipse.rse.dstore=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse,,org.eclipse.rse.dstore.feature
|
||||
feature@org.eclipse.rse.dstore.services=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse,,org.eclipse.rse.dstore.services.feature
|
||||
feature@org.eclipse.rse.ftp=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse,,org.eclipse.rse.ftp.feature
|
||||
feature@org.eclipse.rse.telnet=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse,,org.eclipse.rse.telnet.feature
|
||||
feature@org.eclipse.rse.doc.isv=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse,,org.eclipse.rse.doc.isv.feature
|
||||
feature@org.eclipse.rse.sdk=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse,,org.eclipse.rse.sdk.feature
|
||||
|
||||
|
||||
plugin@org.eclipse.rse.services=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.core=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.logging=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.subsystems.files.core=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.subsystems.shells.core=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.subsystems.processes.core=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.ui=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.files.ui=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.shells.ui=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.processes.ui=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.dstore.core=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.dstore.extra=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.dstore.security=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.services.local=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.services.dstore=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.services.files.ftp=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.services.shells.telnet=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.connectorservice.local=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.connectorservice.dstore=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.subsystems.files.local=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.subsystems.shells.local=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.subsystems.processes.local=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.subsystems.files.dstore=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.subsystems.shells.dstore=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.subsystems.processes.dstore=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.subsystems.files.ftp=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.subsystems.shells.telnet=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.rse.doc.isv=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
||||
plugin@org.eclipse.dstore.doc.isv=HEAD,:extssh:mikeman@cvs.cs.opensource.ibm.com:/cvsroot/rse
|
Loading…
Add table
Reference in a new issue