Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/main.jet')
-rw-r--r--examples/org.eclipse.jet.ec2008.pushbuttonbuild/templates/main.jet85
1 files changed, 85 insertions, 0 deletions
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"/>

Back to the top