ICU-6951 Added and isolated richedit build scripts.

X-SVN-Rev: 26121
This commit is contained in:
Yoshito Umaoka 2009-06-16 23:08:10 +00:00
parent 4149369dac
commit 07b0822b13
15 changed files with 149 additions and 118 deletions

1
.gitattributes vendored
View file

@ -255,7 +255,6 @@ icu4j/perf-tests/data/collation/TestNames_Simplified_Chinese.txt -text
icu4j/perf-tests/data/collation/TestNames_Thai.txt -text
icu4j/richedit/classes/src/com/ibm/richtext/textapps/resources/unicode.arabic.red -text
icu4j/richedit/classes/src/com/ibm/richtext/textapps/resources/unicode.hebrew.red -text
icu4j/richedit/tests/manifest.stub -text
icu4j/tools/build/icu4j28.api.gz -text
icu4j/tools/build/icu4j30.api.gz -text
icu4j/tools/build/icu4j32.api.gz -text

View file

@ -65,8 +65,6 @@
<ant dir="${icu4j.core-tests.dir}" target="clean" inheritAll="false"/>
<ant dir="${icu4j.charset-tests.dir}" target="clean" inheritAll="false"/>
<ant dir="${icu4j.localespi-tests.dir}" target="clean" inheritAll="false"/>
<ant dir="${icu4j.richedit.dir}" target="clean" inheritAll="false"/>
<ant dir="${icu4j.richedit-tests.dir}" target="clean" inheritAll="false"/>
<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"/>

View file

@ -139,25 +139,6 @@
<ant dir="${icu4j.localespi-tests.dir}" inheritAll="false"/>
</target>
<!-- richedit -->
<path id="javac.classpathref.richedit">
<pathelement location="${icu4j.core.jar}"/>
</path>
<target name="_all.richedit" depends="_all.core">
<ant dir="${icu4j.richedit.dir}" inheritAll = "false"/>
</target>
<!-- richedit-tests -->
<path id="javac.classpathref.richedit-tests">
<pathelement location="${icu4j.richedit.jar}"/>
<pathelement location="${icu4j.test-framework.jar}"/>
</path>
<target name="_all.richedit-tests" depends="_all.richedit, _all.test-framework">
<ant dir="${icu4j.richedit.dir}" inheritAll = "false"/>
</target>
<!-- build-tools -->
<path id="javac.classpathref.build-tools"/>

View file

@ -43,9 +43,6 @@ icu4j.core-tests.jar = ${icu4j.core-tests.dir}/${jar.dir}/icu4j-core-tests.jar
icu4j.charset-tests.jar = ${icu4j.charset-tests.dir}/${jar.dir}/icu4j-charset-tests.jar
icu4j.localespi-tests.jar = ${icu4j.localespi-tests.dir}/${jar.dir}/icu4j-localespi-tests.jar
icu4j.richedit.jar = ${icu4j.richedit.dir}/${jar.dir}/richedit.jar
icu4j.richedit-tests.jar = ${icu4j.richedit-tests.dir}/${jar.dir}/richedit-tests.jar
icu4j.build-tools.jar = ${icu4j.build-tools.dir}/${jar.dir}/icu4j-build-tools.jar
icu4j.tools.jar = ${icu4j.tools.dir}/${jar.dir}/icu4j-tools.jar

View file

@ -13,9 +13,6 @@ icu4j.core-tests.dir = ${workspace_loc:/icu4j-core-tests}
icu4j.charset-tests.dir = ${workspace_loc:/icu4j-charset-tests}
icu4j.localespi-tests.dir = ${workspace_loc:/icu4j-localespi-tests}
icu4j.richedit.dir = ${workspace_loc:/icu4j-richedit}
icu4j.richedit-tests.dir = ${workspace_loc:/icu4j-richedit-tests}
icu4j.build-tools.dir = ${workspace_loc:/icu4j-build-tools}
icu4j.tools.dir = ${workspace_loc:/icu4j-tools}

View file

@ -12,9 +12,6 @@ icu4j.core-tests.dir = ${shared.dir}/../tests/core
icu4j.charset-tests.dir = ${shared.dir}/../tests/charset
icu4j.localespi-tests.dir = ${shared.dir}/../tests/localespi
icu4j.richedit.dir = ${shared.dir}/../../richedit/classes
icu4j.richedit-tests.dir = ${shared.dir}/../../richedit/tests
icu4j.build-tools.dir = ${shared.dir}/../../tools/build
icu4j.tools.dir = ${shared.dir}/../../tools/misc

View file

@ -0,0 +1,18 @@
#*******************************************************************************
#* Copyright (C) 2009, International Business Machines Corporation and *
#* others. All Rights Reserved. *
#*******************************************************************************
icu4j.core.jar = <icu4j core jar file path>
icu4j.test-framework.jar = <icu4j test framework jar file path>
icu4j.license.html = <icu4j license HTML file>
javac.source = 1.3
javac.target = 1.3
javac.debug = on
javac.deprecation = off
javac.encoding = ascii
jar.spec.version = 2.6
jar.impl.version = 2.6
jar.copyright.info = Copyright 2000-2009, International Business Machines Corporation and others. All Rights Reserved.

111
icu4j/richedit/build.xml Normal file
View file

@ -0,0 +1,111 @@
<!--
*******************************************************************************
* Copyright (C) 2009, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
-->
<project name="richedit" default="jar" basedir=".">
<property file="build-local.properties"/>
<property file="build.properties"/>
<target name="clean" description="Clean up the build outputs">
<delete dir="out"/>
<delete dir="classes/out"/>
<delete dir="tests/out"/>
<delete dir="doc"/>
</target>
<target name="compile" description="Compile ICU richedit java files">
<path id="cpref.richedit.classes"/>
<antcall target="_do-compile">
<param name="comp.dir" value="classes"/>
<reference refid="cpref.richedit.classes" torefid="javac.cpref"/>
</antcall>
<path id="cpref.richedit.tests">
<pathelement location="${icu4j.core.jar}"/>
<pathelement location="${icu4j.test-framework.jar}"/>
<pathelement path="classes/out/bin"/>
</path>
<antcall target="_do-compile">
<param name="comp.dir" value="tests"/>
<reference refid="cpref.richedit.tests" torefid="javac.cpref"/>
</antcall>
</target>
<target name="_do-compile">
<echo message="${toString:javac.cpref}"/>
<mkdir dir="${comp.dir}/out/bin"/>
<javac srcdir="${comp.dir}/src"
destdir="${comp.dir}/out/bin"
classpathref="javac.cpref"
source="${javac.source}"
target="${javac.target}"
debug="${javac.debug}"
deprecation="${javac.deprecation}"
encoding="${javac.encoding}"/>
</target>
<target name="jar" depends="compile" description="Create ICU richedit runtime jar file">
<copy todir="classes/out/bin/com/ibm/richtext/textapps/resources">
<fileset dir="classes/src/com/ibm/richtext/textapps/resources" includes="*.red"/>
</copy>
<copy file="classes/manifest.stub" todir="classes/out">
<filterset>
<filter token="SPECVERSION" value="${jar.spec.version}"/>
<filter token="IMPLVERSION" value="${jar.impl.version}"/>
<filter token="COPYRIGHT" value="${jar.copyright.info}"/>
</filterset>
</copy>
<mkdir dir="out"/>
<jar jarfile="out/richedit.jar"
compress="true"
basedir="classes/out/bin"
manifest="classes/out/manifest.stub"/>
</target>
<target name="docs" description="Generate ICU richedit javadoc">
<mkdir dir="doc"/>
<javadoc destdir="doc"
nodeprecatedlist="true"
windowtitle="RichEdit Control"
doctitle="RichEdit Control"
encoding="iso-8859-1"
bottom="&lt;font size=-1&gt;Copyright (c) 1998-2009 IBM Corporation and others.&lt;/font&gt;"
source="1.3">
<packageset dir="classes/src">
<include name="com/ibm/richtext/demo"/>
<include name="com/ibm/richtext/awtui"/>
<include name="com/ibm/richtext/swingui"/>
<include name="com/ibm/richtext/textpanel"/>
<include name="com/ibm/richtext/styledtext"/>
<include name="com/ibm/richtext/textlayout/attributes"/>
<include name="com/ibm/richtext/print"/>
</packageset>
</javadoc>
</target>
<target name="dist-zip" depends="jar, docs" description="Create ICU richedit zip file for distribution">
<copy file="${icu4j.license.html}" tofile="out/license.html"/>
<zip zipfile="out/richedit.zip">
<fileset dir="out" includes="richedit.jar,license.html"/>
<fileset dir="." includes="doc/**/*"/>
</zip>
</target>
<target name="check" depends="jar" description="Run the ICU richedit test suite">
<java classname="com.ibm.richtext.test.unit.TestAll" fork="yes" failonerror="true">
<arg line="-n"/>
<classpath>
<pathelement location="${icu4j.core.jar}"/>
<pathelement location="${icu4j.test-framework.jar}"/>
<pathelement location="out/richedit.jar"/>
<pathelement path="tests/out/bin"/>
</classpath>
</java>
</target>
</project>

View file

@ -1,8 +0,0 @@
#*******************************************************************************
#* Copyright (C) 2009, International Business Machines Corporation and *
#* others. All Rights Reserved. *
#*******************************************************************************
shared.dir = ../../main/shared
jar.spec.version = 2.6
jar.impl.version = 2.6

View file

@ -1,29 +0,0 @@
<!--
*******************************************************************************
* Copyright (C) 2009, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
-->
<project name="richedit" 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.file" value="${icu4j.richedit.jar}"/>
<target name="build" depends="compile, copy, 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"/>
</project>

View file

@ -1,5 +1,7 @@
Manifest-Version: 1.0
Main-Class: com.ibm.richtext.demo.EditDemo
Name: com/ibm/richtext
Specification-Title: ICU for Java RichEdit
Specification-Version: @SPECVERSION@
Specification-Vendor: ICU
@ -9,4 +11,3 @@ Implementation-Vendor: IBM Corporation
Implementation-Vendor-Id: com.ibm
Copyright-Info: @COPYRIGHT@
Name: com/ibm/richtext

18
icu4j/richedit/readme.txt Normal file
View file

@ -0,0 +1,18 @@
#*******************************************************************************
#* Copyright (C) 2009, International Business Machines Corporation and *
#* others. All Rights Reserved. *
#*******************************************************************************
ICU4J Rich Edit app was moved from the icu4j SVN repository to the icuapps
repository on 2009-06-16.
To build ICU Rich Edit app, create build-local.properties and define following
properties:
icu4j.core.jar = <icu4j core jar file path>
icu4j.test-framework.jar = <icu4j test framework jar file path>
icu4j.license.html = <icu4j license HTML file>
Build output files are created in ./out directory (richtext.jar and richtext.zip)
For supported build targets, see the target descriptions by ant -p.

View file

@ -1,8 +0,0 @@
#*******************************************************************************
#* Copyright (C) 2009, International Business Machines Corporation and *
#* others. All Rights Reserved. *
#*******************************************************************************
shared.dir = ../../main/shared
jar.spec.version = 2.6
jar.impl.version = 2.6

View file

@ -1,29 +0,0 @@
<!--
*******************************************************************************
* Copyright (C) 2009, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
-->
<project name="richedit-tests" 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.file" value="${icu4j.richedit-tests.jar}"/>
<target name="build" depends="compile, copy, 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"/>
</project>

View file

@ -1,12 +0,0 @@
Manifest-Version: 1.0
Main-Class: com.ibm.richtext.test.unit.TestAll
Specification-Title: ICU for Java RichEdit Tests
Specification-Version: @SPECVERSION@
Specification-Vendor: ICU
Implementation-Title: ICU for Java RichEdit Tests
Implementation-Version: @IMPLVERSION@
Implementation-Vendor: IBM Corporation
Implementation-Vendor-Id: com.ibm
Copyright-Info: @COPYRIGHT@
Name: com/ibm/richtext/test