DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20215>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20215 System.getProperties() ------- Additional Comments From [EMAIL PROTECTED] 2003-05-28 11:44 ------- as jose said, i modify the the class. import java.util.*; public class ListSystemProperties { public static void main(String[] args) { Properties props = System.getProperties(); // Set keys = new TreeSet(props.keySet()); // for sorting keys for ( Enumeration i = props.propertyNames(); i.hasMoreElements ();) { String key = (String)i.nextElement(); System.out.println(key + "=" + props.get(key)); } } } test with fork="true" in 1.3.1: D:\java\sandbox\thomas\test>ant -v -f test.xml Apache Ant version 1.5.3 compiled on April 9 2003 Buildfile: test.xml Detected Java version: 1.3 in: P:\jdk\jre Detected OS: Windows 2000 parsing buildfile test.xml with URI = file:D:/java/sandbox/thomas/test/test.xml Project base dir set to: D:\java\sandbox\thomas\test Build sequence for target `test' is [test] Complete build sequence is [test] test: [java] Executing 'P:\jdk\jre\bin\java.exe' with arguments: [java] '-classpath' [java] 'D:\java\sandbox\thomas\test\obj;P:\jdk\jre\lib\i18n.jar' [java] 'ListSystemProperties' [java] [java] The ' characters around the executable and arguments are [java] not part of the command. [java] java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition [java] sun.boot.library.path=P:\jdk\jre\bin [java] java.vm.version=1.3.1_06-b01 ...... [java] user.timezone= // still missing!!! [java] file.encoding=MS950 // correct [java] user.language=zh // correct [java] user.region=TW // correct test with fork="true" in 1.4.1: D:\java\sandbox\thomas\test>ant -v -f test.xml Apache Ant version 1.5.3 compiled on April 9 2003 Buildfile: test.xml Detected Java version: 1.4 in: P:\jdk\jre Detected OS: Windows 2000 parsing buildfile test.xml with URI = file:D:/java/sandbox/thomas/test/test.xml Project base dir set to: D:\java\sandbox\thomas\test Build sequence for target `test' is [test] Complete build sequence is [test] test: dropping P:\jdk\jre\lib\i18n.jar from path as it doesn't exist dropping P:\jdk\jre\lib\i18n.jar from path as it doesn't exist [java] Executing 'P:\jdk\jre\bin\java.exe' with arguments: [java] '-classpath' [java] 'D:\java\sandbox\thomas\test\obj' [java] 'sandbox.thomas.test.ListSystemProperties' [java] [java] The ' characters around the executable and arguments are [java] not part of the command. dropping P:\jdk\jre\lib\i18n.jar from path as it doesn't exist dropping P:\jdk\jre\lib\i18n.jar from path as it doesn't exist [java] java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition [java] sun.boot.library.path=P:\jdk\jre\bin [java] java.vm.version=1.4.1_02-b06 ...... [java] user.country=US // shuold be user.country=TW [java] user.timezone= // shuold be user.timezone=GMT+08:00 [java] file.encoding=Cp1252 // should be file.encoding=MS950 [java] user.language=en // should be user.language=zh