Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getRelativeSourcePaths (0.48 sec)

  1. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/recomp/FileNameDerivingClassNameConverter.java

                }
            }
    
            return Collections.emptySet();
        }
    
        @Override
        public Set<String> getRelativeSourcePaths(String className) {
            Set<String> sourcePaths = delegate.getRelativeSourcePaths(className);
            if (!sourcePaths.isEmpty()) {
                return sourcePaths;
            }
    
            Set<String> paths = fileExtensions.stream()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/recomp/DefaultSourceFileClassNameConverter.java

        }
    
        @Override
        public Set<String> getRelativeSourcePaths(String fqcn) {
            return classSourceMapping.getOrDefault(fqcn, Collections.emptySet());
        }
    
        @Override
        public Set<String> getRelativeSourcePathsThatExist(String className) {
            return getRelativeSourcePaths(className);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/recomp/SourceFileClassNameConverter.java

         * This happens e.g. during "copy class" refactorings in IntelliJ.
         * Empty if the source for this class could not be determined.
         */
        Set<String> getRelativeSourcePaths(String className);
    
        /**
         * Same as above, but only return files that actually exist.
         * The return value can be empty if the class given as argument does not exist.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/incremental/recomp/GroovySourceFileClassNameConverterTest.groovy

            'YourClass.groovy'  | ['org.gradle.YourClass'] as Set
            'OtherClass.groovy' | [] as Set
        }
    
        def 'can get files by classname'() {
            expect:
            converter.getRelativeSourcePaths(fqcn) == files
    
            where:
            fqcn                    | files
            'org.gradle.MyClass1'   | ['MyClass.groovy'] as Set
            'org.gradle.MyClass2'   | ['MyClass.groovy'] as Set
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. platforms/jvm/language-groovy/src/main/java/org/gradle/api/internal/tasks/compile/incremental/recomp/GroovyRecompilationSpecProvider.java

                return;
            }
            Set<String> classesWithJavaSource = recompilationSpec.getClassesToCompile().stream()
                .flatMap(classToCompile -> sourceFileClassNameConverter.getRelativeSourcePaths(classToCompile).stream())
                .filter(sourcePath -> sourcePath.endsWith(".java"))
                .flatMap(sourcePath -> sourceFileClassNameConverter.getClassNames(sourcePath).stream())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/recomp/AbstractRecompilationSpecProvider.java

            Set<String> independentClasses = new LinkedHashSet<>();
            for (String classToCompile : classesToCompile) {
                for (String sourcePath : sourceFileClassNameConverter.getRelativeSourcePaths(classToCompile)) {
                    independentClasses.addAll(collectIndependentClassesForSourcePath(sourcePath, spec, sourceFileClassNameConverter));
                    spec.addSourcePath(sourcePath);
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 23:55:46 UTC 2024
    - 14.3K bytes
    - Viewed (0)
Back to top