Package org.gradle.api.tasks.options
Annotation Type OptionValues
-
@Retention(RUNTIME) @Target(METHOD) @Inherited public @interface OptionValuesMarks a method on a
Taskas providing the possible values for aStringorList<String>Option. At most one option values method may be provided for a particular option.This annotation should be attached to a getter method that returns a
Collectionof possible values. The entries in the collection may be of any type. If necessary, they are transformed intoStringsby callingtoString().- Since:
- 4.6
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String[]valueThe names of the options for which the method provides the possible values.
-