On 18/11/2008, at 10:30 AM, Ed wrote:
Thanks. That did the trick when executing from the command line.
Now I need to figure out how to execute the unit tests from within
eclipse.
The groovy unit tests are in the src/main/groovy package path and
the groovy
test class files are in the correct target/test-classes/ classpath,
but when
I try to "run as" JUnit test I get:
Groovy Runner Error
Error running GroovyNetworkFilterTest.groovy failed to find a class
file,
ensure the Groovy output folder is on the classpath.
My eclipse .classpath looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry excluding="**/*.java" kind="src"
path="src/main/resources"/>
* <classpathentry kind="src" output="target/test-classes"
path="src/test/java"/>
<classpathentry kind="src" output="target/test-classes"
path="src/test/groovy"/>*
<classpathentry excluding="**/*.java" kind="src"
output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="var"
path="M2_REPO/com/comcast/comcast-common-util/1.5.2/comcast-common-
util-1.5.2.jar"/>
<classpathentry kind="var"
path="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar"/>
<classpathentry kind="var"
path="M2_REPO/jpcap/jpcap/0.7/jpcap-0.7.jar"/>
<classpathentry kind="var"
path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
<classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
...Any ideas?
None here sorry.
--
LD.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]