diff options
author | Rami Santina <[email protected]> | 2011-07-26 13:39:53 +0300 |
---|---|---|
committer | Rami Santina <[email protected]> | 2011-07-26 13:39:53 +0300 |
commit | 6b3d6b97bdee99d1057be074879ec80d639101e8 (patch) | |
tree | f0c6bba5a9280c44651eb6bdcb6890037527c9a8 /src/junit | |
parent | e8a8fdda769277496772444fa4f99f863e9f355a (diff) | |
parent | 1d1fd17cca064306dd5d528d59a4bce0581dcc63 (diff) |
Merge branch 'wip_mobile' of git://github.com/sgothel/gluegen into wip_mobile
Diffstat (limited to 'src/junit')
-rw-r--r-- | src/junit/com/jogamp/gluegen/test/junit/generation/BuildEnvironment.java | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/junit/com/jogamp/gluegen/test/junit/generation/BuildEnvironment.java b/src/junit/com/jogamp/gluegen/test/junit/generation/BuildEnvironment.java index 3b883aa..a09d1a9 100644 --- a/src/junit/com/jogamp/gluegen/test/junit/generation/BuildEnvironment.java +++ b/src/junit/com/jogamp/gluegen/test/junit/generation/BuildEnvironment.java @@ -51,23 +51,21 @@ public final class BuildEnvironment { out.println(VersionUtil.getPlatformInfo()); out.println("VM: " + System.getProperty("java.vm.name")); + // setup paths String rootrel_build_tmp = System.getProperty("rootrel.build"); if(null==rootrel_build_tmp || rootrel_build_tmp.length()==0) { - rootrel_build_tmp = "build" ; + throw new RuntimeException("Pls specify property rootrel.build"); } rootrel_build = rootrel_build_tmp; out.println("rootrel.build: " + rootrel_build); - // setup paths - try { - File executionRoot = new File(BuildEnvironment.class.getProtectionDomain().getCodeSource().getLocation().toURI()); - out.println("execution root: " + executionRoot); - gluegenRoot = executionRoot.getParentFile().getParentFile().getParentFile().getParentFile().toString(); - out.println("gluegen project root: " + gluegenRoot); - } catch (URISyntaxException ex) { - throw new RuntimeException("can not determine gluegen root", ex); + String gluegen_root_tmp = System.getProperty("gluegen.root"); + if(null==gluegen_root_tmp || gluegen_root_tmp.length()==0) { + throw new RuntimeException("Pls specify property gluegen.root"); } - + gluegenRoot = gluegen_root_tmp; + out.println("gluegen.root: " + gluegenRoot); + testOutput = gluegenRoot + "/" + rootrel_build + "/test"; out.println("testOutput: "+testOutput); |