ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject Test of 1.6.2B1 on JDK 1.2
Date Wed, 07 Jul 2004 09:37:11 GMT
I did a test run on my machine using JDK 1.2. HereĀ“s the result.

Jan



Test of Ant 1.6.2Beta1 on W2K and JDK 1.2
=========================================

Resumee:
-----------------------------------------
- some deprecation warnings
- some tests failed:
  - ExecuteOnTest: dont know why
  - JavaTest: redirect problems, seems that property
    ${redirect.out.contents} isnt set
    oh: have seen in the java.xml:
    "redirection testcases don't want to run under junit unless forked"
    then these testcases should be excluded if junit isnt forked.
    But I try using fork later ...
  - AssertionsTest: depends on JDK 1.4+. Because Ant has to be compilable
    on 1.2 this should be excluded if no 1.4 is present.
- all (?) tests failed when -Djunit.fork=true
  "Unable to load default ProjectHelper due to
java.lang.NoClassDefFoundError:
  org/apache/tools/ant/helper/ProjectHelper2"



Environment:
-----------------------------------------
- MS Windows 2000 SP 4 German (5.00.2195)
- Processor: AMD Athlon
- Path=c:\jdk\121_04\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
- JAVA_HOME=c:\jdk\121_04
- Java: java -version
  java version "1.2.1"
  Classic VM (build JDK-1.2.1_004, native threads)
- Codebase: official Src-Distribution from
 
http://cvs.apache.org/dist/ant/v1.6.2beta1/src/apache-ant-1.6.2beta1-src.zip
- Working directory:
C:\downloads\apache-ant-1.6.2beta1-src\apache-ant-1.6.2beta1
- 3rd party libs in %userprofile%\.ant\lib
  29.04.2003  11:47               54.665 activation.jar
  20.06.2004  17:23              171.653 ant-contrib-1.0b1.jar
  29.04.2003  11:47              358.273 antlr.jar
  29.04.2003  11:47              515.920 bcel-5.1.jar
  13.11.2002  13:28              175.348 bsf.jar
  29.04.2003  11:47              212.471 bsh-1.2b7.jar
  14.09.2003  20:40            1.253.518 checkstyle-all.jar
  22.07.2003  17:08            1.585.984 clover.jar
  29.04.2003  11:47              116.083 commons-net-1.0.0.jar
  29.04.2003  11:47              554.467 jacl.jar
  29.04.2003  11:47               65.425 jakarta-oro-2.0.7.jar
  29.04.2003  11:47               29.871 jakarta-regexp-1.2.jar
  29.04.2003  11:47               84.535 jdepend.jar
  29.04.2003  11:47              796.402 jruby.jar
  27.01.2002  19:53              390.767 js.jar
  29.04.2003  11:47            1.920.861 judo.jar
  27.06.2003  08:01              121.070 junit.jar
  29.04.2003  11:47              719.950 jython.jar
  29.04.2003  11:47              305.434 mail.jar
  29.04.2003  11:47              353.970 NetRexxC.jar
  29.04.2003  11:47               36.619 NetRexxR.jar
  22.06.2004  09:41               67.660 pack.jar
  24.06.2004  00:38               73.571 simian.jar
  29.04.2003  11:47               57.857 stylebook-1.0-b2.jar
  29.04.2003  11:47              178.583 tcljava.jar
  11.01.2002  12:13               17.218 which.jar
  29.04.2003  11:47            2.645.149 xalan.jar
  25.07.2003  09:51               47.927 xmltask.jar
  29.04.2003  11:47                6.155 xsltcapplet.jar
  29.04.2003  11:47                2.487 xsltcbrazil.jar
  29.04.2003  11:47                4.335 xsltcejb.jar
  29.04.2003  11:47                3.035 xsltcservlet.jar



Building
-----------------------------------------
- build command:
  >build.bat
- output
  ... Bootstrapping Ant Distribution
  JAVA_HOME=c:\jdk\121_04
  JAVA=c:\jdk\121_04\bin\java
  JAVAC=c:\jdk\121_04\bin\javac
 
CLASSPATH=c:\jdk\121_04\lib\tools.jar;lib\xercesImpl.jar;lib\xml-apis.jar;bu
ild\classes;src\main;

  [...]

  BUILD SUCCESSFUL
  Total time: 46 seconds

  ... Cleaning Up Build Directories

  ... Done Bootstrapping Ant Distribution
  Buildfile: build.xml

  [...]

  dist-lite:

  [...]

  BUILD SUCCESSFUL
  Total time: 1 minute 23 seconds
- some deprecation warnings during compilation



Test
-----------------------------------------
- test command:
  >set ant_home=%cd%\dist
  >dist\bin\ant test -Dtest.haltonfailure=false
- output (only selected lines)
  run-which:
  [which] Which.error=Accessing System.getProperty(...) threw:
java.lang.NullPointerException
  [which] xerces.jar.unknown=c:\jdk\121_04\jre\lib\ext\xerces.jar does not
exist
  [which] Xerces1.version=.not-found
  [which] Xerces2.version=Xerces-J 2.6.2
  [which] ant.jar.ok-present=not from an official release, size:1004288
  [which] Ant.version=Apache Ant version 1.6.2beta1 compiled on July 7 2004

  run-tests:
  [junit] Testcase:
testIgnoreMissing(org.apache.tools.ant.taskdefs.ExecuteOnTest):   Caused an
ERROR
  [junit] condition satisfied
  [junit]
C:\downloads\apache-ant-1.6.2beta1-src\apache-ant-1.6.2beta1\src\etc\testcas
es\taskdefs\exec\apply.xml:335:condition satisfied
  [junit]     at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:139)
  [junit]     at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:230)
  [junit]     at
org.apache.tools.ant.taskdefs.ExecuteOnTest.testIgnoreMissing(ExecuteOnTest.
java:554)

  [junit] Testcase: testRedirect1(org.apache.tools.ant.taskdefs.JavaTest):
Caused an ERROR
  [junit] C:\temp\redirect.out:
  [junit] "${redirect.out.contents}" expected "foo"
  [junit]
C:\downloads\apache-ant-1.6.2beta1-src\apache-ant-1.6.2beta1\src\etc\testcas
es\taskdefs\java.xml:194: C:\temp\redirect.out:
  [junit] "${redirect.out.contents}" expected "foo"
  [junit]     at org.apache.tools.ant.taskdefs.Exit.execute(Compiled Code)
  [junit]     at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:230)
  [junit]     at
org.apache.tools.ant.taskdefs.JavaTest.testRedirect1(JavaTest.java:191)

  [junit] C:\temp\redirect.out:
  [junit] "${redirect.out.contents}" expected "foo"
  [junit]
C:\downloads\apache-ant-1.6.2beta1-src\apache-ant-1.6.2beta1\src\etc\testcas
es\taskdefs\java.xml:194: C:\temp\redirect.out:
  [junit] "${redirect.out.contents}" expected "foo"
  [junit]     at org.apache.tools.ant.taskdefs.Exit.execute(Compiled Code)
  [junit]     at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:230)
  [junit]     at
org.apache.tools.ant.taskdefs.JavaTest.testRedirect2(JavaTest.java:195)

  [junit] Testcase:
testClassname(org.apache.tools.ant.types.AssertionsTest): FAILED
  [junit] Should throw BuildException because 'assertion not thrown in
test-classname' with message containing 'Java returned: 1' (actual message
'Compile failed; see the compiler error output for details.' instead)
  [junit] junit.framework.AssertionFailedError: Should throw BuildException
because 'assertion not thrown in test-classname' with message containing
'Java returned: 1' (actual message 'Compile failed; see the compiler error
output for details.' instead)
  [junit]     at
org.apache.tools.ant.BuildFileTest.expectBuildExceptionContaining(BuildFileT
est.java:292)
  [junit]     at
org.apache.tools.ant.types.AssertionsTest.expectAssertion(AssertionsTest.jav
a:43)
  [junit]     at
org.apache.tools.ant.types.AssertionsTest.testClassname(AssertionsTest.java:
49)

  [junit] Testcase: testDisable(org.apache.tools.ant.types.AssertionsTest):
Caused an ERROR
  [junit] Compile failed; see the compiler error output for details.
  [junit]
C:\downloads\apache-ant-1.6.2beta1-src\apache-ant-1.6.2beta1\src\etc\testcas
es\types\assertions.xml:20: Compile failed; see the compiler error output
for details.
  [junit]     at org.apache.tools.ant.taskdefs.Javac.compile(Compiled Code)
  [junit]     at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:230)
  [junit]     at
org.apache.tools.ant.types.AssertionsTest.testDisable(AssertionsTest.java:61
)

  [junit] Testcase:
testEmptyAssertions(org.apache.tools.ant.types.AssertionsTest):   Caused an
ERROR
  [junit] Compile failed; see the compiler error output for details.
  [junit]
C:\downloads\apache-ant-1.6.2beta1-src\apache-ant-1.6.2beta1\src\etc\testcas
es\types\assertions.xml:20: Compile failed; see the compiler error output
for details.
  [junit]     at org.apache.tools.ant.taskdefs.Javac.compile(Compiled Code)
  [junit]     at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:230)
  [junit]     at
org.apache.tools.ant.types.AssertionsTest.testEmptyAssertions(AssertionsTest
.java:57)

  [junit] Testcase:
testMultipleAssertions(org.apache.tools.ant.types.AssertionsTest):
FAILED
  [junit] Should throw BuildException because 'multiple assertions rejected'
with message containing 'Only one assertion declaration is allowed' (actual
message 'Compile failed; see the compiler error output for details.'
instead)
  [junit] junit.framework.AssertionFailedError: Should throw BuildException
because 'multiple assertions rejected' with message containing 'Only one
assertion declaration is allowed' (actual message 'Compile failed; see the
compiler error output for details.' instead)
  [junit]     at
org.apache.tools.ant.BuildFileTest.expectBuildExceptionContaining(BuildFileT
est.java:292)
  [junit]     at
org.apache.tools.ant.types.AssertionsTest.testMultipleAssertions(AssertionsT
est.java:76)

  [junit] Testcase: testNofork(org.apache.tools.ant.types.AssertionsTest):
Caused an ERROR
  [junit] Compile failed; see the compiler error output for details.
  [junit]
C:\downloads\apache-ant-1.6.2beta1-src\apache-ant-1.6.2beta1\src\etc\testcas
es\types\assertions.xml:20: Compile failed; see the compiler error output
for details.
  [junit]     at org.apache.tools.ant.taskdefs.Javac.compile(Compiled Code)
  [junit]     at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:230)
  [junit]     at
org.apache.tools.ant.BuildFileTest.expectLogContaining(BuildFileTest.java:89
)
  [junit]     at
org.apache.tools.ant.types.AssertionsTest.testNofork(AssertionsTest.java:88)

  [junit] Testcase: testOverride(org.apache.tools.ant.types.AssertionsTest):
FAILED
  [junit] Should throw BuildException because 'assertion not thrown in
test-override' with message containing 'Java returned: 1' (actual message
'Compile failed; see the compiler error output for details.' instead)
  [junit] junit.framework.AssertionFailedError: Should throw BuildException
because 'assertion not thrown in test-override' with message containing
'Java returned: 1' (actual message 'Compile failed; see the compiler error
output for details.' instead)
  [junit]     at junit.framework.Assert.fail(Assert.java:47)
  [junit]     at
org.apache.tools.ant.BuildFileTest.expectBuildExceptionContaining(BuildFileT
est.java:292)
  [junit]     at
org.apache.tools.ant.types.AssertionsTest.expectAssertion(AssertionsTest.jav
a:43)
  [junit]     at
org.apache.tools.ant.types.AssertionsTest.testOverride(AssertionsTest.java:6
5)

  [junit] Testcase:
testOverride2(org.apache.tools.ant.types.AssertionsTest): Caused an ERROR
  [junit] Compile failed; see the compiler error output for details.
  [junit]
C:\downloads\apache-ant-1.6.2beta1-src\apache-ant-1.6.2beta1\src\etc\testcas
es\types\assertions.xml:20: Compile failed; see the compiler error output
for details.
  [junit]     at org.apache.tools.ant.taskdefs.Javac.compile(Compiled Code)
  [junit]     at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:230)
  [junit]     at
org.apache.tools.ant.types.AssertionsTest.testOverride2(AssertionsTest.java:
69)

  [junit] Testcase: testPackage(org.apache.tools.ant.types.AssertionsTest):
FAILED
  [junit] Should throw BuildException because 'assertion not thrown in
test-package' with message containing 'Java returned: 1' (actual message
'Compile failed; see the compiler error output for details.' instead)
  [junit] junit.framework.AssertionFailedError: Should throw BuildException
because 'assertion not thrown in test-package' with message containing 'Java
returned: 1' (actual message 'Compile failed; see the compiler error output
for details.' instead)
  [junit]     at junit.framework.Assert.fail(Assert.java:47)
  [junit]     at
org.apache.tools.ant.BuildFileTest.expectBuildExceptionContaining(BuildFileT
est.java:292)
  [junit]     at
org.apache.tools.ant.types.AssertionsTest.expectAssertion(AssertionsTest.jav
a:43)
  [junit]     at
org.apache.tools.ant.types.AssertionsTest.testPackage(AssertionsTest.java:53
)

  [junit] Testcase:
testReferenceAbuse(org.apache.tools.ant.types.AssertionsTest):    FAILED
  [junit] Should throw BuildException because 'reference abuse rejected'
with message containing 'You must not specify more than one attribute when
using refid' (actual message 'Compile failed; see the compiler error output
for details.'instead)
  [junit] junit.framework.AssertionFailedError: Should throw BuildException
because 'reference abuse rejected' with message containing 'You must not
specify more than one attribute when using refid' (actual message 'Compile
failed; see the compiler error output for details.' instead)
  [junit]     at junit.framework.Assert.fail(Assert.java:47)
  [junit]     at
org.apache.tools.ant.BuildFileTest.expectBuildExceptionContaining(BuildFileT
est.java:292)
  [junit]     at
org.apache.tools.ant.types.AssertionsTest.testReferenceAbuse(AssertionsTest.
java:82)

  BUILD FAILED
 
C:\downloads\apache-ant-1.6.2beta1-src\apache-ant-1.6.2beta1\build.xml:1587:
At least one test has failed.

  Total time: 5 minutes 53 seconds



ReTest
-----------------------------------------
- test command:
  >set ant_home=%cd%\dist
  >dist\bin\ant test -Dtest.haltonfailure=false -Djunit.fork=true
- result:
  Many many "Unable to load default ProjectHelper due to
java.lang.NoClassDefFoundError:
  org/apache/tools/ant/helper/ProjectHelper2" messages ...

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message