Fix eclipse classpath generation

This commit is contained in:
Andrew Guibert 2018-02-14 22:37:22 -06:00
parent c193c5198a
commit 15f538e673
3 changed files with 14 additions and 2 deletions

View File

@ -34,6 +34,18 @@ subprojects {
testCompile group: 'org.glassfish', name: 'javax.json', version: '1.1.+'
}
eclipse {
classpath {
defaultOutputDir = file('build/classes/java/main')
file {
whenMerged {
entries.findAll { it.path.startsWith('src/test') }
.each { it.output = "build/classes/java/test" }
}
}
}
}
liberty {
install {
// use 1 liberty install for the whole repo

View File

@ -7,5 +7,5 @@
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="bin"/>
<classpathentry kind="output" path="build/classes/java/main"/>
</classpath>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/test/java" output="build/classes/java/test"/>
<classpathentry kind="src" output="build/classes/java/test" path="src/test/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer">