Skip to content

Commit d59647e

Browse files
committed
Separating windows and unix/macos code in genrules that collect libs.
1 parent 80adb70 commit d59647e

File tree

2 files changed

+4
-2
lines changed
  • java
    • client/src/org/openqa/selenium
    • server/src/org/openqa/grid/selenium

2 files changed

+4
-2
lines changed

java/client/src/org/openqa/selenium/BUCK

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ zip_file(
243243
genrule(
244244
name = 'client-libs',
245245
out = 'libs-sources.jar',
246-
cmd = 'mkdir libs && python -c "import sys,shutil;map(lambda f:shutil.copy(f,\'libs\'),[l for l in open(sys.argv[1][1:]).read().split(\';\' if sys.platform.startswith(\'win\') else \':\') if l.endswith(\'.jar\') and \'third_party/java\' in l.replace(\'\\\\\'\',\'/\')])" $(@classpath :client-combined) && jar cMf $OUT libs/*',
246+
bash = 'mkdir libs && python -c "import sys,shutil;map(lambda f:shutil.copy(f,\'libs\'),[l for l in open(sys.argv[1][1:]).read().split(\':\') if l.endswith(\'.jar\') and \'third_party/java\' in l])" $(@classpath :client-combined) && jar cMf $OUT libs/*',
247+
cmd_exe = 'mkdir libs && python -c "import sys,shutil;map(lambda f:shutil.copy(f,\'libs\'),[l for l in open(sys.argv[1][1:]).read().split(\';\') if l.endswith(\'.jar\') and \'third_party\\java\' in l])" $(@classpath :client-combined) && jar cMf $OUT libs/*',
247248
)
248249

java/server/src/org/openqa/grid/selenium/BUCK

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,6 @@ zip_file(
9393
genrule(
9494
name = 'server-libs',
9595
out = 'server-libs-sources.jar',
96-
cmd = 'mkdir libs && python -c "import sys,shutil;map(lambda f:shutil.copy(f,\'libs\'),[l for l in open(sys.argv[1][1:]).read().split(\';\' if sys.platform.startswith(\'win\') else \':\') if l.endswith(\'.jar\') and \'third_party/java\' in l.replace(\'\\\\\'\',\'/\')])" $(@classpath :selenium) && jar cMf $OUT libs/*',
96+
bash = 'mkdir libs && python -c "import sys,shutil;map(lambda f:shutil.copy(f,\'libs\'),[l for l in open(sys.argv[1][1:]).read().split(\':\') if l.endswith(\'.jar\') and \'third_party/java\' in l])" $(@classpath :selenium) && jar cMf $OUT libs/*',
97+
cmd_exe = 'mkdir libs && python -c "import sys,shutil;map(lambda f:shutil.copy(f,\'libs\'),[l for l in open(sys.argv[1][1:]).read().split(\';\') if l.endswith(\'.jar\') and \'third_party\\java\' in l])" $(@classpath :selenium) && jar cMf $OUT libs/*',
9798
)

0 commit comments

Comments
 (0)