ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From otisg <ot...@ureach.com>
Subject failed Junit test -> file permission error? Ant 1.5 bug?
Date Fri, 27 Sep 2002 19:05:17 GMT
Hello,

I am running JUnit tests via Ant 1.5 on
Windows, and whenever a test fails Ant
reports it as file permission error, which
is completely incorrect.

Here is an example:

    [junit] Running
net.wgen.amp.model.AmpUserTest
    [junit]
java.security.AccessControlException: access
denied (java.io.FilePermission
C:\NightlyBuild\checkout\mclass\javaserver\build\reports\ut\TEST-net.wgen.amp.model.AmpUserTest.xml
write)
    [junit] 	at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:267)
    [junit] 	at
java.security.AccessController.checkPermission(AccessController.java:394)
    [junit] 	at
java.lang.SecurityManager.checkPermission(SecurityManager.java:540)
    [junit] 	at
java.lang.SecurityManager.checkWrite(SecurityManager.java:973)
    [junit] 	at
java.io.FileOutputStream.<init>(FileOutputStream.java:91)
    [junit] 	at
java.io.FileOutputStream.<init>(FileOutputStream.java:57)
    [junit] 	at
java.io.FileOutputStream.<init>(FileOutputStream.java:127)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:206)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)
    [junit] Exception in thread "main" 
    [junit] TEST
net.wgen.amp.model.AmpUserTest FAILED


Is this a known problem?

I've been trying to get around this for
about a week now, but I'm stuck at this
point, unfortunately :(

Any help would be very, very much appreciated!

Thanks,
Otis


________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

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


Mime
View raw message