Skip to content

Commit

Permalink
Undo
Browse files Browse the repository at this point in the history
  • Loading branch information
ianoc-stripe committed Sep 11, 2016
1 parent ec05677 commit d2dce89
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scala/scala.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ def _build_nosrc_jar(ctx, buildijar):
out=ctx.outputs.jar.path,
manifest=ctx.outputs.manifest.path,
java=ctx.file._java.path,
jar=_get_jar_path(ctx.files.__deploy_jar))
jar=_get_jar_path(ctx.files._jar))
outs = [ctx.outputs.jar]
if buildijar:
outs.extend([ctx.outputs.ijar])

inputs = ctx.files.resources + ctx.files._jdk + ctx.files.__deploy_jar + [
inputs = ctx.files.resources + ctx.files._jdk + ctx.files._jar + [
ctx.outputs.manifest, ctx.file._java
]

Expand Down Expand Up @@ -241,7 +241,7 @@ def _compile(ctx, _jars, dep_srcjars, buildijar):
scalac_args=scalac_args_file.path,
out=ctx.outputs.jar.path,
manifest=ctx.outputs.manifest.path,
jar=_get_jar_path(ctx.files.__deploy_jar),
jar=_get_jar_path(ctx.files._jar),
ijar=ctx.file._ijar.path,
)

Expand All @@ -257,7 +257,7 @@ def _compile(ctx, _jars, dep_srcjars, buildijar):
ctx.files.resources +
ctx.files._jdk +
ctx.files._scalac +
ctx.files.__deploy_jar +
ctx.files._jar +
ctx.files._scalasdk +
[ctx.outputs.manifest,
ctx.file._ijar,
Expand Down Expand Up @@ -303,11 +303,11 @@ def _build_deployable(ctx, jars):

cmd = cmd.format(
out=ctx.outputs.deploy_jar.path,
jar=_get_jar_path(ctx.files.__deploy_jar),
jar=_get_jar_path(ctx.files._jar),
java=ctx.file._java.path,
manifest=ctx.outputs.manifest.path)
ctx.action(
inputs=list(jars) + ctx.files._jdk + ctx.files.__deploy_jar + [ctx.outputs.manifest],
inputs=list(jars) + ctx.files._jdk + ctx.files._jar + [ctx.outputs.manifest],
outputs=[ctx.outputs.deploy_jar],
command=cmd,
mnemonic="ScalaDeployJar",
Expand Down Expand Up @@ -533,7 +533,7 @@ _implicit_deps = {
"_scalareflect": attr.label(default=Label("@scala//:lib/scala-reflect.jar"), single_file=True, allow_files=True),
"_java": attr.label(executable=True, default=Label("@bazel_tools//tools/jdk:java"), single_file=True, allow_files=True),
"_javac": attr.label(executable=True, default=Label("@bazel_tools//tools/jdk:javac"), single_file=True, allow_files=True),
"__deploy_jar": attr.label(executable=True, default=Label("//src/java/io/bazel/rulesscala/jar:binary_deploy.jar"), allow_files=True),
"_jar": attr.label(executable=True, default=Label("//src/java/io/bazel/rulesscala/jar:binary_deploy.jar"), allow_files=True),
"_jdk": attr.label(default=Label("//tools/defaults:jdk"), allow_files=True),
}

Expand Down

0 comments on commit d2dce89

Please sign in to comment.