You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by nd...@apache.org on 2015/04/22 01:18:12 UTC

phoenix git commit: PHOENIX-1903 bin scripts locate wrong client jar

Repository: phoenix
Updated Branches:
  refs/heads/master 3f294aa96 -> 75d073025


PHOENIX-1903 bin scripts locate wrong client jar


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/75d07302
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/75d07302
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/75d07302

Branch: refs/heads/master
Commit: 75d073025772c7642a3b27379acfcc24d8e92407
Parents: 3f294aa
Author: Nick Dimiduk <nd...@apache.org>
Authored: Tue Apr 21 16:17:42 2015 -0700
Committer: Nick Dimiduk <nd...@apache.org>
Committed: Tue Apr 21 16:17:42 2015 -0700

----------------------------------------------------------------------
 bin/phoenix_utils.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/75d07302/bin/phoenix_utils.py
----------------------------------------------------------------------
diff --git a/bin/phoenix_utils.py b/bin/phoenix_utils.py
index 7ef8d96..554b21b 100755
--- a/bin/phoenix_utils.py
+++ b/bin/phoenix_utils.py
@@ -32,6 +32,8 @@ def find(pattern, classPaths):
             path = path[:-1]
     
         for root, dirs, files in os.walk(path):
+            # sort the file names so *-client always precedes *-thin-client
+            files.sort()
             for name in files:
                 if fnmatch.fnmatch(name, pattern):
                     return os.path.join(root, name)
@@ -41,6 +43,8 @@ def find(pattern, classPaths):
 def findFileInPathWithoutRecursion(pattern, path):
 
     files = [f for f in os.listdir(path) if os.path.isfile(os.path.join(path,f))]
+    # sort the file names so *-client always precedes *-thin-client
+    files.sort()
     for name in files:
         if fnmatch.fnmatch(name, pattern):
             return os.path.join(path, name)
@@ -108,4 +112,4 @@ def shell_quote(args):
     else:
         # pipes module isn't available on Windows
         import pipes
-        return " ".join([pipes.quote(v) for v in args])
\ No newline at end of file
+        return " ".join([pipes.quote(v) for v in args])