Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 44 for DirectoryProperty (0.29 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractDirectorySensitivityIntegrationSpec.groovy

                abstract class TaskWithInputs extends DefaultTask {
                    ${ api == Api.ANNOTATION_API ? "@InputDirectory @PathSensitive(PathSensitivity.RELATIVE)" : "@Internal" }
                    abstract DirectoryProperty getSources()
    
                    @OutputFile
                    abstract RegularFileProperty getOutputFile()
    
                    @TaskAction
                    void doSomething() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/properties_providers.adoc

    |Property Type |Note
    
    |`Property<T>`
    |Where `T` is typically `Double`, `Integer`, `Long`, `String`, or `Bool`
    
    |`RegularFileProperty`
    |Configurable regular file location, whose value is mutable
    
    |`DirectoryProperty`
    |Configurable directory location, whose value is mutable
    
    |`ListProperty<T>`
    |List of elements of type `T`
    
    |`SetProperty<T>`
    |Set of elements of type `T`
    
    |`MapProperty<K, V>`
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. subprojects/core-api/src/main/java/org/gradle/api/provider/Provider.java

     *     <li>Using the methods on {@link org.gradle.api.file.Directory} and {@link org.gradle.api.file.DirectoryProperty} to produce file providers.</li>
     *     <li>By calling {@link ProviderFactory#provider(Callable)} or {@link org.gradle.api.Project#provider(Callable)} to create a new provider from a {@link Callable}.</li>
     * </ul>
     *
     * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 09:14:21 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. platforms/documentation/docs/build.gradle

        @Internal
        final ConfigurableFileCollection gradleHomeDir
    
        @PathSensitive(PathSensitivity.RELATIVE)
        @InputDirectory
        final DirectoryProperty samplesdir
    
        @Nested
        final GradleDistribution gradleDistribution
    
        private final FileCollection testTaskClasspath
        private final Directory repoRoot
    
        @Inject
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 15:37:11 UTC 2024
    - 42K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionIntegrationTest.groovy

            buildFile """
                import static org.gradle.util.internal.TextUtil.normaliseFileSeparators
    
                abstract class Producer extends DefaultTask {
                    @OutputDirectory abstract DirectoryProperty getOutputClasses()
    
                    Producer() { outputs.upToDateWhen { false } } // TODO doesn't matter, remove this
    
                    @TaskAction void doStuff() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 12:54:09 UTC 2024
    - 21K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/service_injection.adoc

    It provides methods for creating instances of different types, such as properties (`Property<T>`), collections (`ListProperty<T>`, `SetProperty<T>`, `MapProperty<K, V>`), file-related objects (`RegularFileProperty`, `DirectoryProperty`, `ConfigurableFileCollection`, `ConfigurableFileTree`), and more.
    
    You can obtain an instance of `ObjectFactory` using the `project.objects` property.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildOptionsIntegrationTest.groovy

            given:
            buildFile '''
    
                import java.nio.file.Files
    
                abstract class MyTask extends DefaultTask {
                    @OutputDirectory
                    abstract DirectoryProperty getOutputDir()
    
                    @Input
                    abstract Property<Integer> getInputCount()
    
                    @TaskAction
                    void doTask() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 28K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AbstractClassGenerator.java

    import org.gradle.api.NonExtensible;
    import org.gradle.api.artifacts.dsl.DependencyCollector;
    import org.gradle.api.file.ConfigurableFileCollection;
    import org.gradle.api.file.ConfigurableFileTree;
    import org.gradle.api.file.DirectoryProperty;
    import org.gradle.api.file.RegularFileProperty;
    import org.gradle.api.internal.DynamicObjectAware;
    import org.gradle.api.internal.IConventionAware;
    import org.gradle.api.internal.plugins.software.SoftwareType;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:37 UTC 2024
    - 63K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_8.adoc

    It could result in outputs ending up in different locations.
    
    It is replaced by a `link:{javadocPath}/org/gradle/api/file/DirectoryProperty.html[DirectoryProperty]` found at `Project.layout.buildDirectory`.
    See the `link:{groovyDslPath}/org.gradle.api.file.ProjectLayout.html[ProjectLayout]` interface for details.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 17:01:07 UTC 2024
    - 90.7K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/jvm/toolchains.adoc

    include::sample[dir="snippets/java/toolchain-config-task/groovy/",files="build.gradle[tags=java-compiler]"]
    ====
    
    WARNING: The examples above use tasks with `RegularFileProperty` and `DirectoryProperty` properties which allow lazy configuration.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 05:37:54 UTC 2024
    - 24.8K bytes
    - Viewed (0)
Back to top