Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 162601644
  • Loading branch information
aehlig committed Jul 20, 2017
1 parent 7ddf361 commit 36cd45b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
7 changes: 0 additions & 7 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ bind(
actual = "//third_party/py/six",
)

new_http_archive(
name = "bazel_j2objc",
url = "https://github.com/google/j2objc/releases/download/1.0.1/j2objc-1.0.1.zip",
sha256 = "25cd1da1c2ca2f446bcd9e663da1e1776316547f4b14785709d07ce888c34d67",
build_file = __embedded_dir__ + "/embedded_tools/third_party/java/j2objc/BUILD.remote"
)

# For src/test/docker/...
load("//src/test/docker:docker_repository.bzl", "docker_repository")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,14 @@ public void init(Builder builder) {
builder.addNativeAspectClass(j2ObjcAspect);
builder.addRuleDefinition(new J2ObjcLibraryBaseRule());
builder.addRuleDefinition(new J2ObjcLibraryRule(j2ObjcAspect));

try {
builder.addWorkspaceFilePrefix(
ResourceFileLoader.loadResource(
BazelRuleClassProvider.class, "objc/j2objc.WORKSPACE"));
} catch (IOException e) {
throw new IllegalStateException(e);
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# External dependencies for the java_* rules.

new_http_archive(
name = "bazel_j2objc",
url = "https://github.com/google/j2objc/releases/download/1.0.1/j2objc-1.0.1.zip",
sha256 = "25cd1da1c2ca2f446bcd9e663da1e1776316547f4b14785709d07ce888c34d67",
build_file = __embedded_dir__ + "/embedded_tools/third_party/java/j2objc/BUILD.remote"
)

0 comments on commit 36cd45b

Please sign in to comment.