File: build.xml

package info (click to toggle)
icu4j-4.4 4.4.2.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 50,228 kB
  • sloc: java: 260,162; xml: 4,430; perl: 3,097; makefile: 21
file content (42 lines) | stat: -rw-r--r-- 1,508 bytes parent folder | download | duplicates (4)
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="icu-deb" default="build-jars">
  <property name="source" value="1.5" />
  <property name="target" value="1.5" />
  <property name="debug" value="true" />
  <property name="optimize" value="true" />
  <!-- Locations are relative to the debian dir. -->
  <property name="output.dir" value=".." />
  <property name="source.base.dir" location=".eclipse-build/eclipse-build/out/projects/plugins" />

  <target name="init">
    <mkdir dir="${output.dir}" />
  </target>
  <target name="build-jars">
    <antcall target="build-jar">
      <param name="build.part" value="com.ibm.icu.base" />
    </antcall>
    <antcall target="build-jar">
      <param name="build.part" value="com.ibm.icu" />
    </antcall>
  </target>

  <target name="build-jar" depends="init">
    <mkdir dir="${output.dir}/" />
    <javac srcdir="${source.base.dir}/${build.part}/src/" destdir="${source.base.dir}/${build.part}/"
	   optimize="${optimize}" debug="${debug}" source="${source}" target="${target}"
	   fork="yes" />
    <move todir="${source.base.dir}/${build.part}">
      <fileset dir="${source.base.dir}/${build.part}/src">
	<exclude name="**/*.java" />
      </fileset>
    </move>
    <jar destfile="${output.dir}/${build.part}.jar"
	 manifest="${source.base.dir}/${build.part}/META-INF/MANIFEST.MF"
	 >
      <fileset dir="${source.base.dir}/${build.part}" >
	<exclude name="**/.*/**" />
	<exclude name="**/src/**" />
      </fileset>
    </jar>
  </target>
</project>