comparison test/org/tmatesoft/hg/test/Configuration.java @ 269:7af843ecc378

Respect glob pattern with alternatives {a,b}
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 23 Aug 2011 23:47:38 +0200
parents 883f1efbcf27
children b015f3918120
comparison
equal deleted inserted replaced
268:c5980f287cc4 269:7af843ecc378
37 private static Configuration inst; 37 private static Configuration inst;
38 private File root; 38 private File root;
39 private final HgLookup lookup; 39 private final HgLookup lookup;
40 private File tempDir; 40 private File tempDir;
41 private List<String> remoteServers; 41 private List<String> remoteServers;
42 private File testDataDir;
42 43
43 private Configuration() { 44 private Configuration() {
44 lookup = new HgLookup(); 45 lookup = new HgLookup();
45 } 46 }
46 47
96 String td = System.getProperty("hg4j.tests.tmpdir", System.getProperty("java.io.tmpdir")); 97 String td = System.getProperty("hg4j.tests.tmpdir", System.getProperty("java.io.tmpdir"));
97 tempDir = new File(td); 98 tempDir = new File(td);
98 } 99 }
99 return tempDir; 100 return tempDir;
100 } 101 }
102
103 public File getTestDataDir() {
104 if (testDataDir == null) {
105 testDataDir = new File(System.getProperty("user.dir"), "test-data");
106 }
107 return testDataDir;
108 }
101 } 109 }