Skip to main content
summaryrefslogtreecommitdiffstats
blob: 2dd7451ac32181d3200a8bba2f50f5ac30419496 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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