mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 1 | <?xml version="1.0"?> |
mwenz | 18308ab | 2010-08-02 08:39:48 +0000 | [diff] [blame] | 2 | <project name="Graphiti"> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 3 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 4 | <condition property="properties.file" value="build.properties" else="local.properties"> |
| 5 | <isset property="server.build" /> |
| 6 | </condition> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 7 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 8 | <condition property="mspec.file" value="build.mspec" else="local.mspec"> |
| 9 | <isset property="server.build" /> |
| 10 | </condition> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 11 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 12 | <property file="${properties.file}" /> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 13 | <property environment="env" /> |
| 14 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 15 | <condition property="build.root" value="${env.WORKSPACE}" else="${basedir}/../build"> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 16 | <isset property="env.WORKSPACE" /> |
| 17 | </condition> |
| 18 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 19 | <condition property="buckminster.loglevel" value="${env.BUCKMINSTER_LOGLEVEL}" else="INFO"> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 20 | <isset property="env.BUCKMINSTER_LOGLEVEL" /> |
| 21 | </condition> |
| 22 | |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 23 | <condition property="clean.tools" value="true"> |
| 24 | <equals arg1="${env.CLEAN_TOOLS}" arg2="true" /> |
| 25 | </condition> |
| 26 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 27 | <condition property="clean.tp" value="true"> |
| 28 | <equals arg1="${env.CLEAN_TP}" arg2="true" /> |
| 29 | </condition> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 30 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 31 | <condition property="clean.workspace" value="true"> |
| 32 | <equals arg1="${env.CLEAN_WORKSPACE}" arg2="true" /> |
| 33 | </condition> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 34 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 35 | <condition property="clean.output" value="true"> |
| 36 | <equals arg1="${env.CLEAN_OUTPUT}" arg2="true" /> |
| 37 | </condition> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 38 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 39 | <condition property="build.type" value="${env.BUILD_TYPE}" else="N"> |
| 40 | <isset property="env.BUILD_TYPE" /> |
| 41 | </condition> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 42 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 43 | <condition property="build.nightly" value="true"> |
| 44 | <equals arg1="${build.type}" arg2="N" /> |
| 45 | </condition> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 46 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 47 | <condition property="site.pack200" value="${env.SITE_PACK200}" else="true"> |
| 48 | <isset property="env.SITE_PACK200" /> |
| 49 | </condition> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 50 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 51 | <condition property="site.signing" value="false" else="true"> |
| 52 | <isset property="build.nightly" /> |
| 53 | </condition> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 54 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 55 | <!-- Default properties intended to be overridden by entries in the above property file --> |
| 56 | <property name="tools" location="${build.root}/tools" /> |
| 57 | <property name="result" location="${build.root}/result" /> |
| 58 | <property name="workspace" location="${result}/workspace" /> |
| 59 | <property name="targetPlatformPath" location="${result}/tp" /> |
| 60 | <property name="buckminster.output.root" location="${result}/output" /> |
| 61 | <property name="buckminster.temp.root" location="${result}/temp" /> |
| 62 | <property name="site.p2.dir" location="${workspace}/_temp/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2" /> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 63 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 64 | <!-- This macro executes the default application of an eclipse installation |
| 65 | that resides in the folder ${buildtools}/@app --> |
| 66 | <macrodef name="eclipse.launch"> |
| 67 | <attribute name="app" /> |
| 68 | <element name="args" optional="true" /> |
| 69 | <sequential> |
| 70 | <!-- We assume that the eclipse installation is beneath ${buildtools} --> |
| 71 | <property name="@{app}.deploy.dir" value="${tools}/@{app}" /> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 72 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 73 | <!-- Find the Eclipse launcher and assing its location to the @{app}.launcher property --> |
| 74 | <pathconvert property="@{app}.launcher"> |
| 75 | <first count="1"> |
| 76 | <sort> |
| 77 | <fileset dir="${@{app}.deploy.dir}/plugins" includes="**/org.eclipse.equinox.launcher_*.jar" /> |
| 78 | <reverse xmlns="antlib:org.apache.tools.ant.types.resources.comparators"> |
| 79 | <date /> |
| 80 | </reverse> |
| 81 | </sort> |
| 82 | </first> |
| 83 | </pathconvert> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 84 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 85 | <!-- Launch the eclipse application --> |
| 86 | <java fork="true" jar="${@{app}.launcher}" dir="${@{app}.deploy.dir}" failonerror="true"> |
| 87 | <!-- Uncomment to debug <jvmarg value="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y"/> --> |
| 88 | <args /> |
| 89 | </java> |
| 90 | </sequential> |
| 91 | </macrodef> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 92 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 93 | <macrodef name="buckminster"> |
| 94 | <attribute name="command" /> |
| 95 | <attribute name="workspace" default="${workspace}" /> |
| 96 | <element name="globargs" optional="true" /> |
| 97 | <element name="cmdargs" optional="true" /> |
| 98 | <sequential> |
| 99 | <eclipse.launch app="buckminster"> |
| 100 | <args> |
| 101 | <jvmarg value="-Dbugfix.288796=true" /> |
mwenz | 8e794cf | 2010-09-14 08:20:07 +0000 | [diff] [blame] | 102 | <jvmarg value="-Xmx2048m" /> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 103 | <arg value="-data" /> |
| 104 | <arg value="@{workspace}" /> |
| 105 | <arg value="--loglevel" /> |
| 106 | <arg value="${buckminster.loglevel}" /> |
| 107 | <arg value="--displaystacktrace" /> |
| 108 | <globargs /> |
| 109 | <arg value="@{command}" /> |
| 110 | <arg value="-P" /> |
| 111 | <arg value="${properties.tmp}" /> |
| 112 | <cmdargs /> |
| 113 | </args> |
| 114 | </eclipse.launch> |
| 115 | </sequential> |
| 116 | </macrodef> |
tkaiser | f7c1ff1 | 2010-08-26 08:55:38 +0000 | [diff] [blame] | 117 | |
| 118 | <macrodef name="buckminsterDirect"> |
| 119 | <attribute name="workspace" default="${workspace}" /> |
| 120 | <element name="globargs" optional="true" /> |
| 121 | <element name="cmdargs" optional="true" /> |
| 122 | <sequential> |
| 123 | <eclipse.launch app="buckminster"> |
| 124 | <args> |
| 125 | <jvmarg value="-Dbugfix.288796=true" /> |
| 126 | <jvmarg value="-Xmx4096m" /> |
| 127 | <arg value="-data" /> |
| 128 | <arg value="@{workspace}" /> |
| 129 | <arg value="--loglevel" /> |
| 130 | <arg value="${buckminster.loglevel}" /> |
| 131 | <arg value="--displaystacktrace" /> |
| 132 | <globargs /> |
| 133 | <arg value="-P" /> |
| 134 | <arg value="${properties.tmp}" /> |
| 135 | <cmdargs /> |
| 136 | </args> |
| 137 | </eclipse.launch> |
| 138 | </sequential> |
| 139 | </macrodef> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 140 | |
| 141 | <target name="init.clean.tools" if="clean.tools"> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 142 | <antcall target="clean.tools" /> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 143 | </target> |
| 144 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 145 | <target name="init.clean.tp" if="clean.tp"> |
| 146 | <antcall target="clean.tp" /> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 147 | </target> |
| 148 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 149 | <target name="init.clean.workspace" if="clean.workspace"> |
| 150 | <antcall target="clean.workspace" /> |
| 151 | </target> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 152 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 153 | <target name="init.clean.output" if="clean.output"> |
| 154 | <antcall target="clean.output" /> |
| 155 | </target> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 156 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 157 | <target name="init.checks" depends="init.clean.tools,init.clean.tp,init.clean.workspace,init.clean.output"> |
| 158 | <echo message="Sourcing ${properties.file}" /> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 159 | <available file="${tools}/director/director" property="director.exists" /> |
| 160 | <available file="${tools}/buckminster/buckminster" property="buckminster.exists" /> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 161 | </target> |
| 162 | |
| 163 | <target name="get.director" unless="director.exists"> |
| 164 | <echo message="Fetching headless director application" /> |
mwenz | 66a9074 | 2010-08-02 08:48:03 +0000 | [diff] [blame] | 165 | <tempfile destdir="${java.io.tmpdir}" |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 166 | prefix="director-" |
| 167 | suffix=".zip" |
| 168 | property="director.zip" |
| 169 | deleteonexit="true" /> |
| 170 | <get src="${eclipse.downloads}/${director.path}" dest="${director.zip}" /> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 171 | <mkdir dir="${tools}" /> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 172 | <unzip src="${director.zip}" dest="${tools}" /> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 173 | <delete file="${director.zip}" /> |
| 174 | </target> |
| 175 | |
| 176 | <target name="install.buckminster" unless="buckminster.exists" depends="get.director"> |
| 177 | <echo message="Configuring headless buckminster with needed features" /> |
| 178 | <eclipse.launch app="director"> |
| 179 | <args> |
| 180 | <jvmarg value="-Declipse.p2.mirrors=false" /> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 181 | <!-- |
| 182 | Hudson Ant property: org.eclipse.update.jarprocessor.pack200=/shared/common/ibm-java2-ppc-50/jre/bin |
| 183 | <jvmarg value="-Dorg.eclipse.update.jarprocessor.pack200=${org.eclipse.update.jarprocessor.pack200}" /> |
| 184 | --> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 185 | <arg value="-r" /> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 186 | <arg value="${eclipse.downloads}/${bm.headless.path}" /> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 187 | <arg value="-d" /> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 188 | <arg value="${tools}/buckminster" /> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 189 | <arg value="-p" /> |
| 190 | <arg value="Buckminster" /> |
| 191 | <arg value="-i" /> |
| 192 | <arg value="org.eclipse.buckminster.cmdline.product" /> |
| 193 | <arg value="-i" /> |
| 194 | <arg value="org.eclipse.buckminster.core.headless.feature.feature.group" /> |
| 195 | <arg value="-i" /> |
| 196 | <arg value="org.eclipse.buckminster.pde.headless.feature.feature.group" /> |
| 197 | <arg value="-i" /> |
| 198 | <arg value="org.eclipse.buckminster.cvs.headless.feature.feature.group" /> |
| 199 | <arg value="-i" /> |
| 200 | <arg value="org.eclipse.buckminster.emma.headless.feature.feature.group" /> |
| 201 | </args> |
| 202 | </eclipse.launch> |
| 203 | </target> |
| 204 | |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 205 | <target name="init.workspace" unless="workspace.exists"> |
| 206 | <mkdir dir="${workspace}" /> |
| 207 | </target> |
| 208 | |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 209 | <target name="init.build.properties"> |
mwenz | ef9501c | 2010-09-21 07:00:37 +0000 | [diff] [blame] | 210 | <echo message="List of all set properties" /> |
| 211 | <echoproperties> |
| 212 | </echoproperties> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 213 | <!-- Echo relevant properties to a temporary file so that Buckminster can read them --> |
mwenz | 66a9074 | 2010-08-02 08:48:03 +0000 | [diff] [blame] | 214 | <tempfile destdir="${java.io.tmpdir}" |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 215 | prefix="build-" |
| 216 | suffix=".properties" |
| 217 | deleteonexit="true" |
| 218 | property="properties.tmp" /> |
| 219 | <echo message="Properties file is: ${properties.tmp}" /> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 220 | <echoproperties destfile="${properties.tmp}"> |
| 221 | <!-- We don't want these. basedir in particular will cause problems if passed explicitly --> |
| 222 | <propertyset negate="true"> |
| 223 | <propertyref name="basedir" /> |
| 224 | <propertyref name="eclipse.home" /> |
| 225 | <propertyref name="properties.tmp" /> |
| 226 | <propertyref name="line.separator" /> |
| 227 | <propertyref name="path.separator" /> |
| 228 | <propertyref prefix="ant." /> |
| 229 | <propertyref prefix="file." /> |
mwenz | d383bd2 | 2010-09-21 08:14:38 +0000 | [diff] [blame^] | 230 | <propertyref prefix="http."/> |
| 231 | <propertyref prefix="https."/> |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 232 | <propertyref prefix="java." /> |
| 233 | <propertyref prefix="sun." /> |
| 234 | <propertyref prefix="user." /> |
| 235 | </propertyset> |
| 236 | </echoproperties> |
| 237 | </target> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 238 | |
mwenz | 8e5b57b | 2010-08-26 12:38:35 +0000 | [diff] [blame] | 239 | <target name="import"> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 240 | <echo message="Importing projects into workspace ${workspace} and binaries into target platform ${targetPlatformPath}" /> |
| 241 | <buckminster command="setpref"> |
| 242 | <cmdargs> |
| 243 | <arg value="targetPlatformPath=${targetPlatformPath}" /> |
| 244 | </cmdargs> |
| 245 | </buckminster> |
| 246 | |
| 247 | <buckminster command="import"> |
| 248 | <cmdargs> |
| 249 | <arg value="-P" /> |
| 250 | <arg value="${basedir}/${properties.file}" /> |
mwenz | 9554c63 | 2010-08-25 14:14:11 +0000 | [diff] [blame] | 251 | <arg value="-B" /> |
| 252 | <arg value="${result}/Graphiti.bom" /> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 253 | <arg value="${basedir}/${mspec.file}" /> |
| 254 | </cmdargs> |
| 255 | </buckminster> |
| 256 | </target> |
| 257 | |
mwenz | 8e5b57b | 2010-08-26 12:38:35 +0000 | [diff] [blame] | 258 | <target name="provision" depends="init.checks,init.workspace,install.buckminster,init.build.properties,import"> |
| 259 | <echo message="Do the provisioning" /> |
| 260 | </target> |
| 261 | |
mwenz | 1e2cce9 | 2010-09-09 13:33:54 +0000 | [diff] [blame] | 262 | <target name="site.p2" depends="provision, create.javadoc"> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 263 | <echo message="Building all projects in workspace ${workspace}" /> |
| 264 | <buckminster command="build"> |
| 265 | <cmdargs> |
| 266 | <arg value="--thorough" /> |
| 267 | </cmdargs> |
| 268 | </buckminster> |
| 269 | |
| 270 | <echo message="Performing org.eclipse.graphiti.site#site.p2" /> |
| 271 | <buckminster command="perform"> |
| 272 | <cmdargs> |
| 273 | <arg value="org.eclipse.graphiti.site#site.p2" /> |
| 274 | </cmdargs> |
| 275 | </buckminster> |
| 276 | |
| 277 | <echo message="Creating human readable index.html" /> |
| 278 | <unzip src="${site.p2.dir}/content.jar" dest="${site.p2.dir}" /> |
| 279 | <xslt style="xsl/content2html.xsl" in="${site.p2.dir}/content.xml" out="${site.p2.dir}/index.html" /> |
| 280 | <xslt style="xsl/content2xml.xsl" in="${site.p2.dir}/content.xml" out="${site.p2.dir}/index.xml" /> |
| 281 | <delete file="${site.p2.dir}/content.xml" /> |
mwenz | e118d1c | 2010-08-26 06:55:05 +0000 | [diff] [blame] | 282 | |
| 283 | <echo message="Performing org.eclipse.graphiti.site#site.p2.zip" /> |
| 284 | <buckminster command="perform"> |
| 285 | <cmdargs> |
| 286 | <arg value="org.eclipse.graphiti.site#site.p2.zip" /> |
| 287 | </cmdargs> |
| 288 | </buckminster> |
jpasch | b526a47 | 2010-09-08 08:47:55 +0000 | [diff] [blame] | 289 | </target> |
| 290 | |
mwenz | a7f72f3 | 2010-09-09 13:21:58 +0000 | [diff] [blame] | 291 | <target name="create.javadoc" description="Generate the JavaDoc for the sources"> |
jpasch | b526a47 | 2010-09-08 08:47:55 +0000 | [diff] [blame] | 292 | <echo message="Generate the JavaDoc for the sources"></echo> |
| 293 | <echo message="javadoc source ${workspace}" /> |
| 294 | |
| 295 | <!-- set targetPlatformPath as classpath --> |
| 296 | <path id="files-classpath"> |
| 297 | <fileset dir="${targetPlatformPath}"> |
| 298 | <include name="*.jar"/> |
| 299 | </fileset> |
| 300 | </path> |
| 301 | |
| 302 | <!-- clean and create output location --> |
| 303 | <delete dir="${workspace}/plugins/org.eclipse.graphiti.doc/javadoc"/> |
| 304 | <mkdir dir="${workspace}/plugins/org.eclipse.graphiti.doc/javadoc"/> |
| 305 | |
| 306 | <!-- generate the javadoc --> |
| 307 | <javadoc destdir="${workspace}/plugins/org.eclipse.graphiti.doc/javadoc" |
| 308 | classpathref="files-classpath" |
| 309 | author="true" |
| 310 | version="true" |
| 311 | nodeprecated="false" |
| 312 | nodeprecatedlist="false" |
jpasch | b142af6 | 2010-09-09 15:31:03 +0000 | [diff] [blame] | 313 | access="private" |
jpasch | b526a47 | 2010-09-08 08:47:55 +0000 | [diff] [blame] | 314 | maxmemory="4096m" |
| 315 | useexternalfile="true" |
| 316 | sourcepath="src" |
| 317 | verbose="true" |
| 318 | use="true" |
| 319 | noindex="false" |
| 320 | nonavbar="false" |
| 321 | notree="false" |
| 322 | splitindex="true" |
| 323 | windowtitle="Graphiti Documentation"> |
| 324 | |
| 325 | <!-- Graphiti sources --> |
| 326 | <fileset dir="${workspace}/plugins/" defaultexcludes="true"> |
| 327 | <include name="**/*.java"/> |
| 328 | <exclude name="**/internal/**"/> |
| 329 | <exclude name="**/tests/**"/> |
| 330 | <exclude name="**/examples/**"/> |
| 331 | <exclude name="**/testtool/**"/> |
| 332 | </fileset> |
| 333 | <bottom><![CDATA[ <a href="http://www.eclipse.org/legal/epl-v10.html" shape="rect">Copyright (c) SAP AG 2005, 2010.</a>]]></bottom> |
| 334 | </javadoc> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 335 | </target> |
| 336 | |
mwenz | b20719a | 2010-09-09 13:37:01 +0000 | [diff] [blame] | 337 | <target name="test" depends="site.p2"> |
mwenz | d32f13b | 2010-08-12 09:00:02 +0000 | [diff] [blame] | 338 | <echo message="Running JUnit tests for Graphiti" /> |
tkaiser | f7c1ff1 | 2010-08-26 08:55:38 +0000 | [diff] [blame] | 339 | <buckminsterDirect> |
mwenz | d32f13b | 2010-08-12 09:00:02 +0000 | [diff] [blame] | 340 | <cmdargs> |
tkaiser | 63b2cb5 | 2010-08-26 07:42:28 +0000 | [diff] [blame] | 341 | <arg value="--script" /> |
tkaiser | 8c53a6f | 2010-08-26 09:16:09 +0000 | [diff] [blame] | 342 | <arg value="${basedir}/emma.script" /> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 343 | </cmdargs> |
tkaiser | f7c1ff1 | 2010-08-26 08:55:38 +0000 | [diff] [blame] | 344 | </buckminsterDirect> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 345 | </target> |
| 346 | |
mwenz | f003468 | 2010-08-26 13:33:54 +0000 | [diff] [blame] | 347 | <target name="promote.sites" depends="init.build.properties"> |
mwenz | 8e5b57b | 2010-08-26 12:38:35 +0000 | [diff] [blame] | 348 | <echo message="Deleting old update site from downloads area" /> |
| 349 | <delete dir="${graphiti.download.area}/updates/nightly/" failonerror="true" /> |
| 350 | |
| 351 | <echo message="Promoting site.p2" /> |
| 352 | <copydir dest="${graphiti.download.area}/updates/nightly/" src="${result}/site.p2" /> |
| 353 | |
| 354 | <echo message="Deleting old ZIP archive from downloads area" /> |
| 355 | <delete dir="${graphiti.download.area}/archives/nightly/" failonerror="true" /> |
| 356 | |
| 357 | <echo message="Promoting site.p2.zip" /> |
| 358 | <copydir dest="${graphiti.download.area}/archives/nightly/" src="${result}/site.p2.zip" /> |
mwenz | ae0eceb | 2010-07-30 12:25:50 +0000 | [diff] [blame] | 359 | </target> |
| 360 | |
| 361 | <target name="clean.tools"> |
| 362 | <delete dir="${tools}/director" failonerror="true" quiet="true" /> |
| 363 | <delete dir="${tools}/buckminster" failonerror="true" quiet="true" /> |
| 364 | </target> |
| 365 | |
| 366 | <target name="clean.tp"> |
| 367 | <delete dir="${targetPlatformPath}" failonerror="true" quiet="true" /> |
| 368 | </target> |
| 369 | |
| 370 | <target name="clean.workspace"> |
| 371 | <delete dir="${workspace}" failonerror="true" quiet="true" /> |
| 372 | </target> |
| 373 | |
| 374 | <target name="clean.output"> |
| 375 | <delete dir="${buckminster.output.root}" failonerror="true" quiet="true" /> |
| 376 | <delete dir="${buckminster.temp.root}" failonerror="true" quiet="true" /> |
| 377 | </target> |
| 378 | |
| 379 | <target name="clean.all" depends="clean.tools,clean.workspace,clean.tp,clean.output" /> |
| 380 | |
mwenz | a3bacde | 2010-07-07 14:11:25 +0000 | [diff] [blame] | 381 | </project> |