I'm starting to migrate some builds to gradle. Looks very cool so far.
I wanted to wrap some existing ant builds with gradle scripts to start.
This particular ant build file is a basic netbeans java ant project (has
targets such as 'jar', 'test')
My gradle script is just this one line:
ant.importBuild 'build.xml'
When I run "gradle jar" everything works
When I run "ant test" everything works
When I run "gradle test" I get a classpath problem with junit
* What went wrong:
Execution failed for task ':-do-test-run'.
Cause: The following error occurred while executing this line:
E:\Craig\Workarea\Kayak\KayakPlugins\SANDBOX\SandboxPlayArea\SandboxPlayAreaJava
\nbproject\build-impl.xml:315: Problem: failed to create task or type
junitCause: Problem: failed to create task or type junit
Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was
not
found.
This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
-ANT_HOME\lib
-the IDE Ant configuration dialogs
My ANT_HOME is set and has everything needed. Can someone please explain
the difference between the "ant test" and the "gradle test" and why I'd get
an error?
Thanks
Craig
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Calling-ant-test-target-fails-with-junit-classpath-issue-newbie-tp4385167p4385167.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email