]> granicus.if.org Git - icu/commitdiff
ICU-8591 Add ICU4J performance test to main build.xml
authorMichael Ow <mow@svn.icu-project.org>
Fri, 8 Jul 2011 20:46:34 +0000 (20:46 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Fri, 8 Jul 2011 20:46:34 +0000 (20:46 +0000)
X-SVN-Rev: 30298

icu4j/build.xml
icu4j/main/shared/build/common-targets.xml
icu4j/main/shared/build/locations.properties
icu4j/perf-tests/build.properties [new file with mode: 0644]
icu4j/perf-tests/build.xml [new file with mode: 0644]
icu4j/perf-tests/manifest.stub [new file with mode: 0644]

index 1a0fa2cac6d1da02aa36eaa600ef8c86e9fd43e4..12c5afd2c7e8cfca3f2f3392ccb4311ccfbd8aa4 100644 (file)
@@ -94,6 +94,7 @@
         <ant dir="${icu4j.build-tools.dir}" target="clean" inheritAll="false"/>
         <ant dir="${icu4j.tools.dir}" target="clean" inheritAll="false"/>
         <ant dir="${icu4j.demos.dir}" target="clean" inheritAll="false"/>
+        <ant dir="${icu4j.perf.dir}" target="clean" inheritAll="false"/>
 
         <!-- delete all .jar files root directory -->
         <delete>
     </target>
 
     <!-- meta build targets -->
-    <target name="all" depends="info, main, tests, build-tools, tools, demos, jar, docs" description="Build all primary targets"/>
+    <target name="all" depends="info, main, tests, build-tools, tools, demos, perf, jar, docs" description="Build all primary targets"/>
     <target name="main" depends="info, core, collate, charset, currdata, langdata, regiondata, translit, localespi" description="Build ICU4J runtime library classes"/>
     <target name="tests" depends="info, core-tests, charset-tests, collate-tests, packaging-tests, translit-tests, localespi-tests" description="Build ICU4J test classes"/>
     <target name="release" depends="info, releaseBinaries, releaseSrcJars, releaseDocs, releaseSourceArchiveTgz" description="Build all ICU4J release files for distribution"/>
     <target name="tools" depends="core, core-tests, collate, translit, translit-tests" description="Build tool classes">
         <ant dir="${icu4j.tools.dir}" inheritAll="false"/>
     </target>
+    <target name="perf" depends="core, charset, collate, tools" description="Build performance test classes">
+        <ant dir="${icu4j.perf.dir}" inheritAll="false"/>
+    </target>
 
     <!-- doc targets -->
     <target name="docs" depends="info, build-tools" description="Build API documents">
index 3337fc14d64c0fa2c4381deb3204be37f8eabcaa..bdf7d01e14ab5c7bc2ed5f4305008fa85861ead7 100644 (file)
 
     <target name="_all.demos" depends="_all.core, _all.translit, _all.charset">
         <ant dir="${icu4j.demos.dir}" inheritAll="false"/>
+
+    <!-- perf -->
     </target>
+        <path id="javac.classpathref.perf">
+        <pathelement location="${icu4j.core.jar}"/>
+        <pathelement location="${icu4j.charset.jar}"/>
+        <pathelement location="${icu4j.collate.jar}"/>
+        <pathelement location="${icu4j.tools.jar}"/>
+    </path>
+
 
 </project>
index c9fb47b667b8b82ca7b66ba25e865a749437db4e..3b2141e1d12cc6e95bffddd0ad10cc4f3fa06104 100644 (file)
@@ -1,5 +1,5 @@
 #*******************************************************************************
-#* Copyright (C) 2009, International Business Machines Corporation and         *
+#* Copyright (C) 2009-2011, International Business Machines Corporation and         *
 #* others. All Rights Reserved.                                                *
 #*******************************************************************************
 
@@ -24,3 +24,5 @@ icu4j.build-tools.dir = ${shared.dir}/../../tools/build
 icu4j.tools.dir = ${shared.dir}/../../tools/misc
 
 icu4j.demos.dir = ${shared.dir}/../../demos
+
+icu4j.perf.dir = ${shared.dir}/../../perf-tests
diff --git a/icu4j/perf-tests/build.properties b/icu4j/perf-tests/build.properties
new file mode 100644 (file)
index 0000000..2572956
--- /dev/null
@@ -0,0 +1,5 @@
+#*******************************************************************************
+#* Copyright (C) 2011, International Business Machines Corporation and         *
+#* others. All Rights Reserved.                                                *
+#*******************************************************************************
+shared.dir = ../main/shared
diff --git a/icu4j/perf-tests/build.xml b/icu4j/perf-tests/build.xml
new file mode 100644 (file)
index 0000000..45f3cbd
--- /dev/null
@@ -0,0 +1,31 @@
+<!--
+*******************************************************************************
+* Copyright (C) 2011, International Business Machines Corporation and    *
+* others. All Rights Reserved.                                                *
+*******************************************************************************
+-->
+<project name="perf" default="build" basedir=".">
+    <property file="build-local.properties"/>
+    <property file="build.properties"/>
+    <import file="${shared.dir}/build/common-targets.xml"/>
+
+    <path id="javac.classpathref">
+        <path refid="javac.classpathref.${ant.project.name}"/>
+    </path>
+    <property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
+    <property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
+
+    <target name="build" depends="compile, copy, src-jar, jar" description="Build the project"/>
+
+    <target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
+
+    <target name="clean" depends="@clean" description="Clean up the build outputs"/>
+
+    <target name="compile" depends="@compile" description="Compile java source files"/>
+
+    <target name="copy" depends="@copy" description="Copy non-java runtime files to the project's binary directory"/>
+
+    <target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
+
+    <target name="src-jar" depends="@src-jar" description="Create the project's source jar file"/>
+</project>
diff --git a/icu4j/perf-tests/manifest.stub b/icu4j/perf-tests/manifest.stub
new file mode 100644 (file)
index 0000000..c777760
--- /dev/null
@@ -0,0 +1,9 @@
+Manifest-Version: 1.0
+Specification-Title: ICU for Java Performance Tests
+Specification-Version: @SPECVERSION@
+Specification-Vendor: ICU
+Implementation-Title: ICU for Java Performance Tests
+Implementation-Version: @IMPLVERSION@
+Implementation-Vendor: IBM Corporation
+Implementation-Vendor-Id: com.ibm
+Copyright-Info: @COPYRIGHT@