Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 164 for withArgument (0.2 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/BasicProjectConfigurationProgressCrossVersionSpec.groovy

            withConnection {
                ProjectConnection connection ->
                    connection.newBuild()
                        .addProgressListener(events, [OperationType.TEST] as Set)
                        .withArguments("--rerun-tasks")
                        .forTasks("build")
                        .run()
            }
    
            then:
            events.tests.size() == events.operations.size()
            if (targetDist.runsBuildSrcTests) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:59:43 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. testing/public-api-tests/src/integTest/groovy/org/gradle/api/PublicApiIntegrationTest.groovy

                        createBuildFile("plugins { id 'org.example.test' }");
    
                        BuildResult result = GradleRunner.create()
                            .withProjectDir(testProjectDir)
                            .withArguments("customTask")
                            .withPluginClasspath()
                            .build();
    
                        assertTrue(result.getOutput().contains("Hello from plugin"));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 08:43:08 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/AbstractKotlinIntegrationTest.kt

            gradleExecuterFor(arguments, rootDir).run()
    
        protected
        fun gradleExecuterFor(arguments: Array<out String>, rootDir: File = projectRoot) =
            inDirectory(rootDir).withArguments(*arguments)
    
        protected
        inline fun withOwnGradleUserHomeDir(reason: String, block: () -> Unit) {
            executer.requireOwnGradleUserHomeDir(reason)
            try {
                block()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 16:44:39 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. testing/integ-test/src/integTest/groovy/org/gradle/integtests/CacheProjectIntegrationTest.groovy

            return resolverArtifactCache.file("commons-io/commons-io/")
        }
    
        private def testBuild(String taskName, String expected, String... args) {
            executer.inDirectory(projectDir).withTasks(taskName).withArguments(args).run()
            assertEquals(expected, projectDir.file(TEST_FILE).text)
            updateCaches()
            classFile.assertIsFile()
            artifactsCache.assertIsFile()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/CrossVersionPerformanceTestRunner.groovy

            def toolingApiInvoker = (ToolingApiGradleClient) buildInvoker
            toolingApiInvoker.runOperation(initialAction) { builder ->
                builder.setJvmArguments(jvmArgs)
                builder.withArguments(gradleArgs)
                tapiAction.accept(builder)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 14:54:56 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r27/TestLauncherCrossVersionSpec.groovy

            withFailingTest()
    
            when:
            launchTests { TestLauncher testLauncher ->
                // --continue set to run both test tasks
                testLauncher.withJvmTestClasses("example.MyFailingTest").withArguments("--continue")
            }
    
            then:
            assertTaskExecuted(":test")
            assertTaskExecuted(":secondTest")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheGroovyClosureIntegrationTest.groovy

                            println(name) // task property is ok
                            println(gradleVersion)
                        }
                    }
                }
            """
            executer.beforeExecute { withArguments("-I", initScript.absolutePath) }
    
            when:
            configurationCacheFails ":some"
    
            then:
            failure.assertHasFileName("Initialization script '$initScript'")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/internal/ToolingApiGradleExecutor.java

                    launcher.setStandardInput(parameters.getStandardInput());
                }
    
                launcher.addProgressListener(new TaskExecutionProgressListener(tasks), OperationType.TASK);
    
                launcher.withArguments(parameters.getBuildArgs().toArray(new String[0]));
                launcher.setJvmArguments(parameters.getJvmArgs().toArray(new String[0]));
                launcher.setEnvironmentVariables(parameters.getEnvironment());
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 14:27:21 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileProblemsIntegrationTest.groovy

            generator.addWarning()
            generator.save()
            possibleFileLocations.put(generator.sourceFile.absolutePath, 1)
    
            when:
            executer.withArguments("--info")
            withInstallations(AvailableJavaHomes.getJdk(JavaVersion.VERSION_1_8))
            succeeds(":compileJava")
    
            then:
            outputContains(DiagnosticToProblemListener.FORMATTER_FALLBACK_MESSAGE)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 16:15:29 UTC 2024
    - 24K bytes
    - Viewed (0)
  10. subprojects/core-api/src/main/java/org/gradle/api/reflect/TypeOf.java

            if (!parameterizedModelType.isParameterized()) {
                throw new IllegalArgumentException("Expecting a parameterized type, got: " + parameterizedType + ".");
            }
            return typeOf(parameterizedModelType.withArguments(modelTypeListFrom(typeArguments)));
        }
    
        private final ModelType<T> type;
    
        private TypeOf(ModelType<T> type) {
            this.type = type;
        }
    
        protected TypeOf() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:45:59 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top