| 29 | import java.net.URLClassLoader; |
| 30 | |
| 31 | public interface Paths { |
| 32 | boolean USING_CLOVER = System.getProperty("java.class.path").indexOf("clover") != -1; |
| 33 | /** Use this as a parent class loader to ensure clover can be loaded. */ |
| 34 | class CloverLoader extends URLClassLoader { |
| 35 | public CloverLoader() throws MalformedURLException{ |
| 36 | this(null); |
| 37 | } |
| 38 | public CloverLoader(ClassLoader parent) throws MalformedURLException { |
| 39 | super(new URL[]{ |
| 40 | new File(USING_CLOVER ? "lib/clover.jar" : "/dev/null").toURI().toURL() |
| 41 | }, parent); |
| 42 | } |
| 43 | } |
| 44 | String BUILDDIR = Platform.isWindowsCE() |
| 45 | ? "/Storage Card" |
| 46 | : System.getProperty("jna.builddir", |
| 47 | USING_CLOVER |
| 48 | ? "build.clover" : "build"); |
| 49 | String CLASSES = BUILDDIR + (Platform.isWindowsCE() ? "" : "/classes"); |
| 50 | String JNAJAR = BUILDDIR + "/jna.jar"; |
| 51 | |
| 52 | String TESTPATH = Platform.isWindowsCE() |
| 53 | ? "/Storage Card/" |
| 54 | : System.getProperty("jna.nativedir", |
| 55 | BUILDDIR + "/native-" + Platform.RESOURCE_PREFIX + "/"); |
| 56 | String TESTJAR = BUILDDIR + "/jna-test.jar"; |
| 57 | String TESTJAR2 = BUILDDIR + "/jna-test2.jar"; |
| 58 | String TESTJAR3 = BUILDDIR + "/jna-test3.jar"; |
| 59 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…