aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/android/java/com/google/devtools/build/android/aapt2/Aapt2ConfigOptions.java
diff options
context:
space:
mode:
authorGravatar corysmith <corysmith@google.com>2017-08-11 21:44:55 +0200
committerGravatar Irina Iancu <elenairina@google.com>2017-08-14 14:15:48 +0200
commite8dd11a99f5772c8bc57b27fb81af010ad9ffca6 (patch)
treef7afc857608cf21eb36b97a3e0e14d20ab018023 /src/tools/android/java/com/google/devtools/build/android/aapt2/Aapt2ConfigOptions.java
parent8306d437ab758c8a45468c77635417a586eecad7 (diff)
Validate and Link libraries action for aapt2
RELNOTES: None PiperOrigin-RevId: 165012084
Diffstat (limited to 'src/tools/android/java/com/google/devtools/build/android/aapt2/Aapt2ConfigOptions.java')
-rw-r--r--src/tools/android/java/com/google/devtools/build/android/aapt2/Aapt2ConfigOptions.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/aapt2/Aapt2ConfigOptions.java b/src/tools/android/java/com/google/devtools/build/android/aapt2/Aapt2ConfigOptions.java
new file mode 100644
index 0000000000..bfe57af3a1
--- /dev/null
+++ b/src/tools/android/java/com/google/devtools/build/android/aapt2/Aapt2ConfigOptions.java
@@ -0,0 +1,50 @@
+// Copyright 2017 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// Copyright 2017 The Bazel Authors. All rights reserved.
+
+package com.google.devtools.build.android.aapt2;
+
+import com.android.repository.Revision;
+import com.google.devtools.build.android.Converters.ExistingPathConverter;
+import com.google.devtools.build.android.Converters.RevisionConverter;
+import com.google.devtools.common.options.Option;
+import com.google.devtools.common.options.OptionDocumentationCategory;
+import com.google.devtools.common.options.OptionEffectTag;
+import com.google.devtools.common.options.OptionsBase;
+import java.nio.file.Path;
+
+/** Aaprt2 specific configuration options. */
+public class Aapt2ConfigOptions extends OptionsBase {
+ @Option(
+ name = "aapt2",
+ documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
+ effectTags = {OptionEffectTag.UNKNOWN},
+ defaultValue = "null",
+ converter = ExistingPathConverter.class,
+ category = "tool",
+ help = "Aapt2 tool location for resource compilation."
+ )
+ public Path aapt2;
+
+ @Option(
+ name = "buildToolsVersion",
+ documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
+ effectTags = {OptionEffectTag.UNKNOWN},
+ defaultValue = "null",
+ converter = RevisionConverter.class,
+ category = "config",
+ help = "Version of the build tools (e.g. aapt) being used, e.g. 23.0.2"
+ )
+ public Revision buildToolsVersion;
+}