Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 119 for JavaHome (0.86 sec)

  1. .teamcity/src/main/kotlin/util/PublishKotlinDslPlugin.kt

     * limitations under the License.
     */
    
    package util
    
    import common.BuildToolBuildJvm
    import common.Os
    import common.VersionedSettingsBranch
    import common.gradleWrapper
    import common.javaHome
    import common.requiresOs
    import common.uuidPrefix
    import jetbrains.buildServer.configs.kotlin.BuildType
    import jetbrains.buildServer.configs.kotlin.DslContext
    import vcsroots.useAbsoluteVcs
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 05 00:08:14 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. platforms/jvm/jvm-services/src/main/java/org/gradle/jvm/toolchain/internal/OsXInstallationSupplier.java

            }
            return Collections.emptySet();
        }
    
        private InstallationLocation asInstallation(File javaHome) {
            return InstallationLocation.autoDetected(javaHome, getSourceName());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:55 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/UpToDateScalaCompileIntegrationTest.groovy

            when:
            executer.withJavaHome(jdk8.javaHome)
            run 'compileScala'
    
            then:
            executedAndNotSkipped(':compileScala')
    
            when:
            executer.withJavaHome(jdk8.javaHome)
            run 'compileScala'
            then:
            skipped ':compileScala'
    
            when:
            executer.withJavaHome(jdk11.javaHome)
            run 'compileScala', '--info'
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r87/ProblemProgressEventCrossVersionTest.groovy

            def listener = new ProblemProgressListener()
    
            when:
            withConnection {
                it.newBuild()
                    .forTasks(":reportProblem")
                    .setJavaHome(jdk17.javaHome)
                    .addProgressListener(listener)
                    .run()
            }
    
            then:
            thrown(BuildException)
            listener.problems.size() == 0
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 11:36:58 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AbstractGradleceptionSmokeTest.groovy

        public static final String TEST_BUILD_TIMESTAMP = "-PbuildTimestamp=" + newTimestamp()
        public static final String TEST_JAVA_INSTALLATIONS = "-Porg.gradle.java.installations.paths=${AvailableJavaHomes.getAvailableJvms().collect { it.javaHome.absolutePath }.join(",")}"
        private static final List<String> GRADLE_BUILD_TEST_ARGS = [TEST_BUILD_TIMESTAMP, TEST_JAVA_INSTALLATIONS]
    
        private SmokeTestGradleRunner.SmokeTestBuildResult result
    
        def setup() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec/canJointCompileWithJavaCompilerExecutable/build.gradle

    apply plugin: "groovy"
    
    repositories {
        mavenCentral()
    }
    
    compileGroovy {
        options.fork = true
        options.forkOptions.javaHome = file(jdkHome)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 152 bytes
    - Viewed (0)
  7. platforms/jvm/jvm-services/src/main/java/org/gradle/internal/jvm/inspection/CachingJvmMetadataDetector.java

        }
    
        @Override
        public JvmInstallationMetadata getMetadata(InstallationLocation javaInstallationLocation) {
            File javaHome = resolveSymlink(javaInstallationLocation.getLocation());
            return javaMetadata.computeIfAbsent(javaHome, file -> delegate.getMetadata(javaInstallationLocation));
        }
    
        private File resolveSymlink(File jdkPath) {
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 17:56:01 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaExecToolchainIntegrationTest.groovy

                }
            """
    
            when:
            withInstallations(jdk).run(":run", "--info")
    
            then:
            executedAndNotSkipped(":run")
            outputContains("Command: ${jdk.javaHome.absolutePath}")
    
            where:
            type           | jdk                                 | plugin
            'differentJdk' | AvailableJavaHomes.differentVersion | 'java-base'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 06:42:07 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/internal/tooling/BuildEnvironmentBuilder.java

            File javaHome = currentProcess.getJvm().getJavaHome();
            List<String> jvmArgs = currentProcess.getJvmOptions().getAllImmutableJvmArgs();
    
            DefaultBuildIdentifier buildIdentifier = new DefaultBuildIdentifier(target.getRootDir());
    
            return new DefaultBuildEnvironment(buildIdentifier, gradleUserHomeDir, gradleVersion, javaHome, jvmArgs);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/java/toolchain-config-task/groovy/build.gradle

        @Inject
        protected abstract ExecOperations getExecOps()
    
        @TaskAction
        void action() {
            def outputBytes = new ByteArrayOutputStream()
            def javaExecutable = javaHome.file("bin/java")
            execOps.exec {
                executable = javaExecutable.get().asFile.absolutePath
                args = ["-version"]
                standardOutput = outputBytes
                errorOutput = outputBytes
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top