summaryrefslogtreecommitdiff
path: root/demoscript/Util.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-11-26 16:59:45 +0100
committerJose <jose@zeroc.com>2014-11-26 16:59:45 +0100
commitc4e016efa6c7c503250eb3e64acca60aacf5071a (patch)
tree2891bfd9b86f5ab942ef8d6f0de817e4bfb4568f /demoscript/Util.py
parentICE-5990 java demo build fails (diff)
downloadice-c4e016efa6c7c503250eb3e64acca60aacf5071a.tar.bz2
ice-c4e016efa6c7c503250eb3e64acca60aacf5071a.tar.xz
ice-c4e016efa6c7c503250eb3e64acca60aacf5071a.zip
ICE-5998 - Java IceBox demo need to configure CLASSPATH
Diffstat (limited to 'demoscript/Util.py')
-rw-r--r--demoscript/Util.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/demoscript/Util.py b/demoscript/Util.py
index baec3157398..8a2a63b57f9 100644
--- a/demoscript/Util.py
+++ b/demoscript/Util.py
@@ -802,6 +802,16 @@ def addLdPath(libpath):
else:
addenv("LD_LIBRARY_PATH", libpath)
+def getIceBoxClassPath():
+ jarSuffix = "-" + getIceVersion() + ".jar"
+ javaDir = getIceDir("java")
+ s = ""
+ for jar in ["ice", "icebox"]:
+ if s != "":
+ s += os.pathsep
+ s += os.path.join(javaDir, "lib", jar + jarSuffix)
+ return s
+
def processCmdLine():
def usage():
print("usage: " + sys.argv[0] + " --x64 --x86 --preferIPv4 --env --noenv --fast --trace=output --debug --host host --mode=[debug|release] --ice-home=<dir> --service-dir=<dir>", "--c++11")