Skip to content

Commit

Permalink
Distinguish mnemonics between different usages of aapt.
Browse files Browse the repository at this point in the history
RELNOTES: None
PiperOrigin-RevId: 162945309
  • Loading branch information
aj-michael authored and buchgr committed Jul 24, 2017
1 parent ad42824 commit e619d6a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void createGenerateResourceSymbolsAction(Artifact javaSourcesJar,
.setCommandLine(CommandLine.of(args))
.useParameterFile(ParameterFileType.UNQUOTED)
.setProgressMessage("Generating Java resources")
.setMnemonic("AndroidAapt");
.setMnemonic("AaptJavaGenerator");
if (rTxt != null) {
builder.addOutput(rTxt);
}
Expand Down Expand Up @@ -152,7 +152,7 @@ public void createGenerateApkAction(Artifact apk, String renameManifestPackage,
.setCommandLine(CommandLine.of(args))
.useParameterFile(ParameterFileType.UNQUOTED)
.setProgressMessage("Generating apk resources")
.setMnemonic("AndroidAapt")
.setMnemonic("AaptResourceApk")
.build(ruleContext));
}

Expand Down Expand Up @@ -218,7 +218,7 @@ public List<String> getArgs(Artifact output, String actionKind, ResourceType res
if (args.size() > 3) {
return ImmutableList.copyOf(args);
} else {
return ImmutableList.<String>of();
return ImmutableList.of();
}
}

Expand Down Expand Up @@ -280,7 +280,7 @@ public void createGenerateProguardAction(
.setCommandLine(CommandLine.of(aaptCommand))
.useParameterFile(ParameterFileType.UNQUOTED)
.setProgressMessage("Generating Proguard configuration for resources")
.setMnemonic("AndroidAapt")
.setMnemonic("AaptProguardConfiguration")
.build(ruleContext));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1732,7 +1732,7 @@ private static Artifact createSplitApkResources(RuleContext ruleContext,
AndroidSdkProvider sdk = AndroidSdkProvider.fromRuleContext(ruleContext);
ruleContext.registerAction(new SpawnAction.Builder()
.setExecutable(sdk.getAapt())
.setMnemonic("AndroidAapt")
.setMnemonic("AaptSplitResourceApk")
.setProgressMessage("Generating resource apk for split " + splitName)
.addArgument("package")
.addArgument("-F")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,12 @@ private ResourceContainer createAaptAction(ActionConstructionContext context) {
.useParameterFile(ParameterFileType.UNQUOTED)
.addTool(sdk.getAapt())
.addTransitiveInputs(inputs.build())
.addOutputs(ImmutableList.<Artifact>copyOf(outs))
.addOutputs(ImmutableList.copyOf(outs))
.setCommandLine(builder.build())
.setExecutable(
ruleContext.getExecutablePrerequisite("$android_resources_busybox", Mode.HOST))
.setProgressMessage("Processing Android resources for " + ruleContext.getLabel())
.setMnemonic("AndroidAapt")
.setMnemonic("AaptPackage")
.build(context));

// Return the full set of processed transitive dependencies.
Expand Down

0 comments on commit e619d6a

Please sign in to comment.