Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 747 for TestFile (0.42 sec)

  1. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/PerformanceTestGradleDistribution.groovy

        final GradleDistribution delegate
        final File testDir
    
        private TestFile gradleHome
    
        PerformanceTestGradleDistribution(GradleDistribution delegate, File testDir) {
            this.delegate = delegate
            this.testDir = testDir
        }
    
        TestFile getGradleHomeDir() {
            if (!gradleHome) {
                gradleHome = new TestFile(testDir.parentFile, testDir.name + "-gradle-home")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/CommonPluginValidationTrait.groovy

        }
    
        TestFile getJavaTaskSource() {
            source("src/main/java/MyTask.java")
        }
    
        TestFile getGroovyTaskSource() {
            buildFile  """
                apply plugin: "groovy"
            """
            source("src/main/groovy/MyTask.groovy")
        }
    
        TestFile getKotlinTaskSource() {
            buildFile.delete()
            buildKotlinFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 14:30:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/ScalaCompileRelocationIntegrationTest.groovy

        }
    
        @Override
        protected void setupProjectIn(TestFile projectDir) {
            def classes = new ScalaCompilationFixture(projectDir)
            classes.baseline()
            projectDir.file("build.gradle") << classes.buildScript()
        }
    
        @Override
        protected void prepareForRelocation(TestFile projectDir) {
            // Move Zinc and Scala library dependencies around on disk
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. testing/internal-testing/src/main/groovy/org/gradle/util/internal/Resources.java

         *
         * Also asserts that the resource exists.
         */
        public TestFile getResource(String name) {
            assertNotNull(declaringTestClass);
            TestFile file = findResource(name);
            assertNotNull(String.format("Could not locate resource '%s' for test class %s.", name, declaringTestClass.getName()), file);
            return file;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. subprojects/core/src/testFixtures/groovy/org/gradle/process/ShellScript.groovy

    import org.gradle.test.fixtures.file.TestFile
    import org.gradle.util.internal.TextUtil
    
    import java.nio.file.Path
    
    /**
     * The cross-platform builder of shell scripts that can be used to verify correctness of the
     * invocation of an executable. It uses "sh" syntax on POSIX platforms and batch files on Windows.
     */
    abstract class ShellScript {
        protected final TestFile scriptFile
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. testing/smoke-ide-test/src/smokeIdeTest/groovy/org/gradle/ide/sync/AbstractIdeaSyncTest.groovy

            runIdeStarterWith(gradleDist, testDirectory.toPath(), ideHome, ide)
        }
    
        protected TestFile getTestDirectory() {
            temporaryFolder.testDirectory
        }
    
        protected TestFile file(Object... path) {
            if (path.length == 1 && path[0] instanceof TestFile) {
                return path[0] as TestFile
            }
            testDirectory.file(path)
        }
    
        private void runIdeStarterWith(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 16:28:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/runtimeshaded/RuntimeShadedJarCreatorTest.groovy

        private void createJarFileWithClassFiles(TestFile jar, List<String> classNames) {
            TestFile contents = tmpDir.createDir("contents/$jar.name")
    
            classNames.each { className ->
                writeClass(contents, className)
            }
    
            contents.zipTo(jar)
        }
    
        private static void writeClass(TestFile outputDir, String className) {
            TestFile classFile = outputDir.createFile("${className}.class")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 13:39:49 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/IncrementalCompileProcessorTest.groovy

            }
        }
    
        class DummyResolver implements SourceIncludesResolver {
            final Map<String, TestFile> mapping = [:]
            final Set<TestFile> unresolved = []
    
            void unresolved(TestFile file) {
                unresolved.add(file)
            }
    
            void resolveAs(String include, TestFile file) {
                mapping[include] = file
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:31:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/NativeBinaryFixture.groovy

    import org.gradle.nativeplatform.toolchain.internal.SymbolExtractorOsConfig
    import org.gradle.test.fixtures.file.TestFile
    import org.gradle.test.fixtures.file.TestFile.Snapshot
    
    class NativeBinaryFixture {
        final TestFile file
        protected final AvailableToolChains.InstalledToolChain toolChain
    
        NativeBinaryFixture(TestFile file, AvailableToolChains.InstalledToolChain toolChain) {
            this.file = file
            this.toolChain = toolChain
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/maven/MavenLocalModule.groovy

     * limitations under the License.
     */
    package org.gradle.test.fixtures.maven
    
    import org.gradle.test.fixtures.file.TestFile
    
    class MavenLocalModule extends MavenFileModule {
        private boolean uniqueSnapshots = false;
    
        MavenLocalModule(TestFile rootDir, TestFile moduleDir, String groupId, String artifactId, String version) {
            super(rootDir, moduleDir, groupId, artifactId, version)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top