Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormfeldman2006-03-16 09:53:27 -0500
committermfeldman2006-03-16 09:53:27 -0500
commit1273fd01c5316bda7c9d004228b001bbedcc5c1e (patch)
treef1a204ca1e17971184a3d5f58fbf5e8769a93b63
parent3d11448947a1716c00cd3e403e4e612fc8dde82f (diff)
downloadorg.eclipse.gmf-tooling-1273fd01c5316bda7c9d004228b001bbedcc5c1e.tar.gz
org.eclipse.gmf-tooling-1273fd01c5316bda7c9d004228b001bbedcc5c1e.tar.xz
org.eclipse.gmf-tooling-1273fd01c5316bda7c9d004228b001bbedcc5c1e.zip
callisto build component
-rw-r--r--releng/org.eclipse.gmf.releng.builder/callisto/build.properties151
-rw-r--r--releng/org.eclipse.gmf.releng.builder/callisto/customTargets.xml260
2 files changed, 411 insertions, 0 deletions
diff --git a/releng/org.eclipse.gmf.releng.builder/callisto/build.properties b/releng/org.eclipse.gmf.releng.builder/callisto/build.properties
new file mode 100644
index 000000000..19fc5152e
--- /dev/null
+++ b/releng/org.eclipse.gmf.releng.builder/callisto/build.properties
@@ -0,0 +1,151 @@
+###############################################################################
+# Copyright (c) 2005 Borland Software Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Borland Software Corporation
+###############################################################################
+#####################
+# Parameters describing how and where to execute the build.
+# Typical users need only update the following properties:
+# baseLocation - where things you are building against are installed
+# bootclasspath - The base jars to compile against (typicaly rt.jar)
+# configs - the list of {os, ws, arch} configurations to build.
+#
+# Of course any of the settings here can be overridden by spec'ing
+# them on the command line (e.g., -DbaseLocation=d:/eclipse
+
+############# PRODUCT/PACKAGING CONTROL #############
+product=org.eclipse.gmf.callisto
+runPackager=true
+
+# The prefix that will be used in the generated archive.
+archivePrefix=eclipse
+
+# The location underwhich all of the build output will be collected.
+collectingFolder=${archivePrefix}
+
+# The list of {os, ws, arch} configurations to build. This
+# value is a '&' separated list of ',' separate triples. For example,
+# configs=win32,win32,x86 & linux,motif,x86
+# By default the value is *,*,*
+#config=win32, win32, x86 & \
+# linux, gtk, ppc &\
+# linux, gtk, x86 & \
+# linux, gtk, x86_64 & \
+# linux, motif, x86 & \
+# solaris, motif, sparc & \
+# solaris, gtk, sparc & \
+# aix, motif, ppc & \
+# hpux, motif, PA_RISC & \
+# macosx, carbon, ppc
+
+#The format of the archive. By default a zip is created using antZip.
+#The list can only contain the configuration for which the desired format is different than zip.
+#archivesFormat=win32, win32, x86 - antZip& \
+# linux, gtk, ppc - antZip &\
+# linux, gtk, x86 - antZip& \
+# linux, gtk, x86_64 - antZip& \
+# linux, motif, x86 - antZip& \
+# solaris, motif, sparc - antZip& \
+# solaris, gtk, sparc - antZip& \
+# aix, motif, ppc - antZip& \
+# hpux, motif, PA_RISC - antZip& \
+# macosx, carbon, ppc - antZip
+
+#Set to true if you want the output to be ready for an update jar (no site.xml generated)
+#outputUpdateJars = false
+
+#Arguments to send to the zip executable
+zipargs=
+
+archivesFormat=*,*,*-zip
+
+#Arguments to send to the tar executable
+tarargs=
+
+
+############## BUILD NAMING CONTROL ################
+# The directory into which the build elements are fetched and where
+# the build takes place.
+
+# Type of build. Used in naming the build output. Typically this value is
+# one of I, N, M, S, ...
+buildType=I
+
+# ID of the build. Used in naming the build output.
+buildId=build
+
+# Label for the build. Used in naming the build output
+buildLabel=${buildType}.${buildId}
+
+# Timestamp for the build. Used in naming the build output
+timestamp=0000
+
+#The value to be used for the qualifier of a plugin or feature when you want to override the value computed by pde.
+#The value will only be applied to plugin or features indicating build.properties, qualifier = context
+#forceContextQualifier=<the value for the qualifier>
+
+#Enable / disable the generation of a suffix for the features that use .qualifier.
+#The generated suffix is computed according to the content of the feature
+#generateFeatureVersionSuffix=true
+
+############# BASE CONTROL #############
+# Settings for the base Eclipse components and Java class libraries
+# against which you are building.
+# Base location for anything the build needs to compile against. For example,
+# in most RCP app or a plug-in, the baseLocation should be the location of a previously
+# installed Eclipse against which the application or plug-in code will be compiled.
+
+#skipBase=true
+#cleanBase=true
+#The default base location is relative to build root directory
+baseLocation=${buildRoot}/eclipse
+baseLocationRoot=${baseLocation}/..
+#Os/Ws/Arch/nl of the eclipse specified by baseLocation
+baseos=win32
+basews=win32
+basearch=x86
+
+############# CVS CONTROL ################
+# The CVS tag to use when fetching the map files from the repository
+
+#skipMaps=true
+mapsRepo=:pserver:anonymous@dev.eclipse.org/cvsroot/technology
+mapsRoot=org.eclipse.gmf/releng/org.eclipse.gmf.releng
+mapsCheckoutTag=HEAD
+
+#tagMaps=true
+mapsTagTag=v${buildId}
+
+# The CVS tag to use when fetching elements to build. By default the
+# builder will use whatever is in the maps. Use this value to override
+# for example, when doing a nightly build out of HEAD
+# fetchTag=HEAD
+#skipFetch=true
+
+
+############# JAVA COMPILER OPTIONS ##############
+# The location of the Java jars to compile against. Typically the rt.jar for your JDK/JRE
+bootclasspath=${java.home}/lib/rt.jar
+
+# Whether or not to include debug info in the output jars
+javacDebugInfo=true
+
+# Whether or not to fail the build if there are compiler errors
+javacFailOnError=true
+
+# Enable or disable verbose mode of the compiler
+javacVerbose=false
+
+# Extra arguments for the compiler. These are specific to the java compiler being used.
+compilerArg=-enableJavadoc
+
+# The version of the source code
+javacSource=1.4
+
+# The version of the byte code targeted
+javacTarget=1.4
diff --git a/releng/org.eclipse.gmf.releng.builder/callisto/customTargets.xml b/releng/org.eclipse.gmf.releng.builder/callisto/customTargets.xml
new file mode 100644
index 000000000..b4412cc69
--- /dev/null
+++ b/releng/org.eclipse.gmf.releng.builder/callisto/customTargets.xml
@@ -0,0 +1,260 @@
+<project name="Build specific targets and properties" default="noDefault">
+
+ <property name="id" value="org.eclipse.gmf.sdk" />
+
+ <!-- ===================================================================== -->
+ <!-- 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="${id}"/>
+ </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.gmf.sdk">
+ <property name="archiveName" value="GMF-sdk-${buildId}.zip"/>
+ <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Check out map files from correct repository -->
+ <!-- Replace values for mapsCheckoutTag as desired. -->
+ <!-- ===================================================================== -->
+ <target name="getMapFiles" depends="checkLocalMaps" unless="skipMaps">
+ <property name="mapsCheckoutTag" value="HEAD" />
+ <cvs command="checkout -d org.eclipse.gmf.releng" cvsRoot="${mapsRepo}" package="${mapsRoot}" dest="${buildDirectory}/maps" tag="${mapsCheckoutTag}" />
+ <!-- Check out target platform config -->
+ <property name="targetConfigTag" value="HEAD" />
+ <cvs command="checkout -d org.eclipse.gmf.releng.target" cvsRoot="${mapsRepo}" package="${mapsRoot}.target" dest="${buildDirectory}/maps" tag="${targetConfigTag}" />
+ </target>
+
+ <target name="checkLocalMaps">
+ <available property="skipMaps" file="${buildDirectory}/maps" />
+ </target>
+
+ <target name="tagMapFiles" if="tagMaps">
+ <cvs dest="${buildDirectory}/maps/${mapsRoot}" command="tag ${mapsTagTag}" />
+ </target>
+
+ <!-- ===================================================================== -->
+
+ <target name="clean" unless="noclean">
+ <antcall target="allElements">
+ <param name="target" value="cleanElement" />
+ </antcall>
+ </target>
+
+ <target name="gatherLogs">
+ <mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
+ <antcall target="allElements">
+ <param name="target" value="gatherLogs" />
+ </antcall>
+ <unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
+ <fileset dir="${buildDirectory}/features">
+ <include name="**/*.log.zip" />
+ </fileset>
+ </unzip>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before setup -->
+ <!-- ===================================================================== -->
+ <target name="preSetup">
+ <antcall target="cleanBase"/>
+ </target>
+
+ <target name="cleanBase" if="cleanBase">
+ <delete dir="${baseLocation}"/>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after setup but before starting the build proper -->
+ <!-- ===================================================================== -->
+ <target name="postSetup">
+ <!-- Load build.cfg properties -->
+ <property file="${buildDirectory}/maps/org.eclipse.gmf.releng.target/build.cfg"/>
+ <ant antfile="${scripts}/install.xml" target="installBase" />
+ <ant antfile="${scripts}/install.xml" target="installGEF" />
+ <ant antfile="${scripts}/install.xml" target="installEMF" />
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before fetching the build elements -->
+ <!-- ===================================================================== -->
+ <target name="preFetch" if="copyRuntime">
+ <!-- Avoid repeated download of runtime... -->
+ <copy todir="${buildDirectory}/plugins">
+ <fileset dir="${buildDirectory}/../runtime/plugins"/>
+ </copy>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after fetching the build elements -->
+ <!-- ===================================================================== -->
+ <target name="postFetch">
+ <!-- TODO: use this workaround if it is decided to have optional source builds -->
+ <!-- <antcall target="generateSources"/> -->
+ <replace dir="${buildDirectory}/plugins" value="${buildId}" token="@buildId@">
+ <include name="**/about.mappings" />
+ </replace>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- NOTE: This is not currently in use! -->
+ <!-- FIXME! This is a workaround, as there is apparently no property -->
+ <!-- setting to enable/disable source builds using generate.feature option.-->
+ <!-- http://www.eclipse.org/articles/Article-PDE-Automation/automation.html-->
+ <!-- ===================================================================== -->
+ <target name="generateSources" if="sourceBuild">
+ <replace file="${buildDirectory}/features/${id}/feature.xml">
+ <replacefilter token="&lt;!--@@INCLUDES@@--&gt;" value="&lt;includes id=&quot;${id}.source&quot; version=&quot;0.0.0&quot;/&gt;"/>
+ </replace>
+ <replace file="${buildDirectory}/features/${id}/build.properties">
+ <replacefilter token="#generate.feature" value="generate.feature" />
+ </replace>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- FIXME! In accordance with workaround above for source builds, clean -->
+ <!-- this build structure and force clean rebuild for normal builds. -->
+ <!-- ===================================================================== -->
+ <target name="preGenerate">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after generating the build scripts. -->
+ <!-- ===================================================================== -->
+ <target name="postGenerate">
+ <!-- Replace in generated plug-ins -->
+ <replace dir="${buildDirectory}/plugins" value="${buildId}" token="@buildId@">
+ <include name="**/about.mappings" />
+ </replace>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before running the build.xmls for the elements being built. -->
+ <!-- ===================================================================== -->
+ <target name="preProcess">
+ <property file="${buildDirectory}/maps/org.eclipse.gmf.releng.target/build.cfg"/>
+ <!-- TODO: Remove when dependency gone -->
+ <available file="${buildDirectory}/plugins/antlr/lib/antlr.jar" property="antlrExists" />
+ <ant antfile="${scripts}/install.xml" target="installAntlr" />
+ <antcall target="runJavadoc"/>
+ </target>
+
+ <target name="runJavadoc" unless="skipJavadoc">
+ <!-- Retrieve doclet -->
+ <cvs command="checkout -r HEAD org.eclipse.gmf/doc/org.eclipse.gmf.runtime.doclet"
+ cvsRoot=":pserver:anonymous@dev.eclipse.org:/cvsroot/technology"
+ dest="${buildDirectory}" />
+ <!-- Compile and package doclet -->
+ <ant antfile="${buildDirectory}/org.eclipse.gmf/doc/org.eclipse.gmf.runtime.doclet/build.xml"
+ target="build.jar"
+ dir="${buildDirectory}/org.eclipse.gmf/doc/org.eclipse.gmf.runtime.doclet" />
+ <property file="${buildDirectory}/maps/org.eclipse.gmf.releng.target/build.cfg"/>
+ <ant antfile="${buildDirectory}/plugins/org.eclipse.gmf.doc/buildDoc.xml" />
+ </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">
+ <delete>
+ <fileset dir="${buildDirectory}/plugins" includes="**/antlr.jar"/>
+ </delete>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after running assemble. -->
+ <!-- ===================================================================== -->
+ <target name="postAssemble">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before running package. -->
+ <!-- ===================================================================== -->
+ <target name="prePackage">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after running package. -->
+ <!-- ===================================================================== -->
+ <target name="postPackage">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after the build is done. -->
+ <!-- ===================================================================== -->
+ <target name="postBuild">
+ <antcall target="gatherLogs" />
+ <!-- A temporary directory leftover? -->
+ <delete dir="${buildDirectory}/org.eclipse.gmf" failonerror="false"/>
+ <antcall target="publish"/>
+ <antcall target="generateUpdateSite"/>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Update the update site. -->
+ <!-- ===================================================================== -->
+ <target name="generateUpdateSite">
+ <!-- Create the directory structure -->
+ <mkdir dir="${buildUpdateSitePath}/features"/>
+ <mkdir dir="${buildUpdateSitePath}/plugins"/>
+ <!-- Build the jar files -->
+ <antcall target="allElements">
+ <param name="genericTargets" value="${builder}/customTargets.xml"/>
+ <param name="target" value="updateSiteExport"/>
+ </antcall>
+ </target>
+
+ <target name="updateSiteExport">
+ <ant antfile="build.xml" dir="${buildDirectory}/features/${id}/" target="build.update.jar">
+ <property name="feature.destination" value="${buildUpdateSitePath}/features"/>
+ <property name="plugin.destination" value="${buildUpdateSitePath}/plugins"/>
+ <!-- Override the default temp.folder location, as it is too deep by default
+ on Windows, causing missing files in jars. -->
+ <property name="temp.folder" value="${buildRoot}/temp.folder"/>
+ </ant>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do to test the build results -->
+ <!-- ===================================================================== -->
+ <target name="test">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do to publish the build results -->
+ <!-- ===================================================================== -->
+ <target name="publish">
+ <move file="${buildDirectory}/${buildLabel}" tofile="${artifacts}/${buildLabel}"/>
+ <!-- workaround for CC until figure out how to tell CC about buildLabel -->
+ <delete dir="${artifacts}/cc" failonerror="false"/>
+ <copy todir="${artifacts}/cc">
+ <fileset dir="${artifacts}/${buildLabel}"/>
+ </copy>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Default target -->
+ <!-- ===================================================================== -->
+ <target name="noDefault">
+ <echo message="You must specify a target when invoking this file" />
+ </target>
+
+</project>

Back to the top