ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juergen Damke" <DA...@de.ibm.com>
Subject call a JVM using different locales in one Build
Date Fri, 03 Aug 2001 15:40:04 GMT

I've problems using several locals in one build.
I create a master build.xml from which I call another xml file
with different locale definitions.

        <ant antfile="${Wps.bld.dir}/build/SearchIndex.xml"
                 dir="${Wps.doc.dir}/en/InfoCenter"
                 target="BuildIndex">
            <property name="InfoCenter.dir" value="
${Wps.doc.dir}/en/InfoCenter" />
            <property name="Search.locale"  value="en_US"/>
        </ant>
        <ant antfile="${Wps.bld.dir}/build/SearchIndex.xml"
                 dir="${Wps.doc.dir}/zh/InfoCenter"
                 target="BuildIndex">
            <property name="InfoCenter.dir" value="
${Wps.doc.dir}/zh/InfoCenter" />
            <property name="Search.locale"  value="zh_CN"/>
        </ant>

SearchIndex.xml contains the java call:

                 <java classname="com.sun.java.help.search.Indexer"
                   fork="yes">
               <arg line="-locale ${Search.locale}"/>
               <arg value="-verbose"/>
               <arg line="-logfile ${Search.log}"/>
          <classpath>
                <pathelement location="${InfoCenter.dir}/"/>
                <pathelement path="${Wps.srclib.dir}/jhall.jar"/>
          </classpath>
          <sysproperty key="LANG"   value="${Search.locale}"/>
             <sysproperty key="LC_ALL" value="${Search.locale}"/>
     </java>

Problem is, that  I do not know with which locale the JVM ist really
called. Even the -verbose Ant
parameter does not show that in the log.

>From the results the created chinese SearchIndex does not work and only
shows garbage
on an chinese system.

BTW: The build Machine is AIX 4.33 with all locales installed.

Ideas ?

J├╝rgen Damke
______________________________________________________________________
IBM EL ADS PvC Solutions 2, Dept 6547
URL: http://www-4.ibm.com/software/webservers/portal/


Mime
View raw message