diff options
author | Mark Spruiell <mes@zeroc.com> | 2013-04-19 14:25:08 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2013-04-19 14:25:08 -0700 |
commit | 887b627bedf2c3232a598b10a91ac9cece0aa067 (patch) | |
tree | 94b4916b8a8dd44f1cb7b5fd34983c2791ba9862 /scripts/TestUtil.py | |
parent | SOCKS support for Java (diff) | |
download | ice-887b627bedf2c3232a598b10a91ac9cece0aa067.tar.bz2 ice-887b627bedf2c3232a598b10a91ac9cece0aa067.tar.xz ice-887b627bedf2c3232a598b10a91ac9cece0aa067.zip |
merging Protocol Buffers into master, updated for Ice 3.5
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-x | scripts/TestUtil.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index 6bbe35a032f..45c24174ed9 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -168,8 +168,6 @@ toplevel = path[0] def sanitize(cp): np = "" for p in cp.split(os.pathsep): - if os.path.normpath(p) == "classes": - continue if len(np) > 0: np = np + os.pathsep np = np + p @@ -1007,7 +1005,11 @@ def getDefaultServerFile(): if lang == "py": return "Server.py" if lang in ["java", "javae"]: - return directoryToPackage() + ".Server" + pkg = directoryToPackage() + if len(pkg) > 0: + pkg = pkg + "." + return pkg + "Server" + raise RuntimeError("unknown language") def getDefaultClientFile(lang = None): if lang is None: @@ -1021,7 +1023,11 @@ def getDefaultClientFile(lang = None): if lang == "py": return "Client.py" if lang in ["java", "javae"]: - return directoryToPackage() + ".Client" + pkg = directoryToPackage() + if len(pkg) > 0: + pkg = pkg + "." + return pkg + "Client" + raise RuntimeError("unknown language") def getDefaultCollocatedFile(): lang = getDefaultMapping() |