ICU-2180 fix icu4j javadoc instructions in build.xml to work on ant 1.5

X-SVN-Rev: 10274
This commit is contained in:
Doug Felt 2002-11-15 22:40:16 +00:00
parent ee96dfa7ac
commit dcc3d2715e

View File

@ -6,8 +6,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/build.xml,v $
* $Date: 2002/08/03 07:43:18 $
* $Revision: 1.54 $
* $Date: 2002/11/15 22:40:16 $
* $Revision: 1.55 $
*
*******************************************************************************
* This is the ant build file for ICU4J. See readme.html for more information.
@ -69,11 +69,28 @@
<!-- note must not have '/' before 'com' in srcfiles includes arg! -->
<srcfiles dir="${build.dir}" includes="com/ibm/icu/impl/data/LocaleElements_index.class"/>
</uptodate>
<property name="doc.params" value=""/>
<condition property="doc.params"
value="-breakiterator -tag draft:a:&quot;Draft&quot; -tag internal:X:&quot;Internal&quot;">
<echo message="java home: ${java.home}"/>
<echo message="java version: ${java.version}"/>
<echo message="ant java version: ${ant.java.version}"/>
<echo message="${ant.version}"/>
<!-- It's a real pain to set properties conditionally.
Ant 1.5 isn't really any better than 1.4, in fact 1.5 enforces that
properties are write-once so you can't even set a default and then
override it, which we used to do for Ant 1.4. -->
<condition property="version.1.4.or.higher">
<or>
<equals arg1="${ant.java.version}" arg2="1.4"/>
</or>
</condition>
<condition property="doc.params"
value="-breakiterator -tag draft:a:&quot;Draft&quot; -tag internal:X:&quot;Internal&quot; -tag stable:a:&quot;Stable&quot;">
<equals arg1="${version.1.4.or.higher}" arg2="true"/>
</condition>
<condition property="doc.params"
value="">
<equals arg1="${version.1.4.or.higher}" arg2="false"/>
</condition>
<echo message="javadoc: ${doc.params}"/>
</target>
<!-- build everything but dist-related stuff -->