Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for isJava7 (0.14 sec)

  1. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/api/JavaVersion.java

        }
    
    
        public boolean isJava5() {
            return this == VERSION_1_5;
        }
    
        public boolean isJava6() {
            return this == VERSION_1_6;
        }
    
        public boolean isJava7() {
            return this == VERSION_1_7;
        }
    
        public boolean isJava8() {
            return this == VERSION_1_8;
        }
    
        public boolean isJava9() {
            return this == VERSION_1_9;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/stdlib-java-extensions/src/test/groovy/org/gradle/api/JavaVersionSpec.groovy

            expect:
            JavaVersion.current() == current
            JavaVersion.current().java6 == isJava6
            JavaVersion.current().java7 == isJava7
            JavaVersion.current().java8 == isJava8
            JavaVersion.current().java9 == isJava9
            JavaVersion.current().java10 == isJava10
            JavaVersion.current().java11 == isJava11
            JavaVersion.current().java12 == isJava12
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  3. testing/internal-performance-testing/src/integTest/groovy/org/gradle/performance/fixture/MavenDownloaderTest.groovy

        def downloader
    
        def setup() {
            installRoot = Files.createTempDirectory(tmpDir.toPath(), null).toFile()
            downloader = new MavenInstallationDownloader(installRoot)
            if (JavaVersion.current().isJava7()) {
                System.setProperty("https.protocols", "TLSv1.2")
            }
        }
    
        def "can download Maven distribution with version #mavenVersion"() {
            when:
            def install
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/ExceptionPlaceholder.java

            }
            return stackTrace;
        }
    
        @SuppressWarnings("Since15")
        private static List<? extends Throwable> extractSuppressed(Throwable throwable) {
            if (isJava7()) {
                return Arrays.asList(throwable.getSuppressed());
            }
            return Collections.emptyList();
        }
    
        @SuppressWarnings("MixedMutabilityReturnType")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java

        System.setProperty("user.name", "-this-is-definitely-not-the-username-we-are-running-as//?");
        try {
          TempFileCreator.testMakingUserPermissionsFromScratch();
          assertThat(isJava8()).isFalse();
        } catch (IOException expectedIfJava8) {
          assertThat(isJava8()).isTrue();
        } finally {
          System.setProperty("user.name", save);
        }
      }
    
      private static boolean isAndroid() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 06 17:11:11 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java

        System.setProperty("user.name", "-this-is-definitely-not-the-username-we-are-running-as//?");
        try {
          TempFileCreator.testMakingUserPermissionsFromScratch();
          assertThat(isJava8()).isFalse();
        } catch (IOException expectedIfJava8) {
          assertThat(isJava8()).isTrue();
        } finally {
          System.setProperty("user.name", save);
        }
      }
    
      private static boolean isAndroid() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 06 17:11:11 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractBasicGroovyCompilerIntegrationSpec/compileJavaFx8Code/build.gradle

    apply plugin: "groovy"
    
    repositories {
        mavenCentral()
    }
    
    compileGroovy {
        if (JavaVersion.current().isJava9()) {
            options.compilerArgs += ['--add-modules', 'javafx.graphics']
            groovyOptions.forkOptions.jvmArgs += ['--add-modules', 'javafx.graphics']
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 279 bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/platform/JUnitPlatformEnvironmentIntegrationTest.groovy

                        assert getClass().getClassLoader() == Thread.currentThread().getContextClassLoader();
    
                        boolean isJava9 = Boolean.parseBoolean(System.getProperty("isJava9"));
    
                        List<String> classpath;
                        if (isJava9) {
                            classpath = Arrays.stream(System.getProperty("java.class.path").split(Pattern.quote(File.pathSeparator)))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestExecutionIntegrationTest.groovy

                        boolean isJava9 = Boolean.parseBoolean(System.getProperty("isJava9"));
                        String[] splitTestRuntimeClasspath = splitClasspath(System.getProperty("testRuntimeClasspath"));
                        if (isJava9) {
                            String[] splitCliClasspath = splitClasspath(System.getProperty("java.class.path"));
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/r211/ToolingApiIdeaModelCrossVersionSpec.groovy

                    }
                }
            """
    
            when:
            def ideaProject = loadIdeaProjectModel()
    
            then:
    
            ideaProject.javaLanguageSettings.languageLevel.isJava5()
            // modules
            ideaProject.modules.find { it.name == 'root' }.javaLanguageSettings == null
            ideaProject.modules.find { it.name == 'child1' }.javaLanguageSettings == null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top