Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for hasArguments (0.16 sec)

  1. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/tasks/testing/TestTest.groovy

        }
    
        def "jvm arg providers are added to java fork options"() {
            when:
            test.jvmArgumentProviders << new CommandLineArgumentProvider() {
                @Override
                Iterable<String> asArguments() {
                    return ["First", "Second"]
                }
            }
            def javaForkOptions = TestFiles.execFactory().newJavaForkOptions()
            test.copyTo(javaForkOptions)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestExecutionIntegrationTest.groovy

                class TestClassPathProvider implements CommandLineArgumentProvider {
                    @Classpath
                    FileCollection testClasspath
    
                    @Override
                    List<String> asArguments() {
                        FileCollection filteredTestClasspath = testClasspath.filter { f -> f.exists() || ("*".equals(f.getName()) && f.getParentFile() != null && f.getParentFile().exists()) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  3. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileToolchainIntegrationTest.groovy

                    EcjClasspathProvider(FileCollection ecjClasspath) {
                        this.ecjClasspath = ecjClasspath
                    }
    
                    @Override
                    List<String> asArguments() {
                        return ["-cp", ecjClasspath.asPath, "org.eclipse.jdt.internal.compiler.batch.Main"]
                     }
                }
    
                compileJava {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  4. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/plugins/JavaGradlePluginPlugin.java

            private final Test test;
    
            private AddOpensCommandLineArgumentProvider(Test test) {
                this.test = test;
            }
    
            @Override
            public Iterable<String> asArguments() {
                return test.getJavaVersion().isCompatibleWith(JavaVersion.VERSION_1_9)
                    ? Collections.singletonList("--add-opens=java.base/java.lang=ALL-UNNAMED")
                    : Collections.emptyList();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 06:56:29 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  5. platforms/jvm/language-groovy/src/testFixtures/groovy/org/gradle/groovy/compile/AbstractBasicGroovyCompilerIntegrationSpec.groovy

                    String suffix
    
                    SuffixArgumentProvider(String suffix) {
                        this.suffix = suffix
                    }
    
                    @Override
                    List<String> asArguments() {
                        ["-Asuffix=\${suffix}".toString()]
                    }
                }
            """
    
            then:
            succeeds("compileGroovy")
            groovyClassFile('Groovy.class').exists()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 09:08:49 UTC 2023
    - 27K bytes
    - Viewed (0)
  6. platforms/jvm/language-jvm/src/main/java/org/gradle/api/tasks/compile/CompileOptions.java

            builder.addAll(CollectionUtils.stringize(getCompilerArgs()));
            for (CommandLineArgumentProvider compilerArgumentProvider : getCompilerArgumentProviders()) {
                builder.addAll(compilerArgumentProvider.asArguments());
            }
            return builder.build();
        }
    
        /**
         * Compiler argument providers.
         *
         * @since 4.5
         */
        @Nested
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 08:40:36 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  7. platforms/documentation/docs/build.gradle

            this.gradleDistribution = new GradleDistribution(gradleHomeDir)
            this.testTaskClasspath = testTask.classpath
            this.repoRoot = repoRoot(project)
        }
    
        @Override
        Iterable<String> asArguments() {
            def distributionName = testTaskClasspath.filter { it.name.startsWith("gradle-runtime-api-info") }.singleFile.parentFile.parentFile.parentFile.name
            ["-DintegTest.gradleHomeDir=${gradleHomeDir.singleFile}",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 15:37:11 UTC 2024
    - 42K bytes
    - Viewed (0)
Back to top