summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-11-07 21:28:00 +0100
committerJose <jose@zeroc.com>2014-11-07 21:28:00 +0100
commitf99742d525f519996a6d321afb323a67fd9be4f9 (patch)
treef7b4454611d64d1a28bf9609aa64234fe78d3f53 /scripts/TestUtil.py
parentSome IceJS linting fixes (diff)
downloadice-f99742d525f519996a6d321afb323a67fd9be4f9.tar.bz2
ice-f99742d525f519996a6d321afb323a67fd9be4f9.tar.xz
ice-f99742d525f519996a6d321afb323a67fd9be4f9.zip
Fix for (ICE-5832) Versioning of Jar files
Renaming JAR files
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py37
1 files changed, 16 insertions, 21 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index 251ad754ff1..450c1805989 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -1587,6 +1587,15 @@ def getServiceDir():
serviceDir = "C:\\Program Files\ZeroC\Ice-" + str(getIceVersion()) + "\\bin"
return serviceDir
+iceJARs = ["ice",
+ "glacier2",
+ "freeze",
+ "icebox",
+ "icestorm",
+ "icegrid",
+ "icepatch2",
+ "icediscovery"]
+
def getTestEnv(lang, testdir):
global compact
@@ -1599,23 +1608,18 @@ def getTestEnv(lang, testdir):
if lang == "cpp":
addLdPath(os.path.join(testdir), env)
elif lang == "java":
- addClasspath(os.path.join(toplevel, "java", "lib", "IceTest.jar"), env)
+ addClasspath(os.path.join(toplevel, "java", "lib", "test.jar"), env)
+ jarSuffix = "-" + getIceVersion() + ".jar"
+
#
# If Ice is installed from RPMs, just set the CLASSPATH for Java.
#
if iceHome == "/usr":
if lang == "java":
javaDir = os.path.join("/", "usr", "share", "java")
- jarSuffix = "-" + getIceVersion() + ".jar"
- addClasspath(os.path.join(javaDir, "Ice" + jarSuffix), env)
- addClasspath(os.path.join(javaDir, "Glacier2" + jarSuffix), env)
- addClasspath(os.path.join(javaDir, "Freeze" + jarSuffix), env)
- addClasspath(os.path.join(javaDir, "IceBox" + jarSuffix), env)
- addClasspath(os.path.join(javaDir, "IceStorm" + jarSuffix), env)
- addClasspath(os.path.join(javaDir, "IceGrid" + jarSuffix), env)
- addClasspath(os.path.join(javaDir, "IcePatch2" + jarSuffix), env)
- addClasspath(os.path.join(javaDir, "IceDiscovery" + jarSuffix), env)
+ for jar in iceJARs:
+ addClasspath(os.path.join(javaDir, jar + jarSuffix), env)
return env # That's it, we're done!
if isWin32():
@@ -1644,17 +1648,8 @@ def getTestEnv(lang, testdir):
# The Ice.jar and Freeze.jar comes from the installation
# directory or the toplevel dir.
javaDir = os.path.join(getIceDir("java", testdir), "lib")
- jarSuffix = "-" + getIceVersion() + ".jar"
- addClasspath(os.path.join(javaDir, "Ice" + jarSuffix), env)
- addClasspath(os.path.join(javaDir, "Glacier2" + jarSuffix), env)
- addClasspath(os.path.join(javaDir, "Freeze" + jarSuffix), env)
- addClasspath(os.path.join(javaDir, "IceBox" + jarSuffix), env)
- addClasspath(os.path.join(javaDir, "IceStorm" + jarSuffix), env)
- addClasspath(os.path.join(javaDir, "IceGrid" + jarSuffix), env)
- addClasspath(os.path.join(javaDir, "IcePatch2" + jarSuffix), env)
- addClasspath(os.path.join(javaDir, "IceDiscovery" + jarSuffix), env)
- addClasspath(os.path.join(javaDir), env)
-
+ for jar in iceJARs:
+ addClasspath(os.path.join(javaDir, jar + jarSuffix), env)
#
# On Windows, C# assemblies are found thanks to the .exe.config files.
#