Skip to content

Commit 15d02b1

Browse files
committed
Make deploy jar name easier to grep for
1 parent d3823aa commit 15d02b1

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

scala/scala.bzl

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -185,26 +185,26 @@ rm -rf {out}_tmp_expand_srcjars
185185
scalac_args=scalac_args_file.path,
186186
out=ctx.outputs.jar.path,
187187
manifest=ctx.outputs.manifest.path,
188-
jar=_get_jar_path(ctx.files._jar),
188+
jar=_get_jar_path(ctx.files.__deploy_jar),
189189
ijar=ctx.file._ijar.path,
190190
)
191191
outs = [ctx.outputs.jar]
192192
if buildijar:
193193
outs.extend([ctx.outputs.ijar])
194-
ins = (list(jars) +
195-
list(dep_srcjars) +
196-
list(srcjars) +
197-
list(sources) +
198-
ctx.files.srcs +
199-
ctx.files.plugins +
200-
ctx.files.resources +
201-
ctx.files._jdk +
202-
ctx.files._jar +
203-
ctx.files._scalasdk +
204-
[ctx.outputs.manifest,
205-
ctx.file._ijar,
206-
ctx.file._scalac,
207-
ctx.file._java,
194+
ins = (list(jars) +
195+
list(dep_srcjars) +
196+
list(srcjars) +
197+
list(sources) +
198+
ctx.files.srcs +
199+
ctx.files.plugins +
200+
ctx.files.resources +
201+
ctx.files._jdk +
202+
ctx.files.__deploy_jar +
203+
ctx.files._scalasdk +
204+
[ctx.outputs.manifest,
205+
ctx.file._ijar,
206+
ctx.file._scalac,
207+
ctx.file._java,
208208
scalac_args_file])
209209
if compile_java_srcs:
210210
ins.extend([javac_args_file])
@@ -242,11 +242,11 @@ def _build_deployable(ctx, jars):
242242

243243
cmd = cmd.format(
244244
out=ctx.outputs.deploy_jar.path,
245-
jar=_get_jar_path(ctx.files._jar),
245+
jar=_get_jar_path(ctx.files.__deploy_jar),
246246
java=ctx.file._java.path,
247247
manifest=ctx.outputs.manifest.path)
248248
ctx.action(
249-
inputs=list(jars) + ctx.files._jdk + ctx.files._jar + [ctx.outputs.manifest],
249+
inputs=list(jars) + ctx.files._jdk + ctx.files.__deploy_jar + [ctx.outputs.manifest],
250250
outputs=[ctx.outputs.deploy_jar],
251251
command=cmd,
252252
mnemonic="ScalaDeployJar",
@@ -470,7 +470,7 @@ _implicit_deps = {
470470
"_scalareflect": attr.label(default=Label("@scala//:lib/scala-reflect.jar"), single_file=True, allow_files=True),
471471
"_java": attr.label(executable=True, default=Label("@bazel_tools//tools/jdk:java"), single_file=True, allow_files=True),
472472
"_javac": attr.label(executable=True, default=Label("@bazel_tools//tools/jdk:javac"), single_file=True, allow_files=True),
473-
"_jar": attr.label(executable=True, default=Label("//src/java/io/bazel/rulesscala/jar:jar_deploy.jar"), allow_files=True),
473+
"__deploy_jar": attr.label(executable=True, default=Label("//src/java/io/bazel/rulesscala/jar:jar_deploy.jar"), allow_files=True),
474474
"_jdk": attr.label(default=Label("//tools/defaults:jdk"), allow_files=True),
475475
}
476476

0 commit comments

Comments
 (0)