[Netarchivesuite-devel] unittest Ant goal not working

Nicolas Giraud nikokode at gmail.com
Wed Mar 23 11:26:26 CET 2011


Hi,

The Ant goal "uniittest" fails due to a duplicate dependency. Here's the
stack trace :

test:
       [mkdir] Created dir:
/home/ngiraud/dev/java/eclipse/workspace/helios/netarchivesuite-trunk/reports
       [junit] WARNING: multiple versions of ant detected in path for junit
       [junit]
jar:file:/home/ngiraud/dev/java/eclipse/helios/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/ant.jar!/org/apache/tools/ant/Project.class
       [junit]      and
jar:file:/home/ngiraud/dev/java/eclipse/workspace/helios/netarchivesuite-trunk/lib/jetty-dependencies/ant-1.6.5.jar!/org/apache/tools/ant/Project.class
       [junit] Exception in thread "main"
java.security.AccessControlException: access denied (java.io.FilePermission
/home/ngiraud/dev/java/eclipse/workspace/helios/netarchivesuite-trunk/junitvmwatcher1486423965730870506.properties
write)
       [junit]     at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
       [junit]     at
java.security.AccessController.checkPermission(AccessController.java:546)
       [junit]     at
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
       [junit]     at
java.lang.SecurityManager.checkWrite(SecurityManager.java:962)
       [junit]     at
java.io.FileOutputStream.<init>(FileOutputStream.java:169)
       [junit]     at
java.io.FileOutputStream.<init>(FileOutputStream.java:70)
       [junit]     at java.io.FileWriter.<init>(FileWriter.java:46)
       [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.registerTestCase(JUnitTestRunner.java:939)
       [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:695)
       [junit] Running dk.netarkivet.UnitTesterSuite
       [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
       [junit] Test dk.netarkivet.UnitTesterSuite FAILED (crashed)

I think the Ant jar in the Jetty dependencies should be dropped.

Best,

-- 
Nicolas Giraud
---------------------------------------------------------------------------------------------
Développeur Archives du Web - Bibliothèque Nationale de France
Web Archiving Developper - National Library of France
---------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.sbforge.org/pipermail/netarchivesuite-devel/attachments/20110323/af2a0757/attachment-0002.html>


More information about the Netarchivesuite-devel mailing list