blob: 7ad0c3edf319c23433ba1deeb79a3f80aa996221 [file] [log] [blame]
Stephan Herrmanndcd87c12010-04-25 10:59:27 +00001<!--
2 Copyright (c) 2010 Stephan Herrmann and others.
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Eclipse Public License v1.0
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/epl-v10.html
7
8 Contributors:
9 Stephan Herrmann - initial API and implementation
10-->
11<project name="Build specific targets and properties" default="noDefault" >
12
13
14 <condition property="isNightlyBuild">
15 <equals arg1="${buildType}" arg2="N"/>
16 </condition>
17 <property file="${buildDirectory}/version.properties"/>
18 <property name="buildLabel" value="${buildType}-${featureVersion}"/>
19 <property name="buildId" value="${featureVersion}"/>
20
21
22 <!-- ===================================================================== -->
23 <!-- Run a given ${target} on all elements being built -->
24 <!-- Add on <ant> task for each top level element being built. -->
25 <!-- ===================================================================== -->
26 <target name="allElements">
27
28 <ant antfile="${genericTargets}" target="${target}" >
29 <property name="type" value="feature" />
Stephan Herrmannb59f3f02011-05-15 00:17:51 +000030 <property name="id" value="org.eclipse.objectteams.otdt.core.patch" />
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000031 </ant>
32 </target>
33
34 <!-- ===================================================================== -->
35 <!-- Targets to assemble the built elements for particular configurations -->
36 <!-- These generally call the generated assemble scripts (named in -->
37 <!-- ${assembleScriptName}) but may also add pre and post processing -->
38 <!-- Add one target for each root element and each configuration -->
39 <!-- ===================================================================== -->
Stephan Herrmannb59f3f02011-05-15 00:17:51 +000040 <target name="assemble.org.eclipse.objectteams.otdt.core.patch.group.group.group">
41 <echo message="Skipping zip assembly"/>
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000042 </target>
43
Stephan Herrmannb59f3f02011-05-15 00:17:51 +000044 <property name="assemble.org.eclipse.objectteams.otdt.core.patch.p2" value="true" />
45 <target name="assemble.org.eclipse.objectteams.otdt.core.patch.p2">
46 <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
47 <property name="p2.build.repo" value="file://${otdtUpdatesDir}"/>
48 </ant>
49 </target>
50
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000051 <!-- ===================================================================== -->
52 <!-- Check out map files from correct repository -->
53 <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
54 <!-- ===================================================================== -->
55 <target name="getMapFiles">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000056 <mkdir dir="${buildDirectory}/maps"/>
57 <property name="svn.map.url" value="${svn.repository.url}/${mapVersionTag}/${pathToMapFile}/${mapFileName}" />
58
59 <svn command="export" url="${svn.map.url}" dest="${buildDirectory}/maps/${mapFileName}" />
60 </target>
61
62 <!-- ===================================================================== -->
63 <!-- Steps to do before setup -->
64 <!-- ===================================================================== -->
65 <target name="preSetup">
66 </target>
67
68 <!-- ===================================================================== -->
69 <!-- Steps to do after setup but before starting the build proper -->
70 <!-- ===================================================================== -->
71 <target name="postSetup">
72 </target>
73
74 <!-- ===================================================================== -->
75 <!-- Steps to do before fetching the build elements -->
76 <!-- ===================================================================== -->
77 <target name="preFetch">
78 </target>
79
80 <!-- ===================================================================== -->
81 <!-- Steps to do after fetching the build elements -->
82 <!-- ===================================================================== -->
83 <target name="postFetch">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000084 </target>
85
86 <!-- ===================================================================== -->
87 <!-- Steps to do before generating the build scripts. -->
88 <!-- ===================================================================== -->
89 <target name="preGenerate">
90 </target>
91
92 <!-- ===================================================================== -->
93 <!-- Steps to do after generating the build scripts. -->
94 <!-- ===================================================================== -->
95 <target name="postGenerate">
96 </target>
97
98
99 <!-- ===================================================================== -->
100 <!-- Steps to do before running the build.xmls for the elements being built. -->
101 <!-- ===================================================================== -->
102 <target name="preProcess">
103 </target>
104
105 <!-- ===================================================================== -->
106 <!-- Steps to do after running the build.xmls for the elements being built. -->
107 <!-- ===================================================================== -->
108 <target name="postProcess">
109 </target>
110
111
112 <!-- ===================================================================== -->
113 <!-- Steps to do before running assemble. -->
114 <!-- ===================================================================== -->
115 <target name="preAssemble">
116 </target>
117
118 <!-- ===================================================================== -->
119 <!-- Steps to do after running assemble. -->
120 <!-- ===================================================================== -->
121 <target name="postAssemble">
122 </target>
123
124 <!-- ===================================================================== -->
125 <!-- Steps to do after the build is done. -->
126 <!-- ===================================================================== -->
127 <target name="postBuild">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +0000128 </target>
129
130 <!-- ===================================================================== -->
131 <!-- Steps to do to publish the build results -->
132 <!-- ===================================================================== -->
133 <target name="publish">
134 </target>
135
136
137 <!-- ===================================================================== -->
138 <!-- Default target -->
139 <!-- ===================================================================== -->
140 <target name="noDefault">
141 <echo message="You must specify a target when invoking this file" />
142 </target>
143
144</project>