Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for findScalaJar (0.38 sec)

  1. platforms/jvm/scala/src/main/java/org/gradle/api/tasks/ScalaRuntime.java

                    }
                }
    
                private Configuration inferScalaClasspath() {
                    File scalaLibraryJar = findScalaJar(classpath, "library");
                    File scala3LibraryJar = findScalaJar(classpath, "library_3");
                    boolean isScala3 = scala3LibraryJar != null;
                    if (scalaLibraryJar == null && scala3LibraryJar == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. platforms/jvm/scala/src/test/groovy/org/gradle/api/tasks/scala/internal/ScalaRuntimeHelperTest.groovy

            when:
            def file = ScalaRuntimeHelper.findScalaJar([new File("other.jar"), new File("scala-jdbc-1.5.jar"), new File("scala-compiler-1.7.jar")], "jdbc")
    
            then:
            file.name == "scala-jdbc-1.5.jar"
        }
    
        def "returns null if Scala Jar not found"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/dsl/org.gradle.api.tasks.ScalaRuntime.xml

                        <td>Name</td>
                    </tr>
                </thead>
                <tr>
                    <td>inferScalaClasspath</td>
                </tr>
                <tr>
                    <td>findScalaJar</td>
                </tr>
                <tr>
                    <td>getScalaVersion</td>
                </tr>
            </table>
        </section>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 674 bytes
    - Viewed (0)
  4. platforms/jvm/scala/src/main/java/org/gradle/api/tasks/scala/internal/ScalaCompileOptionsConfigurer.java

                return;
            }
    
            // When Scala 3 is used it appears on the classpath together with Scala 2
            File scalaJar = ScalaRuntimeHelper.findScalaJar(scalaClasspath, "library_3");
            if (scalaJar == null) {
                scalaJar = ScalaRuntimeHelper.findScalaJar(scalaClasspath, "library");
                if (scalaJar == null) {
                    return;
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. platforms/jvm/scala/src/main/java/org/gradle/api/tasks/scala/internal/ScalaRuntimeHelper.java

         *
         * @param classpath the class path to search
         * @param appendix the appendix to search for
         * @return a Scala Jar file with the specified appendix
         */
        @Nullable
        public static File findScalaJar(Iterable<File> classpath, String appendix) {
            for (File file : classpath) {
                Matcher matcher = SCALA_JAR_PATTERN.matcher(file.getName());
                if (matcher.matches() && matcher.group(1).equals(appendix)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/ide/ide-plugins/src/main/java/org/gradle/plugins/ide/idea/internal/IdeaScalaConfigurer.java

            if (runtime != null) {
                FileCollection scalaClasspath = runtime.inferScalaClasspath(files);
                File compilerJar = runtime.findScalaJar(scalaClasspath, "compiler");
                if (compilerJar == null) {
                    compilerJar = runtime.findScalaJar(scalaClasspath, "compiler_3");
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:39 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  7. platforms/jvm/scala/src/main/java/org/gradle/api/tasks/scala/ScalaDoc.java

                parameters.getClasspath().from(getClasspath());
                parameters.getOutputDirectory().set(getDestinationDir());
                boolean isScala3 = ScalaRuntimeHelper.findScalaJar(getScalaClasspath(), "library_3") != null;
                parameters.getIsScala3().set(isScala3);
                if (isScala3) {
                    parameters.getSources().from(getFilteredCompilationOutputs());
                } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top