Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 150314 | Differences between
and this patch

Collapse All | Expand All

(-)icu4j-eclipse-plugins.orig/com.ibm.icu/build.xml (+172 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project name="com.ibm.icu" default="build.jars" basedir=".">
3
4
	<property name="basews" value="${ws}"/>
5
	<property name="baseos" value="${os}"/>
6
	<property name="basearch" value="${arch}"/>
7
	<property name="basenl" value="${nl}"/>
8
9
	<!-- Compiler settings. -->
10
	<property name="javacFailOnError" value="false"/>
11
	<property name="javacDebugInfo" value="on"/>
12
	<property name="javacVerbose" value="false"/>
13
	<property name="logExtension" value=".log"/>
14
	<property name="compilerArg" value=""/>
15
	<property name="javacSource" value="1.3"/>
16
	<property name="javacTarget" value="1.2"/>
17
	<path id="path_bootclasspath">
18
		<fileset dir="${java.home}/lib">
19
			<include name="*.jar"/>
20
		</fileset>
21
	</path>
22
	<property name="bootclasspath" refid="path_bootclasspath"/>
23
	<condition property="bundleBootClasspath" value="${CDC-1.0/Foundation-1.0}">
24
		<isset property="CDC-1.0/Foundation-1.0"/>
25
	</condition>
26
	<condition property="bundleJavacSource" value="1.3">
27
		<isset property="CDC-1.0/Foundation-1.0"/>
28
	</condition>
29
	<condition property="bundleJavacTarget" value="1.1">
30
		<isset property="CDC-1.0/Foundation-1.0"/>
31
	</condition>
32
	<condition property="bundleBootClasspath" value="${J2SE-1.3}">
33
		<isset property="J2SE-1.3"/>
34
	</condition>
35
	<condition property="bundleJavacSource" value="1.3">
36
		<isset property="J2SE-1.3"/>
37
	</condition>
38
	<condition property="bundleJavacTarget" value="1.1">
39
		<isset property="J2SE-1.3"/>
40
	</condition>
41
	<property name="bundleJavacSource" value="${javacSource}"/>
42
	<property name="bundleJavacTarget" value="${javacTarget}"/>
43
	<property name="bundleBootClasspath" value="${bootclasspath}"/>
44
45
	<target name="init" depends="properties">
46
		<condition property="pluginTemp" value="${buildTempFolder}/plugins">
47
			<isset property="buildTempFolder"/>
48
		</condition>
49
		<property name="pluginTemp" value="${basedir}"/>
50
		<condition property="build.result.folder" value="${pluginTemp}/com.ibm.icu">
51
			<isset property="buildTempFolder"/>
52
		</condition>
53
		<property name="build.result.folder" value="${basedir}"/>
54
		<property name="temp.folder" value="${basedir}/temp.folder"/>
55
		<property name="plugin.destination" value="${basedir}"/>
56
	</target>
57
58
	<target name="properties" if="eclipse.running">
59
		<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
60
61
	</target>
62
63
	<target name="build.update.jar" depends="init" description="Build the plug-in: com.ibm.icu for an update site.">
64
		<delete dir="${temp.folder}"/>
65
		<mkdir dir="${temp.folder}"/>
66
		<antcall target="build.jars"/>
67
		<antcall target="gather.bin.parts">
68
			<param name="destination.temp.folder" value="${temp.folder}/"/>
69
		</antcall>
70
		<zip destfile="${plugin.destination}/com.ibm.icu_3.4.5.jar" basedir="${temp.folder}/com.ibm.icu_3.4.5" filesonly="false" whenempty="skip" update="false"/>
71
		<delete dir="${temp.folder}"/>
72
	</target>
73
74
	<target name="@dot" depends="init" unless="@dot" description="Create jar: com.ibm.icu @dot.">
75
		<delete dir="${temp.folder}/@dot.bin"/>
76
		<mkdir dir="${temp.folder}/@dot.bin"/>
77
		<path id="@dot.classpath">
78
		</path>
79
		<!-- compile the source code -->
80
		<javac destdir="${temp.folder}/@dot.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}" target="${bundleJavacTarget}"		>
81
			<compilerarg line="${compilerArg}" compiler="${build.compiler}"/>
82
			<classpath refid="@dot.classpath" />
83
			<src path="src/"			/>
84
			<compilerarg line="-log '${temp.folder}/@dot.bin${logExtension}'" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/>
85
		</javac>
86
		<!-- Copy necessary resources -->
87
		<copy todir="${temp.folder}/@dot.bin" failonerror="true" overwrite="false">
88
			<fileset dir="src/" excludes="**/*.java, **/package.htm*"			/>
89
		</copy>
90
		<mkdir dir="${build.result.folder}"/>
91
		<copy todir="${build.result.folder}/@dot" failonerror="true" overwrite="false">
92
			<fileset dir="${temp.folder}/@dot.bin"			/>
93
		</copy>
94
		<delete dir="${temp.folder}/@dot.bin"/>
95
	</target>
96
97
	<target name="src.zip" depends="init" unless="src.zip">
98
		<mkdir dir="${build.result.folder}"/>
99
		<zip destfile="${build.result.folder}/src.zip" filesonly="false" whenempty="skip" update="false">
100
			<fileset dir="src/" includes="**/*.java"			/>
101
		</zip>
102
	</target>
103
104
	<target name="build.jars" depends="init" description="Build all the jars for the plug-in: com.ibm.icu.">
105
		<available property="@dot" file="${build.result.folder}/@dot"/>
106
		<antcall target="@dot"/>
107
	</target>
108
109
	<target name="build.sources" depends="init">
110
		<available property="src.zip" file="${build.result.folder}/src.zip"/>
111
		<antcall target="src.zip"/>
112
	</target>
113
114
	<target name="gather.bin.parts" depends="init" if="destination.temp.folder">
115
		<mkdir dir="${destination.temp.folder}/com.ibm.icu_3.4.5"/>
116
		<copy todir="${destination.temp.folder}/com.ibm.icu_3.4.5" failonerror="true" overwrite="false">
117
			<fileset dir="${build.result.folder}/@dot" includes="**"			/>
118
		</copy>
119
		<copy todir="${destination.temp.folder}/com.ibm.icu_3.4.5" failonerror="true" overwrite="false">
120
			<fileset dir="${basedir}" includes="about_files/,about.html,plugin.properties,META-INF/"			/>
121
		</copy>
122
		<!-- <eclipse.versionReplacer path="${destination.temp.folder}/com.ibm.icu_3.4.5" version="3.4.5"/> -->
123
	</target>
124
125
	<target name="build.zips" depends="init">
126
	</target>
127
128
	<target name="gather.sources" depends="init" if="destination.temp.folder">
129
		<mkdir dir="${destination.temp.folder}/com.ibm.icu_3.4.5"/>
130
		<copy file="${build.result.folder}/src.zip" todir="${destination.temp.folder}/com.ibm.icu_3.4.5" failonerror="false" overwrite="false"/>
131
		<copy todir="${destination.temp.folder}/com.ibm.icu_3.4.5" failonerror="false" overwrite="false">
132
			<fileset dir="${basedir}" includes="about.html,about_files/"			/>
133
		</copy>
134
	</target>
135
136
	<target name="gather.logs" depends="init" if="destination.temp.folder">
137
		<mkdir dir="${destination.temp.folder}/com.ibm.icu_3.4.5"/>
138
		<copy file="${temp.folder}/@dot.bin${logExtension}" todir="${destination.temp.folder}/com.ibm.icu_3.4.5" failonerror="false" overwrite="false"/>
139
	</target>
140
141
	<target name="clean" depends="init" description="Clean the plug-in: com.ibm.icu of all the zips, jars and logs created.">
142
		<delete dir="${build.result.folder}/@dot"/>
143
		<delete file="${build.result.folder}/src.zip"/>
144
		<delete file="${plugin.destination}/com.ibm.icu_3.4.5.jar"/>
145
		<delete file="${plugin.destination}/com.ibm.icu_3.4.5.zip"/>
146
		<delete dir="${temp.folder}"/>
147
	</target>
148
149
	<target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
150
		<eclipse.convertPath fileSystemPath="/home/ben/test/build/plugins/com.ibm.icu" property="resourcePath"/>
151
		<eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
152
	</target>
153
154
	<target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: com.ibm.icu.">
155
		<delete dir="${temp.folder}"/>
156
		<mkdir dir="${temp.folder}"/>
157
		<antcall target="build.jars"/>
158
		<antcall target="build.sources"/>
159
		<antcall target="gather.bin.parts">
160
			<param name="destination.temp.folder" value="${temp.folder}/"/>
161
		</antcall>
162
		<antcall target="gather.sources">
163
			<param name="destination.temp.folder" value="${temp.folder}/"/>
164
		</antcall>
165
		<delete>
166
			<fileset dir="${temp.folder}" includes="**/*.bin${logExtension}"			/>
167
		</delete>
168
		<zip destfile="${plugin.destination}/com.ibm.icu_3.4.5.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
169
		<delete dir="${temp.folder}"/>
170
	</target>
171
172
</project>
(-)icu4j-eclipse-plugins.orig/com.ibm.icu.base/build.xml (+172 lines)
Line 0 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project name="com.ibm.icu.base" default="build.jars" basedir=".">
3
4
	<property name="basews" value="${ws}"/>
5
	<property name="baseos" value="${os}"/>
6
	<property name="basearch" value="${arch}"/>
7
	<property name="basenl" value="${nl}"/>
8
9
	<!-- Compiler settings. -->
10
	<property name="javacFailOnError" value="false"/>
11
	<property name="javacDebugInfo" value="on"/>
12
	<property name="javacVerbose" value="false"/>
13
	<property name="logExtension" value=".log"/>
14
	<property name="compilerArg" value=""/>
15
	<property name="javacSource" value="1.3"/>
16
	<property name="javacTarget" value="1.2"/>
17
	<path id="path_bootclasspath">
18
		<fileset dir="${java.home}/lib">
19
			<include name="*.jar"/>
20
		</fileset>
21
	</path>
22
	<property name="bootclasspath" refid="path_bootclasspath"/>
23
	<condition property="bundleBootClasspath" value="${CDC-1.0/Foundation-1.0}">
24
		<isset property="CDC-1.0/Foundation-1.0"/>
25
	</condition>
26
	<condition property="bundleJavacSource" value="1.3">
27
		<isset property="CDC-1.0/Foundation-1.0"/>
28
	</condition>
29
	<condition property="bundleJavacTarget" value="1.1">
30
		<isset property="CDC-1.0/Foundation-1.0"/>
31
	</condition>
32
	<condition property="bundleBootClasspath" value="${J2SE-1.3}">
33
		<isset property="J2SE-1.3"/>
34
	</condition>
35
	<condition property="bundleJavacSource" value="1.3">
36
		<isset property="J2SE-1.3"/>
37
	</condition>
38
	<condition property="bundleJavacTarget" value="1.1">
39
		<isset property="J2SE-1.3"/>
40
	</condition>
41
	<property name="bundleJavacSource" value="${javacSource}"/>
42
	<property name="bundleJavacTarget" value="${javacTarget}"/>
43
	<property name="bundleBootClasspath" value="${bootclasspath}"/>
44
45
	<target name="init" depends="properties">
46
		<condition property="pluginTemp" value="${buildTempFolder}/plugins">
47
			<isset property="buildTempFolder"/>
48
		</condition>
49
		<property name="pluginTemp" value="${basedir}"/>
50
		<condition property="build.result.folder" value="${pluginTemp}/com.ibm.icu.base">
51
			<isset property="buildTempFolder"/>
52
		</condition>
53
		<property name="build.result.folder" value="${basedir}"/>
54
		<property name="temp.folder" value="${basedir}/temp.folder"/>
55
		<property name="plugin.destination" value="${basedir}"/>
56
	</target>
57
58
	<target name="properties" if="eclipse.running">
59
		<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
60
61
	</target>
62
63
	<target name="build.update.jar" depends="init" description="Build the plug-in: com.ibm.icu.base for an update site.">
64
		<delete dir="${temp.folder}"/>
65
		<mkdir dir="${temp.folder}"/>
66
		<antcall target="build.jars"/>
67
		<antcall target="gather.bin.parts">
68
			<param name="destination.temp.folder" value="${temp.folder}/"/>
69
		</antcall>
70
		<zip destfile="${plugin.destination}/com.ibm.icu.base_3.4.5.jar" basedir="${temp.folder}/com.ibm.icu.base_3.4.5" filesonly="false" whenempty="skip" update="false"/>
71
		<delete dir="${temp.folder}"/>
72
	</target>
73
74
	<target name="@dot" depends="init" unless="@dot" description="Create jar: com.ibm.icu.base @dot.">
75
		<delete dir="${temp.folder}/@dot.bin"/>
76
		<mkdir dir="${temp.folder}/@dot.bin"/>
77
		<path id="@dot.classpath">
78
		</path>
79
		<!-- compile the source code -->
80
		<javac destdir="${temp.folder}/@dot.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}" target="${bundleJavacTarget}"		>
81
			<compilerarg line="${compilerArg}" compiler="${build.compiler}"/>
82
			<classpath refid="@dot.classpath" />
83
			<src path="src/"			/>
84
			<compilerarg line="-log '${temp.folder}/@dot.bin${logExtension}'" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/>
85
		</javac>
86
		<!-- Copy necessary resources -->
87
		<copy todir="${temp.folder}/@dot.bin" failonerror="true" overwrite="false">
88
			<fileset dir="src/" excludes="**/*.java, **/package.htm*"			/>
89
		</copy>
90
		<mkdir dir="${build.result.folder}"/>
91
		<copy todir="${build.result.folder}/@dot" failonerror="true" overwrite="false">
92
			<fileset dir="${temp.folder}/@dot.bin"			/>
93
		</copy>
94
		<delete dir="${temp.folder}/@dot.bin"/>
95
	</target>
96
97
	<target name="src.zip" depends="init" unless="src.zip">
98
		<mkdir dir="${build.result.folder}"/>
99
		<zip destfile="${build.result.folder}/src.zip" filesonly="false" whenempty="skip" update="false">
100
			<fileset dir="src/" includes="**/*.java"			/>
101
		</zip>
102
	</target>
103
104
	<target name="build.jars" depends="init" description="Build all the jars for the plug-in: com.ibm.icu.base.">
105
		<available property="@dot" file="${build.result.folder}/@dot"/>
106
		<antcall target="@dot"/>
107
	</target>
108
109
	<target name="build.sources" depends="init">
110
		<available property="src.zip" file="${build.result.folder}/src.zip"/>
111
		<antcall target="src.zip"/>
112
	</target>
113
114
	<target name="gather.bin.parts" depends="init" if="destination.temp.folder">
115
		<mkdir dir="${destination.temp.folder}/com.ibm.icu.base_3.4.5"/>
116
		<copy todir="${destination.temp.folder}/com.ibm.icu.base_3.4.5" failonerror="true" overwrite="false">
117
			<fileset dir="${build.result.folder}/@dot" includes="**"			/>
118
		</copy>
119
		<copy todir="${destination.temp.folder}/com.ibm.icu.base_3.4.5" failonerror="true" overwrite="false">
120
			<fileset dir="${basedir}" includes="about_files/,about.html,plugin.properties,META-INF/"			/>
121
		</copy>
122
		<!-- <eclipse.versionReplacer path="${destination.temp.folder}/com.ibm.icu.base_3.4.5" version="3.4.5"/> -->
123
	</target>
124
125
	<target name="build.zips" depends="init">
126
	</target>
127
128
	<target name="gather.sources" depends="init" if="destination.temp.folder">
129
		<mkdir dir="${destination.temp.folder}/com.ibm.icu.base_3.4.5"/>
130
		<copy file="${build.result.folder}/src.zip" todir="${destination.temp.folder}/com.ibm.icu.base_3.4.5" failonerror="false" overwrite="false"/>
131
		<copy todir="${destination.temp.folder}/com.ibm.icu.base_3.4.5" failonerror="false" overwrite="false">
132
			<fileset dir="${basedir}" includes="about.html,about_files/"			/>
133
		</copy>
134
	</target>
135
136
	<target name="gather.logs" depends="init" if="destination.temp.folder">
137
		<mkdir dir="${destination.temp.folder}/com.ibm.icu.base_3.4.5"/>
138
		<copy file="${temp.folder}/@dot.bin${logExtension}" todir="${destination.temp.folder}/com.ibm.icu.base_3.4.5" failonerror="false" overwrite="false"/>
139
	</target>
140
141
	<target name="clean" depends="init" description="Clean the plug-in: com.ibm.icu.base of all the zips, jars and logs created.">
142
		<delete dir="${build.result.folder}/@dot"/>
143
		<delete file="${build.result.folder}/src.zip"/>
144
		<delete file="${plugin.destination}/com.ibm.icu.base_3.4.5.jar"/>
145
		<delete file="${plugin.destination}/com.ibm.icu.base_3.4.5.zip"/>
146
		<delete dir="${temp.folder}"/>
147
	</target>
148
149
	<target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
150
		<eclipse.convertPath fileSystemPath="/home/ben/icu4j-eclipse-plugins/build/plugins/com.ibm.icu.base" property="resourcePath"/>
151
		<eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
152
	</target>
153
154
	<target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: com.ibm.icu.base.">
155
		<delete dir="${temp.folder}"/>
156
		<mkdir dir="${temp.folder}"/>
157
		<antcall target="build.jars"/>
158
		<antcall target="build.sources"/>
159
		<antcall target="gather.bin.parts">
160
			<param name="destination.temp.folder" value="${temp.folder}/"/>
161
		</antcall>
162
		<antcall target="gather.sources">
163
			<param name="destination.temp.folder" value="${temp.folder}/"/>
164
		</antcall>
165
		<delete>
166
			<fileset dir="${temp.folder}" includes="**/*.bin${logExtension}"			/>
167
		</delete>
168
		<zip destfile="${plugin.destination}/com.ibm.icu.base_3.4.5.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
169
		<delete dir="${temp.folder}"/>
170
	</target>
171
172
</project>

Return to bug 150314