Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for BuiltInOptionElement (0.23 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/tasks/options/BuiltInOptionElement.java

     *
     * A built-in option is always a flag/modifier,
     * and, as such, does not take an argument.
     */
    public class BuiltInOptionElement extends AbstractOptionElement {
        /**
         * The action to be performed in case the option is specified.
         */
        private final Consumer<Task> optionAction;
    
        public BuiltInOptionElement(String description, String optionName, Consumer<Task> optionAction) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 08 13:15:29 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/tasks/TaskOptionsGenerator.java

    public class TaskOptionsGenerator {
        private static final Logger LOGGER = LoggerFactory.getLogger(TaskOptionsGenerator.class);
    
        @VisibleForTesting
        static final List<BuiltInOptionElement> BUILT_IN_OPTIONS = Collections.singletonList(
            new BuiltInOptionElement(
                "Causes the task to be re-run even if up-to-date.",
                "rerun",
                task -> task.getOutputs().upToDateWhen(Specs.satisfyNone())
            )
        );
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 28 09:20:18 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/options/OptionReaderTest.groovy

            int ownOptions = 14
            then:
            options.forEach {it -> System.out.println(it.name + " " + it.description)}
    
            TaskOptionsGenerator.BUILT_IN_OPTIONS.eachWithIndex { BuiltInOptionElement optionElement, int i ->
                assert options[ownOptions + i].name == optionElement.optionName
                assert options[ownOptions + i].description == optionElement.description
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 10 12:45:01 UTC 2023
    - 33.4K bytes
    - Viewed (0)
  4. testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt

    Class <org.gradle.api.internal.tasks.options.BuiltInOptionElement> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (BuiltInOptionElement.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 967.9K bytes
    - Viewed (0)
Back to top