Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 70 for DirectoryProperty (0.26 sec)

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

            'File'      | RegularFileProperty | 'fileProperty'      | 'file' | '.getAsFile().get().text = "Hello"'
            'Directory' | DirectoryProperty   | 'directoryProperty' | 'dir'  | '''.file('output.txt').get().getAsFile().text = "Hello"'''
        }
    
        def "nested FileCollection input adds a task dependency"() {
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/ObjectExtensionInstantiationIntegrationTest.groovy

            """
    
            expect:
            succeeds()
        }
    
        def "can create instance of interface with read-only DirectoryProperty property"() {
            buildFile """
                interface Thing {
                    DirectoryProperty getValue()
                }
    
                extensions.create("thing", Thing)
                assert thing.value.toString() == "extension 'thing' property 'value'"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 16.9K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/implementing_custom_tasks.adoc

    In this context, properties in Gradle act as references to the actual values behind them, allowing Gradle to track inputs and outputs between tasks.
    
    For the input of our task, we use a `DirectoryProperty` from Gradle.
    We annotate it with `@InputDirectory` to indicate that it is an input to the task:
    
    ====
    [.multi-language-sample]
    =====
    .buildSrc/src/main/kotlin/GenerateReportTask.kt
    [source,kotlin]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 05:34:54 UTC 2024
    - 37.2K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/test/groovy/org/gradle/language/plugins/NativeBasePluginTest.groovy

            def debugExeFileProp = project.objects.fileProperty()
            def linkTaskProp = project.objects.property(LinkExecutable)
            def installDirProp = project.objects.directoryProperty()
            def installTaskProp = project.objects.property(InstallExecutable)
    
            def executable = Stub(ConfigurableComponentWithExecutable)
            executable.name >> "windowsDebug"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/MissingTaskDependenciesIntegrationTest.groovy

                abstract class ZipSrc extends DefaultTask {
                    @Internal
                    int countResolved
    
                    @Internal
                    abstract DirectoryProperty getSources()
    
                    @InputFiles
                    abstract ConfigurableFileCollection getSourceFiles()
    
                    @OutputFile
                    abstract RegularFileProperty getZipFile()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 08:14:44 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorParametersIntegrationTest.groovy

            isolationMode << ISOLATION_MODES
        }
    
        def "can provide directory property parameters with isolation mode #isolationMode"() {
            buildFile << """
                ${parameterWorkAction('DirectoryProperty', 'println parameters.testParam.get().getAsFile().name')}
    
                task runWork(type: ParameterTask) {
                    isolationMode = ${isolationMode}
                    parameters {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ConcurrentArchiveIntegrationTest.groovy

                    destinationDir = file('build/extract')
                }
                interface ExtracterParameters extends WorkParameters {
                    RegularFileProperty getArchiveFile()
                    DirectoryProperty getDestinationDir()
                    Property<Integer> getIndex()
                }
                abstract class Extracter implements WorkAction<ExtracterParameters> {
                    @Inject
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/options/OptionReaderTest.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.api.internal.tasks.options
    
    import org.gradle.api.file.DirectoryProperty
    import org.gradle.api.file.RegularFileProperty
    import org.gradle.api.internal.tasks.TaskOptionsGenerator
    import org.gradle.api.provider.ListProperty
    import org.gradle.api.provider.Property
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 10 12:45:01 UTC 2023
    - 33.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProviderIntegrationTest.groovy

        def "zipping against non-task provider doesn't lose task dependencies"() {
            given:
            buildFile """
                abstract class Foo extends DefaultTask {
                    @OutputDirectory abstract DirectoryProperty getOutDir()
                    @TaskAction void foo() {
                        def dir = outDir.get().asFile
                        assert new File(dir, 'baz').createNewFile()
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 15:32:52 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  10. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorServicesIntegrationTest.groovy

            fixture.workActionThatCreatesFiles.constructorAction = "this.objectFactory = objectFactory"
            fixture.workActionThatCreatesFiles.action += """
                objectFactory.fileProperty()
                objectFactory.directoryProperty()
                objectFactory.fileCollection()
                objectFactory.fileTree()
                objectFactory.property(String)
                objectFactory.listProperty(String)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 12.4K bytes
    - Viewed (0)
Back to top