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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to