Magno Machado wrote:
> 
> I'd like the MyProject/src/main/java to be on the classpath when I run the
> unit tests
> 

Here is a solution:

sourceSets.test.runtimeClasspath += files(sourceSets.main.java.srcDirs) //
OR: files("src/main/java")

--
Peter Niederwieser 
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradleware
http://www.gradleware.com
Creator, Spock Framework
http://spockframework.org


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Add-source-folder-to-test-classpath-tp4341477p4342474.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


Reply via email to