]> source.dussan.org Git - jgit.git/commitdiff
Fix .classpath to make jgit easily runnable from inside eclipse 54/254/1
authorChristian Halstrick <christian.halstrick@sap.com>
Tue, 2 Feb 2010 12:30:48 +0000 (13:30 +0100)
committerChristian Halstrick <christian.halstrick@sap.com>
Tue, 2 Feb 2010 14:16:29 +0000 (15:16 +0100)
When running jgit from inside Eclipse (e.g. rightclick on project
org.eclipse.jgit.pgm and select Run as->Java application) no commands
are found. This is because the commands are loaded from a resource file
/META-INF/services/org.eclipse.jgit.pgm.TextBuiltin and this file is
not anymore on the classpath.
I fixed this by modifying .classpath to contain the META-INF directory.

Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
org.eclipse.jgit.pgm/.classpath

index 304e86186aa0aecc956652a558f33921111ab213..c2f8fa7c8d63c5c87f3ea374ca8e6f1e16ae4c65 100644 (file)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
        <classpathentry kind="src" path="src"/>
+       <classpathentry excluding="*" including="META-INF/" kind="src" path=""/>
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
        <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
        <classpathentry kind="output" path="bin"/>