Skip to content

Commit

Permalink
add reference to resource_strip_prefix in resources documentation
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 436849752
  • Loading branch information
Googler authored and Copybara-Service committed Mar 23, 2022
1 parent 77cd575 commit 8820e84
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ class on the runtime classpath or you specify the <code>runtime_deps</code> argu
(a "src" directory followed by a "resources" directory grandchild). If that is not
found, Bazel then looks for the topmost directory named "java" or "javatests" (so, for
example, if a resource is at <code>&lt;workspace root&gt;/x/java/y/java/z</code>, the
path of the resource will be <code>y/java/z</code>. This heuristic cannot be overridden.
path of the resource will be <code>y/java/z</code>. This heuristic cannot be overridden,
however, the <code>resource_strip_prefix</code> attribute can be used to specify a
specific alternative directory for resource files.
</p>
<p>
Expand Down

0 comments on commit 8820e84

Please sign in to comment.