AW: AW: svn commit: r486146 - /ant/core/trunk/src/main/org/apache/tools/ant/util/StringUtils.java
My build results on https://svn.apache.org/repos/asf/ant/core/tags/ANT_170/ core_170>java -version Java-Home: c:\jdk\121_04 java version "1.2.1" Classic VM (build JDK-1.2.1_004, native threads) core_170>build dist-lite test -nouserlib ... Bootstrapping Ant Distribution ... Compiling Ant Classes Note: 5 files use or override a deprecated API. Recompile with "-deprecation" for details. 1 warning ... Building Ant Distribution Buildfile: build.xml build: Created dir: C:\ant\svn-repository\ant\core_170\build\lib Compiling 224 source files to C:\ant\svn-repository\ant\core_170\build\classes Note: 3 files use or override a deprecated API. Recompile with "-deprecation" for details. compile-tests: Created dir: C:\ant\svn-repository\ant\core_170\build\testcases Compiling 266 source files to C:\ant\svn-repository\ant\core_170\build\testcases Note: 11 files use or override a deprecated API. Recompile with "-deprecation" for details. ... Done Bootstrapping Ant Distribution Buildfile: build.xml build: [mkdir] Created dir: C:\ant\svn-repository\ant\core_170\build\classes [javac] Compiling 671 source files to C:\ant\svn-repository\ant\core_170\build\classes [javac] Note: 8 files use or override a deprecated API. Recompile with "-deprecation" for details. compile-tests: ---> no output dump-sys-properties: [echo] java.vm.info=build JDK-1.2.1_004, native threads, symcjit [echo] java.vm.name=Classic VM [echo] java.vm.vendor=Sun Microsystems Inc. [echo] java.vm.version=1.2.1 [echo] os.arch=x86 [echo] os.name=Windows NT [echo] os.version=5.1 [echo] file.encoding=Cp1252 [echo] user.language=de [echo] ant.version=Apache Ant version 1.7.0 compiled on December 13 2006 junit-batch: [mkdir] Created dir: C:\ant\svn-repository\ant\core_170\build\testcases\xml [junit] Testsuite: org.apache.tools.ant.AntClassLoaderDelegationTest BUILD FAILED C:\ant\svn-repository\ant\core_170\build.xml:1759: The following error occurred while executing this line: C:\ant\svn-repository\ant\core_170\build.xml:1641: java.lang.IllegalMonitorStateException: current thread not owner >-Ursprüngliche Nachricht- >Von: Peter Reilly [mailto:[EMAIL PROTECTED] >It looks like we have valid jdk1.2 bytecode, however we >trigger bugs in the jdk1.2 implementation. > >I am not too sure how to handle this. >Peter It seems that it becomes more and more difficult for us (especially the build managers) to do a build+test on a JDK 1.2. So the idea of dropping JDK1.2-supprt pops up again ... Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: svn commit: r486146 - /ant/core/trunk/src/main/org/apache/tools/ant/util/StringUtils.java
It looks like we have valid jdk1.2 bytecode, however we trigger bugs in the jdk1.2 implementation. I am not too sure how to handle this. Peter On 12/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> >>build.bat dist-lite test -nouserlib >> >> * Final didnt compile because of Kevs changes in StringUtils. His last modification >> rev 486465 - remove Java1.4 specific methods from parseHumanSizes >> didnt come into the final build. > >That's weird as I'm getting the revision tag for 1.7.0 as >486472, the binary from Antoine's page runs fine, so how did >he compile it? Maybe with Java 1.4 and target="1.2" ? I try to compile the Ant 1.7.0 sources with the Ant 1.7.0 binaries on a JDK-1.2.1_004 ... SRC> ant -p Buildfile: build.xml A nonfatal internal JIT (3.00.078(x)) error 'chgTarg: Conditional' has occurred in : 'org/apache/tools/ant/Project.fireMessageLoggedEvent (Lorg/apache/tools/ant/BuildEvent;Ljava/lang/String;I)V': Interpr eting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi A nonfatal internal JIT (3.00.078(x)) error 'chgTarg: Conditional' has occurred in : 'org/apache/tools/ant/util/FileUtils.fromURI (Ljava/lang/String;)Ljava/lang/String;': Interpreting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi [property] java.lang.IllegalMonitorStateException: current thread not owner [property] at org.apache.tools.ant.taskdefs.StreamPumper.run(Compiled Code) [property] at java.lang.Thread.run(Thread.java:479) [property] java.lang.IllegalMonitorStateException: current thread not owner [property] at org.apache.tools.ant.taskdefs.StreamPumper.run(Compiled Code) [property] at java.lang.Thread.run(Thread.java:479) SRC> ant dist-lite -nouserlib Buildfile: build.xml A nonfatal internal JIT (3.00.078(x)) error 'chgTarg: Conditional' has occurred in : 'org/apache/tools/ant/Project.fireMessageLoggedEvent (Lorg/apache/tools/ant/BuildEvent;Ljava/lang/String;I)V': Interpr eting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi A nonfatal internal JIT (3.00.078(x)) error 'chgTarg: Conditional' has occurred in : 'org/apache/tools/ant/util/FileUtils.fromURI (Ljava/lang/String;)Ljava/lang/String;': Interpreting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi [property] java.lang.IllegalMonitorStateException: current thread not owner [property] at org.apache.tools.ant.taskdefs.StreamPumper.run(Compiled Code) [property] at java.lang.Thread.run(Thread.java:479) [property] java.lang.IllegalMonitorStateException: current thread not owner [property] at org.apache.tools.ant.taskdefs.StreamPumper.run(Compiled Code) Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: svn commit: r486146 - /ant/core/trunk/src/main/org/apache/tools/ant/util/StringUtils.java
Hi Antoine, So the label ANT_170 is inaccurate for StringUtils.java. This should be the only file, because I had created a brand new working copy for this build right before. The tag in svn is fine as I've just checked out ANT_170 and the change I made was in there, so it's only the version that you uploaded to http://people.apache.org/~antoine/apache-ant-1.7.0/source/ That is slightly out of date. I'm sorry for causing this, if I'd have gotten up a little earlier this morning it wouldn't have happened :( Kev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: svn commit: r486146 - /ant/core/trunk/src/main/org/apache/tools/ant/util/StringUtils.java
Hi, A look at my working copy of StringUtils.java tells me it is the version right before the change. The output of svn -uv status is : antoine-levy-lamberts-computer:~/dev/asf/ant-core antoine$ svn status -uv src/main/org/apache/tools/ant/util/StringUtils.java * 486453 486146 kevj src/main/org/apache/tools/ ant/util/StringUtils.java Status against revision: 486551 The * in the output of svn status indicates also that a newer file exists on the server. So the label ANT_170 is inaccurate for StringUtils.java. This should be the only file, because I had created a brand new working copy for this build right before. Regards, Antoine On Dec 13, 2006, at 3:34 AM, Kevin Jackson wrote: Havent tried it. Just simetimes on head. I'll do a quick test on 1.7.0RC1 and 1.7.0 ... build.bat dist-lite test -nouserlib * RC1 compiled, but no tests were run. (???) * Final didnt compile because of Kevs changes in StringUtils. His last modification rev 486465 - remove Java1.4 specific methods from parseHumanSizes didnt come into the final build. That's weird as I'm getting the revision tag for 1.7.0 as 486472, the binary from Antoine's page runs fine, so how did he compile it? Just getting src now to check what was in/out when Antoine published it on hi spage Kev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: svn commit: r486146 - /ant/core/trunk/src/main/org/apache/tools/ant/util/StringUtils.java
>Since Jan has an (extremely) old jdk handy, could you check >the tagged svn version? Ok - I'll check https://svn.apache.org/repos/asf/ant/core/tags/ANT_170 out and try a build (-nouserlib as my libs are not very well configured...) Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: svn commit: r486146 - /ant/core/trunk/src/main/org/apache/tools/ant/util/StringUtils.java
Hi all, Ok, tagged version in svn (ANT_170) is fine and contains the final change I made to StringUtils to remove the 1.4+ regex methods I was using. The version of the source published on Antoines page doesn't contain this change. So for the source on Antoines apache page (http://people.apache.org/~antoine/apache-ant-1.7.0/source/) - Jan is correct it will not compile on JDKs pre 1.4 For the tagged version in svn, it should compile on JDKs pre 1.4 Since Jan has an (extremely) old jdk handy, could you check the tagged svn version? Thanks Kev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: svn commit: r486146 - /ant/core/trunk/src/main/org/apache/tools/ant/util/StringUtils.java
>> >>build.bat dist-lite test -nouserlib >> >> * Final didnt compile because of Kevs changes in StringUtils. His last modification >> rev 486465 - remove Java1.4 specific methods from parseHumanSizes >> didnt come into the final build. > >That's weird as I'm getting the revision tag for 1.7.0 as >486472, the binary from Antoine's page runs fine, so how did >he compile it? Maybe with Java 1.4 and target="1.2" ? I try to compile the Ant 1.7.0 sources with the Ant 1.7.0 binaries on a JDK-1.2.1_004 ... SRC> ant -p Buildfile: build.xml A nonfatal internal JIT (3.00.078(x)) error 'chgTarg: Conditional' has occurred in : 'org/apache/tools/ant/Project.fireMessageLoggedEvent (Lorg/apache/tools/ant/BuildEvent;Ljava/lang/String;I)V': Interpr eting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi A nonfatal internal JIT (3.00.078(x)) error 'chgTarg: Conditional' has occurred in : 'org/apache/tools/ant/util/FileUtils.fromURI (Ljava/lang/String;)Ljava/lang/String;': Interpreting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi [property] java.lang.IllegalMonitorStateException: current thread not owner [property] at org.apache.tools.ant.taskdefs.StreamPumper.run(Compiled Code) [property] at java.lang.Thread.run(Thread.java:479) [property] java.lang.IllegalMonitorStateException: current thread not owner [property] at org.apache.tools.ant.taskdefs.StreamPumper.run(Compiled Code) [property] at java.lang.Thread.run(Thread.java:479) SRC> ant dist-lite -nouserlib Buildfile: build.xml A nonfatal internal JIT (3.00.078(x)) error 'chgTarg: Conditional' has occurred in : 'org/apache/tools/ant/Project.fireMessageLoggedEvent (Lorg/apache/tools/ant/BuildEvent;Ljava/lang/String;I)V': Interpr eting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi A nonfatal internal JIT (3.00.078(x)) error 'chgTarg: Conditional' has occurred in : 'org/apache/tools/ant/util/FileUtils.fromURI (Ljava/lang/String;)Ljava/lang/String;': Interpreting method. Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi [property] java.lang.IllegalMonitorStateException: current thread not owner [property] at org.apache.tools.ant.taskdefs.StreamPumper.run(Compiled Code) [property] at java.lang.Thread.run(Thread.java:479) [property] java.lang.IllegalMonitorStateException: current thread not owner [property] at org.apache.tools.ant.taskdefs.StreamPumper.run(Compiled Code) Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: svn commit: r486146 - /ant/core/trunk/src/main/org/apache/tools/ant/util/StringUtils.java
Hi, I compiled using JDK 1.5 Regards, Antoine On Dec 13, 2006, at 3:34 AM, Kevin Jackson wrote: Havent tried it. Just simetimes on head. I'll do a quick test on 1.7.0RC1 and 1.7.0 ... build.bat dist-lite test -nouserlib * RC1 compiled, but no tests were run. (???) * Final didnt compile because of Kevs changes in StringUtils. His last modification rev 486465 - remove Java1.4 specific methods from parseHumanSizes didnt come into the final build. That's weird as I'm getting the revision tag for 1.7.0 as 486472, the binary from Antoine's page runs fine, so how did he compile it? Just getting src now to check what was in/out when Antoine published it on hi spage Kev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: svn commit: r486146 - /ant/core/trunk/src/main/org/apache/tools/ant/util/StringUtils.java
Havent tried it. Just simetimes on head. I'll do a quick test on 1.7.0RC1 and 1.7.0 ... build.bat dist-lite test -nouserlib * RC1 compiled, but no tests were run. (???) * Final didnt compile because of Kevs changes in StringUtils. His last modification rev 486465 - remove Java1.4 specific methods from parseHumanSizes didnt come into the final build. That's weird as I'm getting the revision tag for 1.7.0 as 486472, the binary from Antoine's page runs fine, so how did he compile it? Just getting src now to check what was in/out when Antoine published it on hi spage Kev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: svn commit: r486146 - /ant/core/trunk/src/main/org/apache/tools/ant/util/StringUtils.java
>Hi Jan, > >were you able to run the official 1.7.0 RC with JDK-1.2.1? Havent tried it. Just simetimes on head. I'll do a quick test on 1.7.0RC1 and 1.7.0 ... build.bat dist-lite test -nouserlib * RC1 compiled, but no tests were run. (???) * Final didnt compile because of Kevs changes in StringUtils. His last modification rev 486465 - remove Java1.4 specific methods from parseHumanSizes didnt come into the final build. Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: svn commit: r486146 - /ant/core/trunk/src/main/org/apache/tools/ant/util/StringUtils.java
On Tue, 12 Dec 2006, [EMAIL PROTECTED] wrote: Doesnt work on my JDK-1.2.1_004 Hi Jan, were you able to run the official 1.7.0 RC with JDK-1.2.1? Martijn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: svn commit: r486146 - /ant/core/trunk/src/main/org/apache/tools/ant/util/StringUtils.java
Doesnt work on my JDK-1.2.1_004 ... Compiling Ant Classes src\main\org\apache\tools\ant\util\StringUtils.java:205: Method matches(java.lang.String) not found in class java.lang.String. if(humanSize.matches(regex)) { ^ src\main\org\apache\tools\ant\util\StringUtils.java:222: Method matches(java.lang.String) not found in class java.lang.String. } else if(humanSize.matches("\\d+")) { Jan >-Ursprüngliche Nachricht- >Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > >URL: http://svn.apache.org/viewvc?view=rev&rev=486146 >Log: >- add Human Readable file size 'parsing' method > >Modified: >ant/core/trunk/src/main/org/apache/tools/ant/util/StringUtils.java > >ant/core/trunk/src/main/org/apache/tools/ant/util/StringUtils.java (original) >+++ ant/core/trunk/src/main/org/apache/tools/ant/util/StringUtils.java >+++ Tue Dec 12 05:57:36 2006 >@@ -186,4 +186,43 @@ > } > return b.toString(); > } >+ >+/** >+ * Takes a human readable size representation eg 10K >+ * a long value. Doesn't support 1.1K or other rational values. >+ * @param humanSize >+ * @return a long value representation >+ * @throws Exception >+ * @since Ant 1.7 >+ */ >+public static long parseHumanSizes(String humanSize) >throws Exception { >+ final long KILOBYTE = 1024; >+ final long MEGABYTE = KILOBYTE * 1024; >+ final long GIGABYTE = MEGABYTE * 1024; >+ final long TERABYTE = GIGABYTE * 1024; >+ final long PETABYTE = TERABYTE * 1024; >+ String regex = "\\d+[K|M|G|T|P]"; >+ if(humanSize.matches(regex)) { >+ char c = humanSize.charAt(humanSize.length()-1); >+ long value = >Long.valueOf(humanSize.substring(0, humanSize.length()-1)).longValue(); >+ switch (c) { >+ case 'K': >+ return value * KILOBYTE; >+ case 'M': >+ return value * MEGABYTE; >+ case 'G': >+ return value * GIGABYTE; >+ case 'T': >+ return value * TERABYTE; >+ case 'P': >+ return value * PETABYTE; >+ default: >+ return value; >+ } >+ } else if(humanSize.matches("\\d+")) { >+ return Long.parseLong(humanSize); >+ } else { >+ throw new Exception("Couldn't parse string: >"+humanSize); >+ } >+} > } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]