[JGIT PATCH] Move C git compatability test vectors to tst directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We don't want to read the data from the classpath as this can cause
a problem for Maven based builds.  Instead we read the data from the
top level tst directory, where our other test vectors are located.

Signed-off-by: Shawn O. Pearce <spearce@xxxxxxxxxxx>
---

Or you could squash this into the patch which introduced it.

 .../{org/spearce/jgit/dircache => }/gitgit.index   |  Bin 134799 -> 134799 bytes
 .../{org/spearce/jgit/dircache => }/gitgit.lsfiles |    0
 .../{org/spearce/jgit/dircache => }/gitgit.lstree  |    0
 .../dircache/DirCacheCGitCompatabilityTest.java    |    2 +-
 4 files changed, 1 insertions(+), 1 deletions(-)
 rename org.spearce.jgit.test/tst/{org/spearce/jgit/dircache => }/gitgit.index (100%)
 rename org.spearce.jgit.test/tst/{org/spearce/jgit/dircache => }/gitgit.lsfiles (100%)
 rename org.spearce.jgit.test/tst/{org/spearce/jgit/dircache => }/gitgit.lstree (100%)

diff --git a/org.spearce.jgit.test/tst/org/spearce/jgit/dircache/gitgit.index b/org.spearce.jgit.test/tst/gitgit.index
similarity index 100%
rename from org.spearce.jgit.test/tst/org/spearce/jgit/dircache/gitgit.index
rename to org.spearce.jgit.test/tst/gitgit.index
diff --git a/org.spearce.jgit.test/tst/org/spearce/jgit/dircache/gitgit.lsfiles b/org.spearce.jgit.test/tst/gitgit.lsfiles
similarity index 100%
rename from org.spearce.jgit.test/tst/org/spearce/jgit/dircache/gitgit.lsfiles
rename to org.spearce.jgit.test/tst/gitgit.lsfiles
diff --git a/org.spearce.jgit.test/tst/org/spearce/jgit/dircache/gitgit.lstree b/org.spearce.jgit.test/tst/gitgit.lstree
similarity index 100%
rename from org.spearce.jgit.test/tst/org/spearce/jgit/dircache/gitgit.lstree
rename to org.spearce.jgit.test/tst/gitgit.lstree
diff --git a/org.spearce.jgit.test/tst/org/spearce/jgit/dircache/DirCacheCGitCompatabilityTest.java b/org.spearce.jgit.test/tst/org/spearce/jgit/dircache/DirCacheCGitCompatabilityTest.java
index 8f182a3..43b23f6 100644
--- a/org.spearce.jgit.test/tst/org/spearce/jgit/dircache/DirCacheCGitCompatabilityTest.java
+++ b/org.spearce.jgit.test/tst/org/spearce/jgit/dircache/DirCacheCGitCompatabilityTest.java
@@ -138,7 +138,7 @@ public class DirCacheCGitCompatabilityTest extends RepositoryTestCase {
 	}
 
 	private File pathOf(final String name) {
-		return new File(getClass().getResource(name).getPath());
+		return new File("tst", name);
 	}
 
 	private Map<String, CGitIndexRecord> readLsFiles() throws Exception {
-- 
1.6.0.rc3.250.g8dd0

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux