Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 96 for javaexec (0.13 sec)

  1. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaExecIntegrationTest.groovy

                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            """)
    
    
            buildFile.text = """
                apply plugin: "java"
    
                task run(type: JavaExec) {
                    classpath = project.layout.files(compileJava)
                    mainClass = "driver.Driver"
                    args "1"
                }
            """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 06:04:19 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaExecDebugIntegrationTest.groovy

                    dependsOn runClasspath
                    def execOps = services.get(ExecOperations)
                    doLast {
                        // this is the same as project.javaexec
                        execOps.javaexec {
                            classpath = runClasspath
                            mainClass = "driver.Driver"
    
                            $javaExecConfig
                        }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/tutorial/groovyScope/kotlin/build.gradle.kts

    plugins {
        groovy
    }
    
    dependencies {
        implementation(localGroovy())
    }
    
    tasks {
        register<JavaExec>("runScript") {
            mainClass = "scope"
            classpath = sourceSets.main.get().runtimeClasspath
            if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_1_9)) {
                jvmArgs = listOf("--add-opens", "java.base/java.lang=ALL-UNNAMED")
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 385 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/java/preview/groovy/build.gradle

    tasks.withType(JavaCompile).configureEach {
        options.compilerArgs += "--enable-preview"
    }
    
    tasks.withType(Test).configureEach {
        jvmArgs += "--enable-preview"
    }
    
    tasks.withType(JavaExec).configureEach {
        jvmArgs += "--enable-preview"
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 342 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/samples/java/jvm-multi-project-with-toolchains/groovy/application/build.gradle

    }
    
    dependencies {
        implementation project(':list')
        implementation project(':utilities')
    }
    
    application {
        mainClass = 'org.gradle.sample.app.Main'
    }
    
    // tag::customExec[]
    task('runOn17', type: JavaExec) {
        javaLauncher = javaToolchains.launcherFor {
            languageVersion = JavaLanguageVersion.of(17)
        }
    
        classpath = sourceSets.main.runtimeClasspath
        mainClass = application.mainClass
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 500 bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/dsl/org.gradle.api.Script.xml

                </tr>
                <tr>
                    <td>mkdir</td>
                </tr>
                <tr>
                    <td>delete</td>
                </tr>
                <tr>
                    <td>javaexec</td>
                </tr>
                <tr>
                    <td>exec</td>
                </tr>
            </table>
        </section>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. testing/architecture-test/src/changes/archunit-store/provider-task-file-collection.txt

    Method <org.gradle.api.tasks.JavaExec.getBootstrapClasspath()> does not have raw return type assignable to org.gradle.api.file.ConfigurableFileCollection in (JavaExec.java:0)
    Method <org.gradle.api.tasks.JavaExec.getClasspath()> does not have raw return type assignable to org.gradle.api.file.ConfigurableFileCollection in (JavaExec.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 08:43:33 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/DefaultKotlinScript.kt

        override fun exec(configuration: Action<ExecSpec>): ExecResult =
            processOperations.exec(configuration)
    
        override fun javaexec(configuration: Action<JavaExecSpec>): ExecResult =
            processOperations.javaexec(configuration)
    
        private
        val fileOperations by unsafeLazy(host::getFileOperations)
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 07 22:41:55 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProcessOutputProviderIntegrationTest.groovy

            outputContains("TEST_FOO=fooValue")
        }
    
        def "providers.javaexec can be used during configuration time"() {
            given:
            def testClasspath = TestJavaMain.classLocation
            def testClass = TestJavaMain.class.name
    
            buildFile """
                def execProvider = providers.javaexec {
                    classpath("${TextUtil.escapeString(testClasspath)}")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8K bytes
    - Viewed (0)
  10. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaExecSubclassingIntegrationTest.groovy

            """
    
            buildFile << """
                apply plugin: 'java'
    
                class MyJavaExec extends JavaExec {
    
                    @Override
                    void exec() {
                        jvmArgs = jvmArgs
                        super.exec()
                    }
                }
    
                task run(type: MyJavaExec) {
                    classpath = sourceSets.main.runtimeClasspath
                    mainClass = "Main"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top