From ab2b4610750d3a52c9f27380447ac1ec18e46d57 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Mon, 5 Aug 2013 11:09:29 -0500 Subject: [PATCH] Gradle workaround for test source being deployed --- gradle/ide-integration.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gradle/ide-integration.gradle b/gradle/ide-integration.gradle index 8b1f962b6e..90e2af84ad 100644 --- a/gradle/ide-integration.gradle +++ b/gradle/ide-integration.gradle @@ -1,3 +1,5 @@ + import org.gradle.plugins.ide.eclipse.model.SourceFolder + configure(allprojects) { apply plugin: 'idea' apply plugin: 'eclipse-wtp' @@ -8,6 +10,12 @@ configure(allprojects) { configure(javaProjects) { 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