Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Access is denied
Access is denied [message #321258] Fri, 12 October 2007 12:15 Go to next message
Eclipse UserFriend
Originally posted by: slider161.hotmail.com

I am writing an Ant script to run a JUnit test suite within an Eclipse plug-in and generate a JUnit report outside of Eclipse. I am referring to this tutorial

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.test/te stframework.html?revision=1.4

I have written a test.xml file for my plug-in which uses the org.eclipse.test library.xml file run the suite and generate a report.

When I run the script I get the following error:


java.io.FileNotFoundException: C:\eclipse3.3\test-output (Access is denied).

I am not sure what the missing file is, has anyone encountered this problem before.
Re: Access is denied [message #321277 is a reply to message #321258] Fri, 12 October 2007 15:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"David Cunningham" <slider161@hotmail.com> wrote in message
news:76295137.5381192205796627.JavaMail.root@cp9.dzone.com...
> When I run the script I get the following error:
>
>
> java.io.FileNotFoundException: C:\eclipse3.3\test-output (Access is
> denied).
>
> I am not sure what the missing file is, has anyone encountered this
> problem before.

What's the rest of the stack trace?

Does the directory exist and is it writeable? (Just wondering about that
"access is denied" message.)
Re: Access is denied [message #321535 is a reply to message #321277] Fri, 19 October 2007 06:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: slider161.hotmail.com

> What's the rest of the stack trace?

Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: C:\subversion1\com.propylon.core.Test\test.xml
parsing buildfile C:\subversion1\com.propylon.core.Test\test.xml with URI
= file:/C:/subversion1/com.propylon.core.Test/test.xml
Project base dir set to: C:\subversion1\com.propylon.core.Test
[antlib:org.apache.tools.ant] Could not load definitions from resource
org/apache/tools/ant/antlib.xml. It could not be found.
Build sequence for target(s) `run' is [init, suite, cleanup, run]
Complete build sequence is [init, suite, cleanup, run, ]
init:
suite:
Property "repo_folder" has not been set
Project base dir set to: C:\eclipse3.3
[ant] calling target(s) [java-test] in build file
C:\eclipse3.3\plugins\org.eclipse.test_3.2.0\library.xml
parsing buildfile C:\eclipse3.3\plugins\org.eclipse.test_3.2.0\library.xml
with URI = file:/C:/eclipse3.3/plugins/org.eclipse.test_3.2.0/library.x ml
Project base dir set to: C:\eclipse3.3
[ant] Entering
C:\eclipse3.3\plugins\org.eclipse.test_3.2.0\library.xml...
Build sequence for target(s) `java-test' is [java-test]
Complete build sequence is [java-test, eclipse-test, init, ui-test,
collect-results, core-test, collect, usage, ]
java-test:
[echo] Running com.propylon.core.tests.testcase.AllTests. Result
file:
C:/eclipse3.3/test-output/com.propylon.core.tests.testcase.A llTests.xml.
Property "data-dir" has not been set
Property "os" has not been set
Property "ws" has not been set
Property "arch" has not been set
Property "plugin-path" has not been set
[java] Executing 'C:\Java\jdk1.5.0_11\jre\bin\java' with arguments:
[java] '-Xms40m'
[java] '-Xmx256m'
[java] '-DPLUGIN_PATH=${plugin-path}'
[java] '-classpath'
[java]
'C:\eclipse3.3\plugins\org.eclipse.equinox.launcher_1.0.0.v2 0070606.jar'
[java] 'org.eclipse.core.launcher.Main'
[java] '-application'
[java] 'org.eclipse.test.coretestapplication'
[java] '-data'
[java] '${data-dir}'
[java]
'formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJ UnitResultFormatter,C:/eclipse3.3/test-output'
[java] '-testPluginName'
[java] 'com.propylon.core.Test'
[java] '-className'
[java] 'com.propylon.core.tests.testcase.AllTests'
[java] '-os'
[java] '${os}'
[java] '-ws'
[java] '${ws}'
[java] '-arch'
[java] '${arch}'
[java] '-consolelog'
[java]
[java] The ' characters around the executable and arguments are
[java] not part of the command.
[java] Output redirected to
C:\eclipse3.3\test-output\com.propylon.core.tests.testcase.A llTests.txt
[java] java.io.FileNotFoundException: C:\eclipse3.3\test-output
(Access is denied)
[java] Java Result: 2
Project base dir set to: C:\eclipse3.3
[antcall] calling target(s) [collect-results] in build file
C:\eclipse3.3\plugins\org.eclipse.test_3.2.0\library.xml
parsing buildfile C:\eclipse3.3\plugins\org.eclipse.test_3.2.0\library.xml
with URI = file:/C:/eclipse3.3/plugins/org.eclipse.test_3.2.0/library.x ml
Project base dir set to: C:\eclipse3.3
Build sequence for target(s) `collect-results' is [collect-results]
Complete build sequence is [collect-results, eclipse-test, init, ui-test,
core-test, collect, usage, java-test, ]
[antcall] Entering
C:\eclipse3.3\plugins\org.eclipse.test_3.2.0\library.xml...
Build sequence for target(s) `collect-results' is [collect-results]
Complete build sequence is [collect-results, eclipse-test, init, ui-test,
core-test, collect, usage, java-test, ]
collect-results:
[style] Warning: the task name <style> is deprecated. Use <xslt>
instead.
[style] Using class org.apache.tools.ant.taskdefs.optional.TraXLiaison
[style] Transforming into C:\eclipse3.3\test-output
Property "data-dir" has not been set
[concat] Concating FileResource
"C:\eclipse3.3\configuration\1192197738265.log"
[concat] Concating FileResource
"C:\eclipse3.3\configuration\1192197920906.log"
[concat] Concating FileResource
"C:\eclipse3.3\configuration\1192788244474.log"
[concat] Concating FileResource
"C:\eclipse3.3\configuration\1192788618192.log"
[antcall] Exiting
C:\eclipse3.3\plugins\org.eclipse.test_3.2.0\library.xml.
[ant] Exiting
C:\eclipse3.3\plugins\org.eclipse.test_3.2.0\library.xml.
cleanup:
run:
Project base dir set to: C:\eclipse3.3
[ant] calling target(s) [collect] in build file
C:\eclipse3.3\plugins\org.eclipse.test_3.2.0\library.xml
parsing buildfile C:\eclipse3.3\plugins\org.eclipse.test_3.2.0\library.xml
with URI = file:/C:/eclipse3.3/plugins/org.eclipse.test_3.2.0/library.x ml
Project base dir set to: C:\eclipse3.3
[ant] Entering
C:\eclipse3.3\plugins\org.eclipse.test_3.2.0\library.xml...
Build sequence for target(s) `collect' is [collect]
Complete build sequence is [collect, eclipse-test, init, ui-test,
collect-results, core-test, usage, java-test, ]
collect:
[ant] Exiting
C:\eclipse3.3\plugins\org.eclipse.test_3.2.0\library.xml.
BUILD SUCCESSFUL
Total time: 2 seconds


> Does the directory exist and is it writeable? (Just wondering about that
> "access is denied" message.)

The directory exists and it is writable
Re: Access is denied [message #321564 is a reply to message #321535] Fri, 19 October 2007 14:33 Go to previous message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"David Cunningham" <slider161@hotmail.com> wrote in message
news:cfe16705a5ecd9c0b78f7e63d15f77d7$1@www.eclipse.org...
> java-test:
> [echo] Running com.propylon.core.tests.testcase.AllTests. Result file:
> C:/eclipse3.3/test-output/com.propylon.core.tests.testcase.A llTests.xml.
> Property "data-dir" has not been set
> Property "os" has not been set
> Property "ws" has not been set
> Property "arch" has not been set
> Property "plugin-path" has not been set
> [java] Executing 'C:\Java\jdk1.5.0_11\jre\bin\java' with arguments:
> [java] '-Xms40m'
> [java] '-Xmx256m'
> [java] '-DPLUGIN_PATH=${plugin-path}'
> [java] '-classpath' [...]

It's a shame that it doesn't print out the stack trace of that
FileNotFoundException, that would have been helpful.

I wonder whether it would change anything if you specified the missing
properties? I've run into trouble before when relying on the defaults.
Previous Topic:Source File encryption
Next Topic:Include XML into Plug-in XML
Goto Forum:
  


Current Time: Mon Nov 03 16:03:15 EST 2025

Powered by FUDForum. Page generated in 0.04063 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top