aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/java/JavaCompilationHelper.java
diff options
context:
space:
mode:
authorGravatar elenairina <elenairina@google.com>2017-12-12 05:03:01 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-12-12 05:04:55 -0800
commit03964c8ccb20d673add76c7f37245e837c3899b6 (patch)
tree95717ba052b66975414c42f0056383b93588b3a9 /src/main/java/com/google/devtools/build/lib/rules/java/JavaCompilationHelper.java
parent4f5a92b78ac23adcf23128eef51b99f6147f1027 (diff)
[java_common.compile] Name output source jar relative to the output jar name
instead of the rule name. RELNOTES: None. PiperOrigin-RevId: 178747070
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/java/JavaCompilationHelper.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/java/JavaCompilationHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/JavaCompilationHelper.java b/src/main/java/com/google/devtools/build/lib/rules/java/JavaCompilationHelper.java
index 75877350ac..0e09320c5f 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/java/JavaCompilationHelper.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/java/JavaCompilationHelper.java
@@ -882,7 +882,7 @@ public final class JavaCompilationHelper {
* prefix and removing the extension and replacing it by the given suffix.
* The new artifact will have the same root as the given one.
*/
- private static Artifact derivedArtifact(
+ static Artifact derivedArtifact(
RuleContext ruleContext, Artifact artifact, String prefix, String suffix) {
PathFragment path = artifact.getRootRelativePath();
String basename = FileSystemUtils.removeExtension(path.getBaseName()) + suffix;