aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/android/java/com/google/devtools/build/android/AarGeneratorAction.java
diff options
context:
space:
mode:
authorGravatar ccalvarin <ccalvarin@google.com>2017-06-29 22:47:37 +0200
committerGravatar Marcel Hlopko <hlopko@google.com>2017-06-30 13:00:48 +0200
commitdb8c437ea1858bc8b9e9b2ec6838ed3916d0ce4b (patch)
treed4df25c5e674e272811ff513b28a44fa27bfc4a2 /src/tools/android/java/com/google/devtools/build/android/AarGeneratorAction.java
parent50d347168a56dda30d904b644162dbfaaf270f51 (diff)
Add categories transition values to android options.
Automated formatting fixes standardize the @Option annotation. PiperOrigin-RevId: 160567787
Diffstat (limited to 'src/tools/android/java/com/google/devtools/build/android/AarGeneratorAction.java')
-rw-r--r--src/tools/android/java/com/google/devtools/build/android/AarGeneratorAction.java77
1 files changed, 50 insertions, 27 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/AarGeneratorAction.java b/src/tools/android/java/com/google/devtools/build/android/AarGeneratorAction.java
index 3a047f3e6b..7a6947d698 100644
--- a/src/tools/android/java/com/google/devtools/build/android/AarGeneratorAction.java
+++ b/src/tools/android/java/com/google/devtools/build/android/AarGeneratorAction.java
@@ -24,8 +24,10 @@ import com.google.devtools.build.android.Converters.ExistingPathConverter;
import com.google.devtools.build.android.Converters.PathConverter;
import com.google.devtools.build.android.Converters.UnvalidatedAndroidDataConverter;
import com.google.devtools.common.options.Option;
+import com.google.devtools.common.options.OptionDocumentationCategory;
import com.google.devtools.common.options.OptionsBase;
import com.google.devtools.common.options.OptionsParser;
+import com.google.devtools.common.options.proto.OptionFilters.OptionEffectTag;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.IOException;
@@ -65,41 +67,62 @@ public class AarGeneratorAction {
/** Flag specifications for this action. */
public static final class Options extends OptionsBase {
- @Option(name = "mainData",
- defaultValue = "null",
- converter = UnvalidatedAndroidDataConverter.class,
- category = "input",
- help = "The directory containing the primary resource directory."
- + "The contents will override the contents of any other resource directories during "
- + "merging. The expected format is resources[#resources]:assets[#assets]:manifest")
+ @Option(
+ name = "mainData",
+ defaultValue = "null",
+ converter = UnvalidatedAndroidDataConverter.class,
+ category = "input",
+ documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
+ effectTags = {OptionEffectTag.UNKNOWN},
+ help =
+ "The directory containing the primary resource directory."
+ + "The contents will override the contents of any other resource directories during "
+ + "merging. The expected format is resources[#resources]:assets[#assets]:manifest"
+ )
public UnvalidatedAndroidData mainData;
- @Option(name = "manifest",
- defaultValue = "null",
- converter = ExistingPathConverter.class,
- category = "input",
- help = "Path to AndroidManifest.xml.")
+ @Option(
+ name = "manifest",
+ defaultValue = "null",
+ converter = ExistingPathConverter.class,
+ category = "input",
+ documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
+ effectTags = {OptionEffectTag.UNKNOWN},
+ help = "Path to AndroidManifest.xml."
+ )
public Path manifest;
- @Option(name = "rtxt",
- defaultValue = "null",
- converter = ExistingPathConverter.class,
- category = "input",
- help = "Path to R.txt.")
+ @Option(
+ name = "rtxt",
+ defaultValue = "null",
+ converter = ExistingPathConverter.class,
+ category = "input",
+ documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
+ effectTags = {OptionEffectTag.UNKNOWN},
+ help = "Path to R.txt."
+ )
public Path rtxt;
- @Option(name = "classes",
- defaultValue = "null",
- converter = ExistingPathConverter.class,
- category = "input",
- help = "Path to classes.jar.")
+ @Option(
+ name = "classes",
+ defaultValue = "null",
+ converter = ExistingPathConverter.class,
+ category = "input",
+ documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
+ effectTags = {OptionEffectTag.UNKNOWN},
+ help = "Path to classes.jar."
+ )
public Path classes;
- @Option(name = "aarOutput",
- defaultValue = "null",
- converter = PathConverter.class,
- category = "output",
- help = "Path to write the archive.")
+ @Option(
+ name = "aarOutput",
+ defaultValue = "null",
+ converter = PathConverter.class,
+ category = "output",
+ documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
+ effectTags = {OptionEffectTag.UNKNOWN},
+ help = "Path to write the archive."
+ )
public Path aarOutput;
}