Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 119 for createFile2 (0.21 sec)

  1. platforms/software/maven/src/test/groovy/org/gradle/api/publish/maven/internal/publisher/ValidatingMavenPublisherTest.groovy

                getExtension() >> "ext1"
                getClassifier() >> "classified"
                getFile() >> testDir.createFile('artifact1')
            }
            MavenArtifact artifact2 = Stub() {
                getExtension() >> "ext1"
                getClassifier() >> "classified"
                getFile() >> testDir.createFile('artifact2')
            }
            def projectIdentity = makeProjectIdentity("group", "artifact", "version")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 12K bytes
    - Viewed (0)
  2. platforms/core-runtime/build-process-services/src/test/groovy/org/gradle/api/internal/classpath/DefaultModuleRegistryTest.groovy

        }
    
        def "ignores jars which have the same prefix as an external module"() {
            given:
            distDir.createFile("dep-launcher-1.2.jar")
            distDir.createFile("dep-launcher-1.2-beta-3.jar")
            def registry = new DefaultModuleRegistry(classLoaderFor([]), ClassPath.EMPTY, new GradleInstallation(distDir))
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. platforms/software/ivy/src/integTest/groovy/org/gradle/api/publish/ivy/IvyPublishFeaturesJavaIntegTest.groovy

                }
                def altFile = file("\${buildDir}/\${name}-\${version}-alt.jar")
                task createFile { doFirst { altFile.parentFile.mkdirs(); altFile.text = "test file" } }
                alt.artifact(file:altFile, builtBy: 'createFile')
    
            """
    
            when:
            run "publish"
    
            then:
            javaLibrary.parsedModuleMetadata.variant("apiElements") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DistributionFactoryTest.groovy

        }
    
        def usesContentsOfInstallationLibDirectoryAsImplementationClasspath() {
            def libA = tmpDir.createFile("lib/a.jar")
            def libB = tmpDir.createFile("lib/b.jar")
    
            expect:
            def dist = factory.getDistribution(tmpDir.testDirectory)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  5. subprojects/composite-builds/src/test/groovy/org/gradle/composite/internal/DefaultIncludedBuildRegistryTest.groovy

            given:
            def rootDir = tmpDir.createDir("root")
            rootDir.file("buildSrc/build.gradle").createFile()
    
            def rootBuild = rootBuild(rootDir)
            registry.attachRootBuild(rootBuild)
    
            def parentDir = rootDir.file("parent").createDir()
            parentDir.file("buildSrc/build.gradle").createFile()
    
            def parentDefinition = build(parentDir, "parent")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 14:36:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/variants/GradlePluginWithVariantsPublicationIntegrationTest.groovy

            def pluginMarker = mavenRepo.module('com.example.greeting', 'com.example.greeting.gradle.plugin', '1.0')
    
            producer.file('settings.gradle').createFile()
            producer.file('build.gradle') << """
                plugins {
                    id('java-gradle-plugin')
                    id('maven-publish')
                }
    
                group = "com.example"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:55:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/GradleBuildTaskIntegrationTest.groovy

                task buildInBuild(type:GradleBuild) {
                    dir = 'other'
                    startParameter.projectProperties['foo'] = true // not a String
                }
            """
            file('other/settings.gradle').createFile()
            file('other/build.gradle') << 'assert foo==true'
    
            when:
            run 'buildInBuild'
    
            then:
            noExceptionThrown()
        }
    
        def "can set build path"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/transfer/DefaultCacheAwareExternalResourceAccessorTest.groovy

            given:
            def localCandidates = Mock(LocallyAvailableResourceCandidates)
            def cached = Mock(CachedExternalResource)
            def candidate = tempDir.createFile("candidate-file")
            def sha1 = Hashing.sha1().hashBytes(candidate.bytes)
            def fileStore = Mock(CacheAwareExternalResourceAccessor.ResourceFileStore)
            def cachedMetaData = Mock(ExternalResourceMetaData)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 17:19:47 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  9. src/os/file_windows.go

    	}
    	attrs := uint32(syscall.FILE_FLAG_BACKUP_SEMANTICS)
    	// Use FILE_FLAG_OPEN_REPARSE_POINT, otherwise CreateFile will follow symlink.
    	// See https://docs.microsoft.com/en-us/windows/desktop/FileIO/symbolic-link-effects-on-file-systems-functions#createfile-and-createfiletransacted
    	attrs |= syscall.FILE_FLAG_OPEN_REPARSE_POINT
    	h, err := syscall.CreateFile(p, 0, 0, nil, syscall.OPEN_EXISTING, attrs, 0)
    	if err != nil {
    		return 0, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/HelpTaskIntegrationTest.groovy

            where:
            tasks << [["help"], [], [":help"]]
        }
    
        def "shows help message when run in a directory under the root directory of another build"() {
            given:
            settingsFile.createFile()
            def sub = file("sub").createDir()
    
            when:
            executer.inDirectory(sub)
            run "help"
    
            then:
            output.contains """
    > Task :help
    
    Welcome to Gradle ${version}.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 14K bytes
    - Viewed (0)
Back to top