On 12/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>It seems that the current ant code triggers bugs in jdk1.2.
>
>We probally should say that ant 1.7.0 does not support
>jdk1.2 due to bugs in jdk1.2, and try to find out what is
>triggering the bug - hopefully to get a work-a-round for ant 1.7.1.
>
>Have you tried using green threads? (were they still supported
>for jdk1.2 ?)
>
>Peter
Oh - I just read a note in our manual ;-)
manual/platform.html "Java 1.2" ... so I try the third option
Add -Djava.compiler=NONE to the value of your ANT_OPTS environment
variable. This turns the JIT off.
The comment was added 2 years one month ago by stevel!
"These are caused by subtle incompatibilities between the Java1.4+ compiled
release; bugs in the Java runtime that Sun won't fix."
Peter
The short sample buildfile works.
Jan
"ant -f fetch.xml -p"
---------------------
works
"ant -f fetch.xml -Dhttp.proxyHost=ourProxy -Dhttp.proxyPort=8080
-Ddest=optional"
------------------------------------------------------------------------
---------
BUILD FAILED
get-m2.xml:85: java.net.UnknownHostException: ibiblio.org
"ant -f fetch.xml -autoproxy -Ddest=optional"
---------------------------------------------
The same error - .... ok. "-autoproxy" only works on Java5+ - but no
message?
Other scenario ... changed to the src-distro directory.
ANT_OPTS=-Djava.compiler=NONE
JAVA_HOME=c:\jdk\121_04
OS=Windows_NT
Path=c:\jdk\121_04\bin;C:\Programme\Perl\bin\;C:\WINNT\system32;C:\WINNT
;C:\WINNT\System32\Wbem;c:\bin;C:\ant\downloads\apache-ant-1.7.0-bin\apa
che-ant-1.7.0\bin
Copied JUnit 3.8 into lib\optional
"ant test -nouserlib -lib lib\optional"
---------------------------------------
* deprecation warnings under JDK 1.2 while compiling
* UTF-16+ascii problems: EchoTest, ExecuteJavaTest, FixCrLfTest,
ReaderInputStreamTest
* no regexp matcher: ManifestClassPathTest, EchoPropertiesTest
* rmic: RmicAdvancedTest
compile-tests:
[javac] Compiling 266 source files to
C:\ant\downloads\apache-ant-1.7.0-src\apache-ant-1.7.0\build\testcases
[javac] Note: 11 files use or override a deprecated API.
Recompile with "-deprecation" for details.
junit-batch:
[...]
[junit] Testcase:
testUTF16Encoding(org.apache.tools.ant.taskdefs.EchoTest): Caused
an ERROR
[junit] java.io.UnsupportedEncodingException: UTF-16
[junit]
C:\ant\downloads\apache-ant-1.7.0-src\apache-ant-1.7.0\src\etc\testcases
\taskdefs\echo.xml:71: java.io.UnsupportedEncodingException: UTF-16
[junit] at
org.apache.tools.ant.taskdefs.Echo.execute(Echo.java:75)
[junit] --- Nested Exception ---
[junit] java.io.UnsupportedEncodingException: UTF-16
[junit] at
sun.io.Converters.getConverterClass(Converters.java:97)
[junit] at
sun.io.Converters.newConverter(Converters.java:128)
[junit] at
sun.io.CharToByteConverter.getConverter(CharToByteConverter.java:71)
[junit] at
java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:78)
[junit] at
org.apache.tools.ant.taskdefs.Echo.execute(Echo.java:69)
[...]
[junit] Testcase:
testNoTimeOutForked(org.apache.tools.ant.taskdefs.ExecuteJavaTest):
FAILED
[junit] process should not have been killed
[junit] junit.framework.AssertionFailedError: process should not
have been killed
[junit] at junit.framework.Assert.fail(Assert.java:47)
[junit] at junit.framework.Assert.assertTrue(Assert.java:20)
[junit] at
org.apache.tools.ant.taskdefs.ExecuteJavaTest.testNoTimeOutForked(Execut
eJavaTest.java:96)
[...]
[junit] Testcase:
testOutputEncoding(org.apache.tools.ant.taskdefs.FixCrLfTest): Caused
an ERROR
[junit] java.io.UnsupportedEncodingException: ascii
[junit]
C:\ant\downloads\apache-ant-1.7.0-src\apache-ant-1.7.0\src\etc\testcases
\taskdefs\fixcrlf\build.xml:124: java.io.UnsupportedEncodingException:
ascii
[junit] at
org.apache.tools.ant.taskdefs.FixCRLF.processFile(FixCRLF.java:371)
[junit] at
org.apache.tools.ant.taskdefs.FixCRLF.execute(FixCRLF.java:300)
[junit] --- Nested Exception ---
[junit] java.io.UnsupportedEncodingException: ascii
[junit] at
sun.io.Converters.getConverterClass(Converters.java:97)
[junit] at
sun.io.Converters.newConverter(Converters.java:128)
[junit] at
sun.io.CharToByteConverter.getConverter(CharToByteConverter.java:71)
[junit] at
java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:78)
[junit] at
org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:
349)
[junit] at
org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:508)
[junit] at
org.apache.tools.ant.taskdefs.FixCRLF.processFile(FixCRLF.java:347)
[junit] at
org.apache.tools.ant.taskdefs.FixCRLF.execute(FixCRLF.java:300)
[...]
[junit] Testsuite:
org.apache.tools.ant.taskdefs.ManifestClassPathTest
[junit] Tests run: 13, Failures: 0, Errors: 2, Time elapsed:
9,614 sec
[junit]
[junit] ------------- Standard Output ---------------
[junit] Test with international characters skipped under pre 1.4
jvm.
[junit] Test with international characters skipped under pre 1.4
jvm.
[junit] ------------- ---------------- ---------------
[junit] Testcase:
testPseudoTahoeNested(org.apache.tools.ant.taskdefs.ManifestClassPathTes
t): Caused an ERROR
[junit] No supported regular expression matcher found
[junit]
C:\ant\downloads\apache-ant-1.7.0-src\apache-ant-1.7.0\src\etc\testcases
\taskdefs\manifestclasspath.xml:95: No supported regular expression
matcher found
[...]
[junit] Testcase:
testPseudoTahoeRefid(org.apache.tools.ant.taskdefs.ManifestClassPathTest
): Caused an ERROR
[junit] No supported regular expression matcher found
[junit]
C:\ant\downloads\apache-ant-1.7.0-src\apache-ant-1.7.0\src\etc\testcases
\taskdefs\manifestclasspath.xml:88: No supported regular expression
matcher found
[...]
[junit] Testcase:
testAntClasspath(org.apache.tools.ant.taskdefs.RmicAdvancedTest): Caused
an ERROR
[junit] Rmic failed; see the compiler error output for details.
[junit]
C:\ant\downloads\apache-ant-1.7.0-src\apache-ant-1.7.0\src\etc\testcases
\taskdefs\rmic\rmic.xml:232: Rmic failed; see the compiler error output
for details.
[junit] at
org.apache.tools.ant.taskdefs.Rmic.execute(Rmic.java:545)
[junit] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[...]
[junit] Testsuite:
org.apache.tools.ant.taskdefs.optional.EchoPropertiesTest
[junit] Tests run: 19, Failures: 0, Errors: 1, Time elapsed:
2,804 sec
[junit] Testcase:
testWithRegex(org.apache.tools.ant.taskdefs.optional.EchoPropertiesTest)
: Caused an ERROR
[...]
[junit] No supported regular expression matcher found
[junit]
C:\ant\downloads\apache-ant-1.7.0-src\apache-ant-1.7.0\src\etc\testcases
\taskdefs\optional\echoproperties.xml:106: No supported regular
expression matcher found
[...]
[junit] Testsuite:
org.apache.tools.ant.util.ReaderInputStreamTest
[junit] Tests run: 5, Failures: 0, Errors: 3, Time elapsed:
3,996 sec
[junit]
[junit] Testcase:
testPreample(org.apache.tools.ant.util.ReaderInputStreamTest): Caused
an ERROR
[junit] utf-16
[junit] java.io.UnsupportedEncodingException: utf-16
[junit] at
sun.io.Converters.getConverterClass(Converters.java:97)
[junit] at
sun.io.Converters.newConverter(Converters.java:128)
[junit] at
sun.io.CharToByteConverter.getConverter(CharToByteConverter.java:71)
[junit] at java.lang.String.getCTBConverter(String.java:151)
[junit] at java.lang.String.getBytes(String.java:659)
[junit] at
org.apache.tools.ant.util.ReaderInputStreamTest.testPreample(ReaderInput
StreamTest.java:73)
---------------------------------------------------------------------
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]