]> source.dussan.org Git - jgit.git/commitdiff
Configure classpath for separate test sources in Eclipse 73/130673/2
authorMichael Keppler <Michael.Keppler@gmx.de>
Tue, 9 Oct 2018 07:15:35 +0000 (09:15 +0200)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Wed, 17 Oct 2018 02:08:24 +0000 (11:08 +0900)
Eclipse Photon supports separating sources and test sources.

There are no functional changes in the IDE, except for test source
folders having a different icon color.

Users of different IDEs than Eclipse are not affected, since the
attribute on the classpath entries will be ignored by their IDE.

Bug: 539933
Change-Id: Iac6dcdf0c0730ca775bae90df6a685303dc95380
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.ant.test/.classpath
org.eclipse.jgit.http.test/.classpath
org.eclipse.jgit.junit.http/.classpath
org.eclipse.jgit.junit/.classpath
org.eclipse.jgit.lfs.server.test/.classpath
org.eclipse.jgit.lfs.test/.classpath
org.eclipse.jgit.pgm.test/.classpath
org.eclipse.jgit.test/.classpath

index eca7bdba8f03f22510b7980a94dbfe10c16c0901..3e5654f17eb32b3855f57c6ac4d78bf51062a335 100644 (file)
@@ -2,6 +2,10 @@
 <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"/>
+       <classpathentry kind="src" path="src">
+               <attributes>
+                       <attribute name="test" value="true"/>
+               </attributes>
+       </classpathentry>
        <classpathentry kind="output" path="bin"/>
 </classpath>
index e6014c71221344440fab134c4be8ecbd1aa64f62..b25838024afb48f9a8c8ba91d8de7c4d6f4ad468 100644 (file)
@@ -2,7 +2,15 @@
 <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="tst"/>
-       <classpathentry kind="src" path="src"/>
+       <classpathentry kind="src" path="tst">
+               <attributes>
+                       <attribute name="test" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" path="src">
+               <attributes>
+                       <attribute name="test" value="true"/>
+               </attributes>
+       </classpathentry>
        <classpathentry kind="output" path="bin"/>
 </classpath>
index b862a296d38fe04269faeee6c9d77d11ff77380d..3e5654f17eb32b3855f57c6ac4d78bf51062a335 100644 (file)
@@ -1,7 +1,11 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<classpath>\r
-       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>\r
-       <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>\r
-       <classpathentry kind="src" path="src"/>\r
-       <classpathentry kind="output" path="bin"/>\r
-</classpath>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<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="output" path="bin"/>
+</classpath>
index eca7bdba8f03f22510b7980a94dbfe10c16c0901..3e5654f17eb32b3855f57c6ac4d78bf51062a335 100644 (file)
@@ -2,6 +2,10 @@
 <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"/>
+       <classpathentry kind="src" path="src">
+               <attributes>
+                       <attribute name="test" value="true"/>
+               </attributes>
+       </classpathentry>
        <classpathentry kind="output" path="bin"/>
 </classpath>
index 4f9f6bf22f6db60a47432b117fe98788b4d02142..f08af0a4e907c19b6ae7396775cd6a00d43ceb57 100644 (file)
@@ -2,6 +2,10 @@
 <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="tst"/>
+       <classpathentry kind="src" path="tst">
+               <attributes>
+                       <attribute name="test" value="true"/>
+               </attributes>
+       </classpathentry>
        <classpathentry kind="output" path="bin"/>
 </classpath>
index e43ae76c5073f53eb8f2c01142b622453dd81ab8..e79b7c763a8648e2d3dc07a7e637db0541049b5d 100644 (file)
@@ -2,7 +2,15 @@
 <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"/>
-       <classpathentry kind="src" path="tst"/>
+       <classpathentry kind="src" path="src">
+               <attributes>
+                       <attribute name="test" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" path="tst">
+               <attributes>
+                       <attribute name="test" value="true"/>
+               </attributes>
+       </classpathentry>
        <classpathentry kind="output" path="bin"/>
 </classpath>
index b26f4c45d15ddaf9070eb6915f0467250de834c6..1334739b76f16d97bdea22c81f82f281f590fcbf 100644 (file)
@@ -1,7 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-       <classpathentry kind="src" path="tst"/>
-       <classpathentry kind="src" path="src"/>
+       <classpathentry kind="src" path="tst">
+               <attributes>
+                       <attribute name="test" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" path="src">
+               <attributes>
+                       <attribute name="test" value="true"/>
+               </attributes>
+       </classpathentry>
        <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="output" path="bin"/>
index 84b5052a6cd5029735d60cfa653128342b116a5f..3b0dd26bc5aee120181cc0545dc81f66a2aaa011 100644 (file)
@@ -1,9 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-       <classpathentry excluding="**/*.idx|**/*.pack" kind="src" path="tst"/>
-       <classpathentry kind="src" path="src"/>
-       <classpathentry kind="src" path="tst-rsrc"/>
-       <classpathentry kind="src" path="exttst"/>
+       <classpathentry excluding="**/*.idx|**/*.pack" kind="src" path="tst">
+               <attributes>
+                       <attribute name="test" value="true"/>
+               </attributes>
+       </classpathentry>
+       <classpathentry kind="src" path="src">
+               <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">
+               <attributes>
+                       <attribute name="test" value="true"/>
+               </attributes>
+       </classpathentry>
        <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="output" path="bin"/>