Repository navigation
Expand file tree
/
Copy pathbuild.xml
More file actions
114 lines (89 loc) · 4.01 KB
/
Copy pathbuild.xml
File metadata and controls
114 lines (89 loc) · 4.01 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!--
* © 2017 and later: Unicode, Inc. and others.
* License & terms of use: http://www.unicode.org/copyright.html#License
-->
<!--
/*
*******************************************************************************
* Copyright (C) 2006-2013, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
* This is the ant build file for ICU tools.
*/
-->
<project name="release-tools" default="tools" basedir="." >
<target name="init">
<tstamp/>
<property file="api-report.properties" />
<property name="apireport.jar" location="target/icu4c-apireport.jar"/>
<property name="rsrc.dir" location="${basedir}/src/main/resources"/>
<echo message="java home: ${java.home}"/>
<echo message="java version: ${java.version}"/>
<echo message="java vendor: ${java.vm.vendor}"/>
<echo message="ant java version: ${ant.java.version}"/>
<echo message="${ant.version}"/>
<echo message="tools jar=${apireport.jar}" />
<echo message="${basedir}"/>
<condition property="apireport.jar.exists">
<available file="${apireport.jar}" type="file"/>
</condition>
</target>
<target name="tools" depends="init" description="compile release tools" unless="apireport.jar.exists">
<exec executable="mvn" searchpath="true">
<arg value="package"/>
</exec>
</target>
<target name="clean" depends="init" description="remove all build targets">
<exec executable="mvn" searchpath="true">
<arg value="clean"/>
</exec>
</target>
<target name="apireport" depends="tools">
<java jar="${apireport.jar}" fork="yes" failonerror="true">
<arg value = "--olddir"/>
<arg value = "${olddir}"/>
<arg value = "--newdir"/>
<arg value = "${newdir}"/>
<arg value = "--cppxslt"/>
<arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/dumpAllCppFunc.xslt"/>
<arg value = "--cxslt"/>
<arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/dumpAllCFunc.xslt"/>
<arg value = "--reportxslt"/>
<arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/genReport.xslt"/>
<arg value = "--resultfile"/>
<arg value = "${basedir}/APIChangeReport.html"/>
</java>
</target>
<target name="apireport_md" depends="tools">
<java jar="${apireport.jar}" fork="yes" failonerror="true">
<arg value = "--olddir"/>
<arg value = "${olddir}"/>
<arg value = "--newdir"/>
<arg value = "${newdir}"/>
<arg value = "--cppxslt"/>
<arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/dumpAllCppFunc.xslt"/>
<arg value = "--cxslt"/>
<arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/dumpAllCFunc.xslt"/>
<arg value = "--reportxslt"/>
<arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/genReport_md.xslt"/>
<arg value = "--resultfile"/>
<arg value = "${basedir}/APIChangeReport.md"/>
</java>
</target>
<target name="apireport_xml" depends="tools">
<java jar="${apireport.jar}" fork="yes" failonerror="true">
<arg value = "--olddir"/>
<arg value = "${olddir}"/>
<arg value = "--newdir"/>
<arg value = "${newdir}"/>
<arg value = "--cppxslt"/>
<arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/dumpAllCppFunc_xml.xslt"/>
<arg value = "--cxslt"/>
<arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/dumpAllCFunc_xml.xslt"/>
<arg value = "--reportxslt"/>
<arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/genreport_xml.xslt"/>
<arg value = "--resultfile"/>
<arg value = "${basedir}/APIChangeReport.xml"/>
</java>
</target>
</project>