ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <umag...@apache.org>
Subject AntTest Test Failure: WinNT 4.0, JDK 1.3.0_02, 1.4.0_b92
Date Fri, 05 Apr 2002 21:26:37 GMT
This exception occurs in WinNT, using JDK 1.4, but not on 1.3...
I didn't see this happening on FreeBSD.

==========================
    [junit] Testcase:
testLogfilePlacement(org.apache.tools.ant.taskdefs.AntTest
):      Caused an ERROR
    [junit] null
    [junit] java.lang.NoSuchMethodError
    [junit]     at
org.apache.tools.ant.taskdefs.AntTest.testLogfilePlacement(An
tTest.java:221)
    [junit]     at java.lang.reflect.Method.invoke(Native Method)
    [junit]     at junit.framework.TestCase.runTest(TestCase.java:166)
    [junit]     at junit.framework.TestCase.runBare(TestCase.java:140)
    [junit]     at junit.framework.TestResult$1.protect(TestResult.java:106)
    [junit]     at
junit.framework.TestResult.runProtected(TestResult.java:124)
    [junit]     at junit.framework.TestResult.run(TestResult.java:109)
    [junit]     at junit.framework.TestCase.run(TestCase.java:131)
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:173)
    [junit]     at junit.framework.TestSuite.run(TestSuite.java:168)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
run(JUnitTestRunner.java:265)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
eInVM(JUnitTask.java:670)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
e(JUnitTask.java:459)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
e(JUnitTask.java:436)
    [junit]     at org.apache.tools.ant.Task.perform(Task.java:313)
    [junit]     at org.apache.tools.ant.Target.execute(Target.java:309)
    [junit]     at org.apache.tools.ant.Target.performTasks(Target.java:334)
    [junit]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1176)

    [junit]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1118
)
    [junit]     at org.apache.tools.ant.Main.runBuild(Main.java:573)
    [junit]     at org.apache.tools.ant.Main.start(Main.java:179)
    [junit]     at org.apache.tools.ant.Main.main(Main.java:201)
    [junit]
    [junit]
==========================

When I change the getProject().*** calls to reference
project.*** in the testLogfilePlacement method, surprisingly,
I get a little further, but I get the following failure on JDK 1.4.
If I leave it as getProject() itself, I still get this error on
JDK 1.3.  When I execute it in JDK 1.2.2, I get this error, but
against the file test2.log.

==========================
    [junit] Testcase:
testLogfilePlacement(org.apache.tools.ant.taskdefs.AntTest
):      Caused an ERROR
    [junit] Unable to delete file
D:\cvsroot\Projects\jakarta-ant\src\etc\testca
ses\taskdefs\test1.log
    [junit]
D:\cvsroot\Projects\jakarta-ant\src\etc\testcases\taskdefs\ant.xml:6
: Unable to delete file
D:\cvsroot\Projects\jakarta-ant\src\etc\testcases\taskde
fs\test1.log
    [junit]     at
org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:272)

    [junit]     at org.apache.tools.ant.Task.perform(Task.java:313)
    [junit]     at org.apache.tools.ant.Target.execute(Target.java:309)
    [junit]     at org.apache.tools.ant.Target.performTasks(Target.java:334)
    [junit]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1176)

    [junit]     at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTes
t.java:187)
    [junit]     at
org.apache.tools.ant.taskdefs.AntTest.tearDown(AntTest.java:8
2)
    [junit]     at junit.framework.TestCase.runBare(TestCase.java:143)
    [junit]     at junit.framework.TestResult$1.protect(TestResult.java:106)
    [junit]     at
junit.framework.TestResult.runProtected(TestResult.java:124)
    [junit]     at junit.framework.TestResult.run(TestResult.java:109)
    [junit]     at junit.framework.TestCase.run(TestCase.java:131)
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:173)
    [junit]     at junit.framework.TestSuite.run(TestSuite.java:168)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
run(JUnitTestRunner.java:265)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
eInVM(JUnitTask.java:670)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
e(JUnitTask.java:459)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execut
e(JUnitTask.java:436)
    [junit]     at org.apache.tools.ant.Task.perform(Task.java:313)
    [junit]     at org.apache.tools.ant.Target.execute(Target.java:309)
    [junit]     at org.apache.tools.ant.Target.performTasks(Target.java:334)
    [junit]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1176)

    [junit]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1118
)
    [junit]     at org.apache.tools.ant.Main.runBuild(Main.java:573)
    [junit]     at org.apache.tools.ant.Main.start(Main.java:179)
    [junit]     at org.apache.tools.ant.Main.main(Main.java:201)
    [junit]
==========================

Cheers,
Magesh

**********************************************
*  You are asking for big trouble and a big  *
*  bill when lawyers are the only ones who   *
*  understand the law.                       *
**********************************************


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


Mime
View raw message