aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Erik Kuefler <ekuefler@gmail.com>2015-09-09 09:15:29 +0000
committerGravatar Lukacs Berki <lberki@google.com>2015-09-09 12:06:59 +0000
commit12ec9df9427f3458f916e27078e4a31605666ce0 (patch)
tree1a309dfa325c7ace2319e71ede4f6bb2a9110d99 /tools
parentcf1ca9853e92eb90aaeadf0d3e4134c2d43445ed (diff)
Enable compression for Groovy and AppEngine rules.
-- Change-Id: I22c82e4a24839e0832cf5148e13fc6f0eafc0f2b Reviewed-on: https://bazel-review.googlesource.com/#/c/1952/ MOS_MIGRATED_REVID=102640555
Diffstat (limited to 'tools')
-rw-r--r--tools/build_defs/groovy/groovy.bzl2
-rw-r--r--tools/build_rules/appengine/appengine.bzl2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/build_defs/groovy/groovy.bzl b/tools/build_defs/groovy/groovy.bzl
index b1175919ca..e7cdd2924b 100644
--- a/tools/build_defs/groovy/groovy.bzl
+++ b/tools/build_defs/groovy/groovy.bzl
@@ -51,7 +51,7 @@ def _groovy_jar_impl(ctx):
# class files, pass the result to cut to trim the leading "./", then pass
# the resulting paths to the zipper.
cmd += "root=`pwd`\n"
- cmd += "cd %s; $root/%s c ../%s `find . -name '*.class' | cut -c 3-`\n" % (
+ cmd += "cd %s; $root/%s Cc ../%s `find . -name '*.class' | cut -c 3-`\n" % (
build_output,
ctx.executable._zipper.path,
class_jar.basename,
diff --git a/tools/build_rules/appengine/appengine.bzl b/tools/build_rules/appengine/appengine.bzl
index 67527b7f42..d658df3db9 100644
--- a/tools/build_rules/appengine/appengine.bzl
+++ b/tools/build_rules/appengine/appengine.bzl
@@ -81,7 +81,7 @@ def _make_war(zipper, input_dir, output):
return [
"(root=$(pwd);" +
("cd %s &&" % input_dir) +
- ("${root}/%s c ${root}/%s $(find .))" % (zipper.path, output.path))
+ ("${root}/%s Cc ${root}/%s $(find .))" % (zipper.path, output.path))
]
def _common_substring(str1, str2):