blob: 4777fab656c82cbb7f65b77b835e6e7ed4948556 [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" />
30 <property name="id" value="org.eclipse.objectteams.otdt" />
31 </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 <!-- ===================================================================== -->
40 <target name="assemble.org.eclipse.objectteams.otdt">
41 <ant antfile="${assembleScriptName}" dir="${buildDirectory}">
42 <property name="zipargs" value="" />
43 </ant>
44 </target>
45
46 <!-- ===================================================================== -->
47 <!-- Check out map files from correct repository -->
48 <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
49 <!-- ===================================================================== -->
50 <target name="getMapFiles">
Stephan Herrmanndcd87c12010-04-25 10:59:27 +000051 <mkdir dir="${buildDirectory}/maps"/>
52 <property name="svn.map.url" value="${svn.repository.url}/${mapVersionTag}/${pathToMapFile}/${mapFileName}" />
53
54 <svn command="export" url="${svn.map.url}" dest="${buildDirectory}/maps/${mapFileName}" />
55 </target>
56
57 <!-- ===================================================================== -->
58 <!-- Steps to do before setup -->
59 <!-- ===================================================================== -->
60 <target name="preSetup">
61 </target>
62
63 <!-- ===================================================================== -->
64 <!-- Steps to do after setup but before starting the build proper -->
65 <!-- ===================================================================== -->
66 <target name="postSetup">
67 </target>
68
69 <!-- ===================================================================== -->
70 <!-- Steps to do before fetching the build elements -->
71 <!-- ===================================================================== -->
72 <target name="preFetch">
73 </target>
74
75 <!-- ===================================================================== -->
76 <!-- Steps to do after fetching the build elements -->
77 <!-- ===================================================================== -->
78 <target name="postFetch">
79 <property name="meta.dir" value="${buildDirectory}/plugins/org.eclipse.jdt.core/META-INF"/>
80 <echo message="### Use Bootstrap_MANIFEST.MF in ${meta.dir} ###" />
81 <move file="${meta.dir}/Bootstrap_MANIFEST.MF" tofile="${meta.dir}/MANIFEST.MF" overwrite="yes" />
82 </target>
83
84 <!-- ===================================================================== -->
85 <!-- Steps to do before generating the build scripts. -->
86 <!-- ===================================================================== -->
87 <target name="preGenerate">
88 </target>
89
90 <!-- ===================================================================== -->
91 <!-- Steps to do after generating the build scripts. -->
92 <!-- ===================================================================== -->
93 <target name="postGenerate">
94 </target>
95
96
97 <!-- ===================================================================== -->
98 <!-- Steps to do before running the build.xmls for the elements being built. -->
99 <!-- ===================================================================== -->
100 <target name="preProcess">
101 </target>
102
103 <!-- ===================================================================== -->
104 <!-- Steps to do after running the build.xmls for the elements being built. -->
105 <!-- ===================================================================== -->
106 <target name="postProcess">
107 </target>
108
109
110 <!-- ===================================================================== -->
111 <!-- Steps to do before running assemble. -->
112 <!-- ===================================================================== -->
113 <target name="preAssemble">
114 </target>
115
116 <!-- ===================================================================== -->
117 <!-- Steps to do after running assemble. -->
118 <!-- ===================================================================== -->
119 <target name="postAssemble">
120 </target>
121
122 <!-- ===================================================================== -->
123 <!-- Steps to do after the build is done. -->
124 <!-- ===================================================================== -->
125 <target name="postBuild">
126 <copy file="${buildDirectory}/${buildLabel}/org.eclipse.objectteams.otdt-${buildId}.zip" tofile="${build.root.dir}/org.eclipse.objectteams.otdt-${buildId}.zip" />
127
128 <echo message="### Insert OT Compiler in ${baseLocation} ###"/>
129 <unzip src="${build.root.dir}/org.eclipse.objectteams.otdt-${buildId}.zip" dest="${baseLocation}"/>
130 </target>
131
132 <!-- ===================================================================== -->
133 <!-- Steps to do to publish the build results -->
134 <!-- ===================================================================== -->
135 <target name="publish">
136 </target>
137
138
139 <!-- ===================================================================== -->
140 <!-- Default target -->
141 <!-- ===================================================================== -->
142 <target name="noDefault">
143 <echo message="You must specify a target when invoking this file" />
144 </target>
145
146</project>