Gradle workaround for test source being deployed

This commit is contained in:
Rob Winch 2013-08-05 11:09:29 -05:00
parent 9d58317731
commit ab2b461075
1 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,5 @@
import org.gradle.plugins.ide.eclipse.model.SourceFolder
configure(allprojects) { configure(allprojects) {
apply plugin: 'idea' apply plugin: 'idea'
apply plugin: 'eclipse-wtp' apply plugin: 'eclipse-wtp'
@ -8,6 +10,12 @@ configure(allprojects) {
configure(javaProjects) { configure(javaProjects) {
eclipse.classpath.downloadSources = true eclipse.classpath.downloadSources = true
// http://forums.gradle.org/gradle/topics/eclipse_wtp_deploys_testcode_to_server_example_provided
eclipse.classpath {
defaultOutputDir = file('bin/main')
file.whenMerged { cp ->
cp.entries.findAll { it instanceof SourceFolder && (it.path.contains("test") || it.path.contains("Test")) }*.output = "bin/test"
}
} }
// GRADLE-1422 // GRADLE-1422