Browse Source

Fix test setup for Eclipse Photon and greater

When a source folder is marked as a test folder, JDT requires that it
has an output folder different from the one used for regular sources.
Therefore give the test folders in org.eclipse.jgit.test a separate
output folder "bin-tst".

Moreover JDT reports errors if non-test classes have dependencies on
test classes. Therefore remove the "test" annotation from
org.eclipse.jgit.junit.

Change-Id: Ib527439ff5b7d7b570b8a60819ecaa70f59c63a3
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
tags/v5.2.0.201811281532-m3
Thomas Wolf 5 years ago
parent
commit
bb5180469c

+ 1
- 5
org.eclipse.jgit.junit/.classpath View File

@@ -2,10 +2,6 @@
<classpath>
<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.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src">
<attributes>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>

+ 4
- 8
org.eclipse.jgit.test/.classpath View File

@@ -1,21 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/*.idx|**/*.pack" kind="src" path="tst">
<classpathentry excluding="**/*.idx|**/*.pack" kind="src" path="tst" output="bin-tst">
<attributes>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src">
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="tst-rsrc" output="bin-tst">
<attributes>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="tst-rsrc">
<attributes>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="exttst">
<classpathentry kind="src" path="exttst" output="bin-tst">
<attributes>
<attribute name="test" value="true"/>
</attributes>

+ 1
- 0
org.eclipse.jgit.test/.gitignore View File

@@ -1,2 +1,3 @@
/bin
/target
/bin-tst/

+ 3
- 1
org.eclipse.jgit.test/build.properties View File

@@ -4,6 +4,8 @@ source.. = tst/,\
src/
bin.includes = META-INF/,\
.,\
plugin.properties
plugin.properties,\
bin-tst/,\
bin/
additional.bundles = org.apache.log4j,\
org.slf4j.impl.log4j12

Loading…
Cancel
Save