ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <levylamb...@tiscali-dsl.de>
Subject Re: JAR update="true" bug
Date Fri, 14 Feb 2003 16:34:01 GMT
Martin,
I cannot reproduce your problem. I have run the JarTest
(org.apache.tools.ant.taskdefs.JarTest) against the build of the 13th of
Feb, and I do not encounter this problem of locked jar file, which I know
from some days in January.

Back in Jan, one could see on Win2K updating of a jarfile built in the same
ant run was also failing like in your stack trace :

file:///E:/Liberica/Deployment/ApacheAnt/Build/BuildFiles/build-inventIX.xml
> :305: Unable to rename old file to temporary file
>         at org.apache.tools.ant.taskdefs.Zip.executeMain(Zip.java:399)
>         at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:323)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:227)
>         at org.apache.tools.ant.Task.perform(Task.java:388)
>         at org.apache.tools.ant.Target.execute(Target.java:309)
>         at org.apache.tools.ant.Target.performTasks(Target.java:336)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1389)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1263)
>         at org.apache.tools.ant.Main.runBuild(Main.java:611)
>         at org.apache.tools.ant.Main.start(Main.java:198)
>         at org.apache.tools.ant.Main.main(Main.java:245)


The JarTest test suite was then failing at
testRecreateWithUpdateAdditionalFiles.

Try this (ant -version) to make sure which version you are using :


sample output on my computer :

$ ant -version
Apache Ant version 1.6alpha compiled on February 10 2003

here my test results (I get the same results with the fresh code from CVS
and with a build of Feb 10, 2003)

$ ant -Dtestcase=org.apache.tools.ant.taskdefs.JarTest run-single-test

Buildfile: build.xml
prepare:
check_for_optional_packages:
build:
     [copy] Copying 2 files to C:\dev\gnu\ant\build\classes
compile-tests:
run-single-test-only:
    [junit] Testsuite: org.apache.tools.ant.taskdefs.JarTest
    [junit] Tests run: 19, Failures: 0, Errors: 1, Time elapsed: 40,759 sec
    [junit] Testcase: test1 took 0,11 sec
    [junit] Testcase: test2 took 0,03 sec
    [junit] Testcase: test3 took 0,07 sec
    [junit] Testcase: test4 took 0,11 sec
    [junit] Testcase: testNoRecreateWithoutUpdate took 2,614 sec
    [junit] Testcase: testNoRecreateWithUpdate took 2,583 sec
    [junit] Testcase: testRecreateWithoutUpdateAdditionalFiles took 2,985
sec
    [junit] Testcase: testRecreateWithUpdateAdditionalFiles took 2,914 sec
    [junit] Testcase: testRecreateWithoutUpdateNewerFile took 2,614 sec
    [junit] Testcase: testRecreateWithUpdateNewerFile took 2,603 sec
    [junit] Testcase: testManifestStaysIntact took 3,205 sec
    [junit]  Caused an ERROR
    [junit] Unable to delete file
C:\dev\gnu\ant\src\etc\testcases\taskdefs\jartmp\manifest

    [junit] file:///C:/dev/gnu/ant/src/etc/testcases/taskdefs/jar.xml:167:
Unable to delete file
C:\dev\gnu\ant\src\etc\testcases\taskdefs\jartmp\manifest

    [junit]  at
org.apache.tools.ant.taskdefs.Delete.removeDir(Delete.java:537)
    [junit]  at
org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:476)
    [junit]  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:227)
    [junit]  at org.apache.tools.ant.Task.perform(Task.java:388)
    [junit]  at org.apache.tools.ant.Target.execute(Target.java:309)
    [junit]  at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [junit]  at
org.apache.tools.ant.Project.executeTarget(Project.java:1389)
    [junit]  at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:265)
    [junit]  at
org.apache.tools.ant.taskdefs.JarTest.tearDown(JarTest.java:79)
    [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(JUnitTestRu
nner.java:323)
    [junit]  at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask
.java:861)
    [junit]  at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:552)
    [junit]  at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:528)
    [junit]  at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:227)
    [junit]  at org.apache.tools.ant.Task.perform(Task.java:388)
    [junit]  at org.apache.tools.ant.Target.execute(Target.java:309)
    [junit]  at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [junit]  at
org.apache.tools.ant.Project.executeTarget(Project.java:1389)
    [junit]  at
org.apache.tools.ant.Project.executeTargets(Project.java:1263)
    [junit]  at org.apache.tools.ant.Main.runBuild(Main.java:611)
    [junit]  at org.apache.tools.ant.Main.start(Main.java:198)
    [junit]  at org.apache.tools.ant.Main.main(Main.java:245)

    [junit] Testcase: testManifestStaysIntactTestcase:
testNoRecreateBasedirExcludesWithUpdate took 2,594 sec
    [junit] Testcase: testNoRecreateBasedirExcludesWithoutUpdate took 2,593
sec
    [junit] Testcase: testNoRecreateZipfilesetExcludesWithUpdate took 2,604
sec
    [junit] Testcase: testNoRecreateZipfilesetExcludesWithoutUpdate took
2,604 sec
    [junit] Testcase: testRecreateZipfilesetWithoutUpdateAdditionalFiles
took 2,604 sec
    [junit] Testcase: testRecreateZipfilesetWithUpdateAdditionalFiles took
2,633 sec
    [junit] Testcase: testRecreateZipfilesetWithoutUpdateNewerFile took
2,614 sec
    [junit] Testcase: testRecreateZipfilesetWithUpdateNewerFile took 2,634
sec


BUILD FAILED

file:///C:/dev/gnu/ant/build.xml:1631: Test
org.apache.tools.ant.taskdefs.JarTest failed



Total time: 49 seconds





Mime
View raw message