|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!-- |
3 | 3 | Copyright (c) IBM Corporation and others 2008, 2013 This page is made available under license. For full details see the LEGAL in the documentation book that contains this page. |
4 | | - |
| 4 | +
|
5 | 5 | All Platform Debug contexts, those for org.eclipse.debug.ui, are located in this file |
6 | 6 | All contexts are grouped by their relation, with all relations grouped alphabetically. |
7 | 7 | --> |
8 | 8 | <project name="Build API Tools Ant Support Jar" default="build" basedir=".."> |
9 | 9 |
|
10 | | - <target name="build" description="Cleans, builds and refreshes" depends="clean, lib/apitooling-ant.jar"/> |
| 10 | + <target name="build" description="Builds if needed" depends="lib/apitooling-ant.jar"/> |
11 | 11 |
|
12 | 12 | <target name="init" depends="properties"> |
13 | 13 | <property name="temp.folder" value="${basedir}/temp.folder"/> |
|
17 | 17 | <target name="properties" if="eclipse.running"> |
18 | 18 | <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> |
19 | 19 | </target> |
20 | | - |
21 | | - <target name="lib/apitooling-ant.jar" description= "Creates the lib/apitooling-ant.jar" depends="init"> |
| 20 | + |
| 21 | + <target name="check.uptodate" depends="init"> |
| 22 | + <!-- Check if the jar is up-to-date with respect to all source inputs --> |
| 23 | + <uptodate property="lib/apitooling-ant.jar.uptodate" |
| 24 | + targetfile="${build.result.folder}/lib/apitooling-ant.jar"> |
| 25 | + <srcresources> |
| 26 | + <fileset dir="${basedir}/src_ant/"/> |
| 27 | + <fileset dir="xml/"> |
| 28 | + <exclude name="**/*.xsd"/> |
| 29 | + <exclude name="**/*.xml"/> |
| 30 | + </fileset> |
| 31 | + </srcresources> |
| 32 | + </uptodate> |
| 33 | + </target> |
| 34 | + |
| 35 | + <target name="lib/apitooling-ant.jar" description="Creates the lib/apitooling-ant.jar" |
| 36 | + depends="check.uptodate" unless="lib/apitooling-ant.jar.uptodate"> |
22 | 37 | <property name="destdir" value="${temp.folder}/lib/apitooling-ant.bin"/> |
23 | 38 | <delete dir="${destdir}"/> |
24 | 39 | <mkdir dir="${destdir}"/> |
25 | 40 | <!-- copy necessary resources --> |
26 | | - <copy todir="${destdir}"> |
27 | | - <fileset dir="${basedir}/bin_ant/"/> |
28 | | - </copy> |
| 41 | + <copy todir="${destdir}"> |
| 42 | + <fileset dir="${basedir}/bin_ant/"/> |
| 43 | + </copy> |
29 | 44 | <!-- copy default XSLT files to the jar location --> |
30 | 45 | <copy todir="${destdir}" failonerror="true" overwrite="false"> |
31 | 46 | <fileset dir="xml/"> |
|
0 commit comments