Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.jet.ec2008.pushbuttonbuild')
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild/.classpath8
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild/.cvsignore1
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild/.project29
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild/.settings/org.eclipse.jet.prefs5
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild/build.properties9
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/dump.jet5
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/extraZIP/build.properties.jet35
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/extraZIP/customTargets.xml.jet215
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/main.jet85
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/builder/sdk/build.properties.jet35
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/builder/sdk/customTargets.xml.jet215
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/maps/_SHORTNAME_.map.jet12
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/maps/build.cfg.jet4
14 files changed, 665 insertions, 0 deletions
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild/.classpath b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/.classpath
new file mode 100644
index 0000000..c7bb288
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/.classpath
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="jet2java"/>
+ <classpathentry exported="true" kind="lib" path="bin" sourcepath="bin"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild/.cvsignore b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/.cvsignore
new file mode 100644
index 0000000..ba077a4
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/.cvsignore
@@ -0,0 +1 @@
+bin
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild/.project b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/.project
new file mode 100644
index 0000000..4bd99ae
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/.project
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.jet.ec2008.pushbuttonbuild</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jet.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.jet.jet2Nature</nature>
+ </natures>
+</projectDescription>
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild/.settings/org.eclipse.jdt.core.prefs b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..03d0280
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+#Fri Apr 04 11:34:05 EDT 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild/.settings/org.eclipse.jet.prefs b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/.settings/org.eclipse.jet.prefs
new file mode 100644
index 0000000..a962fe0
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/.settings/org.eclipse.jet.prefs
@@ -0,0 +1,5 @@
+#Mon Mar 17 13:52:25 PDT 2008
+eclipse.preferences.version=1
+org.eclipse.jet.compiledTemplatePackage=org.eclipse.jet.ec2008.pushbuttonbuild.compiled
+org.eclipse.jet.compiledTemplateSrcDir=jet2java
+org.eclipse.jet.projectPrefs=true
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild/build.properties b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/build.properties
new file mode 100644
index 0000000..cb23e8a
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/build.properties
@@ -0,0 +1,9 @@
+source.. = jet2java/
+output.. = bin/
+bin.includes = .,\
+ plugin.xml,\
+ META-INF/,\
+ templates/
+src.includes = .project,\
+ build.properties,\
+ .classpath
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/dump.jet b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/dump.jet
new file mode 100644
index 0000000..428f088
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/dump.jet
@@ -0,0 +1,5 @@
+<%!
+/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
+%>
+<?xml version="1.0" encoding="utf-8"?>
+<c:dump select="/*" format="true" entities="true"/>
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/extraZIP/build.properties.jet b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/extraZIP/build.properties.jet
new file mode 100644
index 0000000..05dbb0e
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/extraZIP/build.properties.jet
@@ -0,0 +1,35 @@
+<%!
+/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
+%>
+<c:choose>
+<c:when test="$build/@jre = 'J2SE-1.5'">
+javacSource=5.0
+javacTarget=5.0
+</c:when>
+<c:when test="$build/@jre = 'J2SE-1.4'">
+javacSource=1.4
+javacTarget=1.4
+</c:when>
+</c:choose>
+
+buildDirectory=${builder}/../eclipse
+buildType=I
+buildId=${buildId}
+buildLabel=${buildLabel}
+timestamp=0000
+collPlace=.
+collBase=.
+baseLocation=
+configs=*,*,*
+baseos=linux
+basews=gtk
+basearch=x86
+bootclasspath=${java.home}/lib/*.jar
+javacFailOnError=true
+javacVerbose=true
+javacDebugInfo=on
+zipargs=
+archivesFormat = *,*,*-antZip
+collectingFolder=eclipse
+archivePrefix=eclipse
+generateFeatureVersionSuffix=true
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/extraZIP/customTargets.xml.jet b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/extraZIP/customTargets.xml.jet
new file mode 100644
index 0000000..227ba19
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/extraZIP/customTargets.xml.jet
@@ -0,0 +1,215 @@
+<%!
+/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
+%>
+<project name="Build specific targets and properties" default="noDefault" basedir=".">
+
+ <property name="archiveName" value="<c:get select="$build/@parentProjectName"/>-${subprojectName}-<c:get select="$extraZIP/@name"/>-<c:get select="$build/@incubationTag"/>${buildAlias}.zip" />
+ <!-- ===================================================================== -->
+ <!-- Run a given ${target} on all elements being built -->
+ <!-- ===================================================================== -->
+ <target name="allElements">
+ <ant antfile="${genericTargets}" target="${target}">
+ <property name="type" value="feature" />
+ <property name="id" value="org.eclipse.<c:get select="$build/@projectNamespace"/>.<c:get select="$extraZIP/@name"/>" />
+ </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.<c:get select="$build/@projectNamespace"/>.<c:get select="$extraZIP/@name"/>">
+ <ant antfile="${assembleScriptName}" />
+ <!-- ADD POST STEPS -->
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Check out map files from correct repository -->
+ <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
+ <!-- ===================================================================== -->
+ <target name="checkLocal">
+ <available property="mapsLocal" file="${buildDirectory}/maps" />
+ </target>
+
+ <target name="getMapFiles" depends="checkLocal" unless="mapsLocal">
+
+ <!-- *** change the repo info -->
+ <property name="mapCvsRoot" value=":${cvsReadProtocol}:${cvsReadUser}@${cvsHost}:${cvsRep}" />
+
+ <property name="mapVersionTag" value="HEAD" />
+ <property name="packagePath" value="org.eclipse.${projectName}/org.eclipse.${subprojectName2}.releng/maps"/>
+
+ <cvs cvsRsh="ssh" cvsRoot="${mapCvsRoot}" tag="${mapVersionTag}"
+ package="${packagePath}" dest="${buildDirectory}/maps" />
+ <copy todir="${buildDirectory}/maps/CVS" overwrite="true">
+ <fileset dir="${buildDirectory}/maps/${packagePath}/CVS" />
+ </copy>
+ <copy todir="${buildDirectory}/maps" overwrite="true">
+ <fileset dir="${buildDirectory}/maps/${packagePath}" />
+ </copy>
+ <delete dir="${buildDirectory}/maps/org.eclipse.${projectName}" />
+
+ <!--tag the map files project-->
+ <antcall target="tagMapFiles" />
+ </target>
+
+ <target name="tagMapFiles" if="tagMaps">
+ <cvs cvsRsh="ssh" dest="${buildDirectory}/maps" command="tag v${timestamp}" />
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before setup -->
+ <!-- ===================================================================== -->
+ <target name="preSetup">
+ <mkdir dir="${buildDirectory}/${buildLabel}"/>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after setup but before starting the build proper -->
+ <!-- ===================================================================== -->
+ <target name="postSetup">
+ <!-- TODO: if your project requires more dependencies, add them here -->
+ <!-- TODO: if your project requires more dependencies, add them here; if it does not require all of these, remove those not required -->
+ <echo message="Download, then unpack: Eclipse, EMF, UML2, OCL, Query, Transaction, Validation, GEF, GMF ..." />
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${eclipseURL}" />
+ <property name="file" value="${eclipseFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.platform.doc.isv/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${emfURL}" />
+ <property name="file" value="${emfFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.emf.ecore/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${uml2URL}" />
+ <property name="file" value="${uml2File}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.uml2/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${oclURL}" />
+ <property name="file" value="${oclFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.emf.ocl/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${queryURL}" />
+ <property name="file" value="${queryFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.emf.query/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${transactionURL}" />
+ <property name="file" value="${transactionFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.emf.transaction/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${validationURL}" />
+ <property name="file" value="${validationFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.emf.validation/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${gefURL}" />
+ <property name="file" value="${gefFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.gef/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${gmfURL}" />
+ <property name="file" value="${gmfFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.gmf/META-INF/MANIFEST.MF" />
+ </ant>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before fetching the build elements -->
+ <!-- ===================================================================== -->
+ <target name="preFetch">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after the fetch -->
+ <!-- ===================================================================== -->
+ <target name="postFetch">
+ <replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@buildid@">
+ <include name="**/about.mappings" />
+ </replace>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before generating build scripts -->
+ <!-- ===================================================================== -->
+ <target name="preGenerate">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after generating the build scripts -->
+ <!-- ===================================================================== -->
+ <target name="postGenerate">
+ <antcall target="clean" />
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before assembling -->
+ <!-- ===================================================================== -->
+ <target name="preAssemble">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after assembling-->
+ <!-- ===================================================================== -->
+ <target name="postAssemble">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before running the build.xmls for the elements being built. -->
+ <!-- ===================================================================== -->
+ <target name="preProcess">
+ <replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@build@">
+ <include name="**/about.mappings" />
+ </replace>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after running the build.xmls for the elements being built. -->
+ <!-- ===================================================================== -->
+ <target name="postProcess">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after everything is built and assembled -->
+ <!-- (e.g., testing, posting, emailing, ...) -->
+ <!-- ===================================================================== -->
+ <target name="postBuild">
+ <antcall target="gatherLogs" />
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Helper targets -->
+ <!-- ===================================================================== -->
+ <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/org.eclipse.<c:get select="$build/@projectNamespace"/>.<c:get select="$extraZIP/@name"/>">
+ <include name="*.log.zip" />
+ </fileset>
+ </unzip>
+ </target>
+ <target name="clean" unless="noclean">
+ <antcall target="allElements">
+ <param name="target" value="cleanElement" />
+ </antcall>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Default target -->
+ <!-- ===================================================================== -->
+ <target name="noDefault">
+ <echo message="You must specify a target when invoking this file" />
+ </target>
+
+</project>
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/main.jet b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/main.jet
new file mode 100644
index 0000000..2dd7451
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/main.jet
@@ -0,0 +1,85 @@
+<%!
+/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
+%>
+<%@taglib prefix="ws" id="org.eclipse.jet.workspaceTags" %>
+<%-- Main entry point for org.eclipse.jet.ec2008.pushbuttonbuild --%>
+
+<%--
+TODO: traverse input model, performing calculations and storing
+the results as model annotations via c:set tag
+--%>
+<c:setVariable var="build" select="/*"/>
+
+<c:set select="$build" name="relengProjectName">org.eclipse.<c:get select="$build/@projectNamespace"/>.releng</c:set>
+<c:set select="$build" name="incubationTag"></c:set>
+<c:if test="$build/@isIncubation = 'true'">
+ <c:set select="$build" name="incubationTag">incubation-</c:set>
+</c:if>
+<%--
+TODO: traverse annotated model, performing text generation actions
+such as ws:file, ws:folder and ws:project
+--%>
+<ws:project name="{$build/@relengProjectName}">
+ <ws:file path=".project" template="templates/project/project.jet"/>
+ <ws:file path="build.xml" template="templates/project/build.xml.jet"/>
+ <ws:file path="buildAll.xml" template="templates/project/buildAll.xml.jet"/>
+ <ws:file path="projectToEclipse.{$build/@shortName}.properties" template="templates/project/promoteToEclipse._SHORTNAME_.properties.jet"/>
+ <ws:file path="repoInfo.properties" template="templates/project/repoInfo.properties.jet"/>
+ <ws:file path="testManifest.xml" template="templates/project/testManifest.xml.jet"/>
+ <ws:folder path="builder">
+ <ws:folder path="doc">
+ <ws:file path="build.properties" template="templates/project/builder/doc/build.properties.jet"/>
+ <ws:file path="customTargets.xml" template="templates/project/builder/doc/customTargets.xml.jet"/>
+ </ws:folder>
+ <ws:folder path="examples">
+ <ws:file path="build.properties" template="templates/project/builder/examples/build.properties.jet"/>
+ <ws:file path="customTargets.xml" template="templates/project/builder/examples/customTargets.xml.jet"/>
+ </ws:folder>
+ <ws:folder path="runtime">
+ <ws:file path="build.properties" template="templates/project/builder/runtime/build.properties.jet"/>
+ <ws:file path="customTargets.xml" template="templates/project/builder/runtime/customTargets.xml.jet"/>
+ </ws:folder>
+ <ws:folder path="sdk">
+ <ws:file path="build.properties" template="templates/project/builder/sdk/build.properties.jet"/>
+ <ws:file path="customTargets.xml" template="templates/project/builder/sdk/customTargets.xml.jet"/>
+ </ws:folder>
+ <ws:folder path="tests">
+ <ws:folder path="configs/local">
+ <ws:file path="chkpii_ignore_list.txt" template="templates/project/builder/tests/configs/local/chkpii_ignore_list.txt.jet"/>
+ <ws:file path="customTest.xml" template="templates/project/builder/tests/configs/local/customTest.xml.jet"/>
+ <ws:file path="relengbuildgtk.sh" template="templates/project/builder/tests/configs/local/relengbuildgtk.sh.jet"/>
+ <ws:file path="testing.properties" template="templates/project/builder/tests/configs/local/testing.properties.jet"/>
+ </ws:folder>
+ <ws:folder path="scripts">
+ <ws:file path="readme.html" template="templates/project/builder/tests/scripts/readme.html.jet"/>
+ <ws:file path="test.xml" template="templates/project/builder/tests/scripts/test.xml.jet"/>
+ </ws:folder>
+ <ws:file path="build.properties" template="templates/project/builder/tests/build.properties.jet"/>
+ <ws:file path="customTargets.xml" template="templates/project/builder/tests/customTargets.xml.jet"/>
+ </ws:folder>
+ </ws:folder>
+ <ws:folder path="maps">
+ <ws:file path="{$build/@shortName}.map" template="templates/project/maps/_SHORTNAME_.map.jet"/>
+ <ws:file path="build.cfg" template="templates/project/maps/build.cfg.jet"/>
+ </ws:folder>
+ <ws:folder path="templateFiles">
+ <ws:file path="{$build/@shortName}.map.template" template="templates/project/templateFiles/_SHORTNAME_.map.template.jet"/>
+ <ws:file path="testManifest.xml.template" template="templates/project/templateFiles/testManifest.xml.template.jet"/>
+ </ws:folder>
+
+</ws:project>
+
+<c:iterate select="$build/extraZIP" var="extraZIP">
+ <ws:folder path="{$build/@relengProjectName}/builder/{$extraZIP/@name}">
+ <ws:file path="build.properties" template="templates/extraZIP/build.properties.jet"/>
+ <ws:file path="customTargets.xml" template="templates/extraZIP/customTargets.xml.jet"/>
+ </ws:folder>
+</c:iterate>
+<%-- For debug purposes, dump the annotated input model in
+ the root of the project containing the original input model.
+
+ Note that model formatting may not be identical, and that in
+ the case of non-XML input models, the dump may look quite different.
+--%>
+
+<ws:file template="templates/dump.jet" path="{$org.eclipse.jet.resource.project.name}/dump.xml"/>
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/builder/sdk/build.properties.jet b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/builder/sdk/build.properties.jet
new file mode 100644
index 0000000..05dbb0e
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/builder/sdk/build.properties.jet
@@ -0,0 +1,35 @@
+<%!
+/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
+%>
+<c:choose>
+<c:when test="$build/@jre = 'J2SE-1.5'">
+javacSource=5.0
+javacTarget=5.0
+</c:when>
+<c:when test="$build/@jre = 'J2SE-1.4'">
+javacSource=1.4
+javacTarget=1.4
+</c:when>
+</c:choose>
+
+buildDirectory=${builder}/../eclipse
+buildType=I
+buildId=${buildId}
+buildLabel=${buildLabel}
+timestamp=0000
+collPlace=.
+collBase=.
+baseLocation=
+configs=*,*,*
+baseos=linux
+basews=gtk
+basearch=x86
+bootclasspath=${java.home}/lib/*.jar
+javacFailOnError=true
+javacVerbose=true
+javacDebugInfo=on
+zipargs=
+archivesFormat = *,*,*-antZip
+collectingFolder=eclipse
+archivePrefix=eclipse
+generateFeatureVersionSuffix=true
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/builder/sdk/customTargets.xml.jet b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/builder/sdk/customTargets.xml.jet
new file mode 100644
index 0000000..93f07d7
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/builder/sdk/customTargets.xml.jet
@@ -0,0 +1,215 @@
+<%!
+/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
+%>
+<project name="Build specific targets and properties" default="noDefault" basedir=".">
+
+ <property name="archiveName" value="<c:get select="$build/@parentProjectName"/>-${subprojectName}-SDK-<c:get select="$build/@incubationTag"/>${buildAlias}.zip" />
+ <!-- ===================================================================== -->
+ <!-- Run a given ${target} on all elements being built -->
+ <!-- ===================================================================== -->
+ <target name="allElements">
+ <ant antfile="${genericTargets}" target="${target}">
+ <property name="type" value="feature" />
+ <property name="id" value="org.eclipse.<c:get select="$build/@projectNamespace"/>.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.<c:get select="$build/@projectNamespace"/>.sdk">
+ <ant antfile="${assembleScriptName}" />
+ <!-- ADD POST STEPS -->
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Check out map files from correct repository -->
+ <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
+ <!-- ===================================================================== -->
+ <target name="checkLocal">
+ <available property="mapsLocal" file="${buildDirectory}/maps" />
+ </target>
+
+ <target name="getMapFiles" depends="checkLocal" unless="mapsLocal">
+
+ <!-- *** change the repo info -->
+ <property name="mapCvsRoot" value=":${cvsReadProtocol}:${cvsReadUser}@${cvsHost}:${cvsRep}" />
+
+ <property name="mapVersionTag" value="HEAD" />
+ <property name="packagePath" value="org.eclipse.${projectName}/org.eclipse.${subprojectName2}.releng/maps"/>
+
+ <cvs cvsRsh="ssh" cvsRoot="${mapCvsRoot}" tag="${mapVersionTag}"
+ package="${packagePath}" dest="${buildDirectory}/maps" />
+ <copy todir="${buildDirectory}/maps/CVS" overwrite="true">
+ <fileset dir="${buildDirectory}/maps/${packagePath}/CVS" />
+ </copy>
+ <copy todir="${buildDirectory}/maps" overwrite="true">
+ <fileset dir="${buildDirectory}/maps/${packagePath}" />
+ </copy>
+ <delete dir="${buildDirectory}/maps/org.eclipse.${projectName}" />
+
+ <!--tag the map files project-->
+ <antcall target="tagMapFiles" />
+ </target>
+
+ <target name="tagMapFiles" if="tagMaps">
+ <cvs cvsRsh="ssh" dest="${buildDirectory}/maps" command="tag v${timestamp}" />
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before setup -->
+ <!-- ===================================================================== -->
+ <target name="preSetup">
+ <mkdir dir="${buildDirectory}/${buildLabel}"/>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after setup but before starting the build proper -->
+ <!-- ===================================================================== -->
+ <target name="postSetup">
+ <!-- TODO: if your project requires more dependencies, add them here -->
+ <!-- TODO: if your project requires more dependencies, add them here; if it does not require all of these, remove those not required -->
+ <echo message="Download, then unpack: Eclipse, EMF, UML2, OCL, Query, Transaction, Validation, GEF, GMF ..." />
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${eclipseURL}" />
+ <property name="file" value="${eclipseFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.platform.doc.isv/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${emfURL}" />
+ <property name="file" value="${emfFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.emf.ecore/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${uml2URL}" />
+ <property name="file" value="${uml2File}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.uml2/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${oclURL}" />
+ <property name="file" value="${oclFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.emf.ocl/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${queryURL}" />
+ <property name="file" value="${queryFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.emf.query/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${transactionURL}" />
+ <property name="file" value="${transactionFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.emf.transaction/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${validationURL}" />
+ <property name="file" value="${validationFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.emf.validation/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${gefURL}" />
+ <property name="file" value="${gefFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.gef/plugin.xml" />
+ </ant>
+ <ant target="getDependency" antfile="${buildDirectory}/../org.eclipse.modeling.common.releng/scripts/getDependencies.xml">
+ <property name="url" value="${gmfURL}" />
+ <property name="file" value="${gmfFile}" />
+ <property name="isUnpackedFile" value="${buildDirectory}/plugins/org.eclipse.gmf/META-INF/MANIFEST.MF" />
+ </ant>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before fetching the build elements -->
+ <!-- ===================================================================== -->
+ <target name="preFetch">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after the fetch -->
+ <!-- ===================================================================== -->
+ <target name="postFetch">
+ <replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@buildid@">
+ <include name="**/about.mappings" />
+ </replace>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before generating build scripts -->
+ <!-- ===================================================================== -->
+ <target name="preGenerate">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after generating the build scripts -->
+ <!-- ===================================================================== -->
+ <target name="postGenerate">
+ <antcall target="clean" />
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before assembling -->
+ <!-- ===================================================================== -->
+ <target name="preAssemble">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after assembling-->
+ <!-- ===================================================================== -->
+ <target name="postAssemble">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do before running the build.xmls for the elements being built. -->
+ <!-- ===================================================================== -->
+ <target name="preProcess">
+ <replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@build@">
+ <include name="**/about.mappings" />
+ </replace>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after running the build.xmls for the elements being built. -->
+ <!-- ===================================================================== -->
+ <target name="postProcess">
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Steps to do after everything is built and assembled -->
+ <!-- (e.g., testing, posting, emailing, ...) -->
+ <!-- ===================================================================== -->
+ <target name="postBuild">
+ <antcall target="gatherLogs" />
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Helper targets -->
+ <!-- ===================================================================== -->
+ <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/org.eclipse.<c:get select="$build/@projectNamespace"/>.sdk">
+ <include name="*.log.zip" />
+ </fileset>
+ </unzip>
+ </target>
+ <target name="clean" unless="noclean">
+ <antcall target="allElements">
+ <param name="target" value="cleanElement" />
+ </antcall>
+ </target>
+
+ <!-- ===================================================================== -->
+ <!-- Default target -->
+ <!-- ===================================================================== -->
+ <target name="noDefault">
+ <echo message="You must specify a target when invoking this file" />
+ </target>
+
+</project>
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/maps/_SHORTNAME_.map.jet b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/maps/_SHORTNAME_.map.jet
new file mode 100644
index 0000000..cdd7232
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/maps/_SHORTNAME_.map.jet
@@ -0,0 +1,12 @@
+<%!
+/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
+%>
+!*************** PROJECT CONTRIBUTION ********************************************************
+
+!*** Special entries from eclipse
+
+plugin@org.eclipse.test=v20070226,:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse,
+fragment@org.eclipse.ant.optional.junit=v20050226,:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse,
+
+!*** Project's plugins, features and fragments
+
diff --git a/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/maps/build.cfg.jet b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/maps/build.cfg.jet
new file mode 100644
index 0000000..71b6fb9
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/project/maps/build.cfg.jet
@@ -0,0 +1,4 @@
+<%!
+/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
+%>
+# this file's contents are generated \ No newline at end of file

Back to the top