Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for applicationDefaultJvmArgs (0.32 sec)

  1. platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/integtests/ApplicationIntegrationSpec.groovy

            then:
            result.assertNormalExitValue()
        }
    
        def canUseDefaultJvmArgsToPassMultipleOptionsToJvmWhenRunningScript() {
            file("build.gradle") << '''
    application.applicationDefaultJvmArgs = ['-DtestValue=value', '-DtestValue2=some value', '-DtestValue3=some value']
    '''
            file('src/main/java/org/gradle/test/Main.java') << '''
    package org.gradle.test;
    
    class Main {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 22:15:44 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/api/plugins/ApplicationPluginIntegrationTest.groovy

        }
    
        @Issue("https://github.com/gradle/gradle/issues/21505")
        def "run task honors applicationDefaultJvmArgs"() {
            given:
            buildFile """
                application.applicationDefaultJvmArgs = ['-DFOO=42']
            """
            when:
            succeeds 'run'
    
            then:
            outputContains 'FOO: 42'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/plugin/devel/variants/TargetJVMVersionOnPluginTooNewFailureDescriberIntegrationTest.groovy

                }
    
                ${mavenCentralRepository()}
    
                application {
                    applicationDefaultJvmArgs = ['-DFOO=42']
                }
    
                dependencies {
                    implementation 'org.springframework.boot:spring-boot-starter'
                }
    
                testing.suites.test {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 20:48:53 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/jvm/application_plugin.adoc

    If your application requires a specific set of JVM settings or system properties, you can configure the `applicationDefaultJvmArgs` property. These JVM arguments are applied to the `run` task and also considered in the generated start scripts of your distribution.
    
    .Configure default JVM settings
    ====
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 10.5K bytes
    - Viewed (0)
Back to top