Skip to content

Commit

Permalink
chore: Aspect templating - 5/n - bundled-only section (#6866)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpasternak authored Oct 8, 2024
1 parent 785aca1 commit 64f1ca3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions aspect/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ genrule(
outs = ["intellij_info_impl_bundled.bzl"],
cmd = "cat $(SRCS) >$@ && " +
"sed -i -e '/BUNDLED-IGNORE-BEGIN/,/BUNDLED-IGNORE-END/d' $@ && " +
"sed -i -e '/BUNDLED-INCLUDE-BEGIN/,/BUNDLED-INCLUDE-END/{s/^[#][#]//;}' $@ &&" +
"sed -i -e 's,load(\".*/rules_java/,load(\"@rules_java//', $@",
)

Expand Down
9 changes: 9 additions & 0 deletions aspect/intellij_info_impl.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ load(
"to_artifact_location",
)
load(":flag_hack.bzl", "FlagHackInfo")

# BUNDLED-IGNORE-BEGIN
load(":java_info.bzl", "get_java_info", "java_info_in_target", "java_info_reference")
# BUNDLED-IGNORE-END

# BUNDLED-INCLUDE-BEGIN
##load(":java_info.bzl", "get_java_info", "java_info_in_target", "java_info_reference")
### load("@intellij_aspect_template//:java_info.bzl", "get_java_info")
# BUNDLED-INCLUDE-END

load(
":make_variables.bzl",
"expand_make_variables",
Expand Down

0 comments on commit 64f1ca3

Please sign in to comment.