sourceDir -> { FileTree found = project.fileTree( ImmutableMap.of( "dir",
FileCollection variantCompileClasspath = getJarDependencies(); FileCollection uft = new UnionFileCollection(javaCompiler.getSource(), project.fileTree(destinationFolder)); javaCompiler.setSource(uft); logger.debug("Analyzing configuration: " + variantCompileClasspath.getFiles());
final FileTree fileTree = project.fileTree( classesDir ); for ( File file : fileTree ) { if ( !file.getName().endsWith( ".class" ) ) {
@Before public void fileTree() throws IOException { Project project = ProjectBuilder.builder() .withProjectDir(rootFolder()) .build(); fileTree = project.fileTree(rootFolder()); fileTree.exclude("userHome"); // somehow we're getting userHome\native\19\windows-amd64\native-platform.dll }
@Override @NonNull public List<ConfigurableFileTree> getSourceDirectoryTrees() { return source.stream() .map(sourceDir -> project.fileTree(ImmutableMap.of( "dir", sourceDir, "includes", getIncludes(), "excludes", getExcludes()))) .collect(Collectors.toList()); }
@Override public List<File> call() { return new ArrayList<File>( project.fileTree(scope.getPreDexOutputDir()).getFiles()); }
@InputFiles public FileCollection getPatches() { return getProject().fileTree(patchDir); }
@InputFiles @SkipWhenEmpty protected FileTree getFilteredInput() { List<FileTreeInternal> collect = input.getFiles().stream() .filter(File::isDirectory) .map(dir -> getProject().fileTree(dir)) .map(FileTreeInternal.class::cast) .collect(Collectors.toList()); return new UnionFileTree("actual " + getName() + " input", collect); }
@InputFiles FileCollection getInputFiles() { if(getSrcDir().exists() == false) throw new RuntimeException("srcDir doesn't exists"); if(getSrcDir().isDirectory() == false) throw new RuntimeException("srcDir isn't directory"); ConfigurableFileTree fileTree = getProject().fileTree(getSrcDir()); return fileTree; }
@OutputFiles protected FileTree getOutputFiles() { ConfigurableFileTree files = getProject().fileTree(destinationDir); files.include("**/*.css"); files.include("**/*.css.map"); return files; }
@OutputFiles @Optional public FileCollection getOuts() { File outFile = getOut(); if (outFile.isDirectory()) return getProject().fileTree(outFile); else return getProject().files(outFile); }
@Override public Collection<File> call() { if (config.isMultiDexEnabled() && !config.isLegacyMultiDexMode() && variantData.preDexTask != null) { return scope.getGlobalScope().getProject() .fileTree(variantData.preDexTask.getOutputFolder()).getFiles(); } return Collections.emptyList(); } });
@Override public void execute(Task task) { DeobfuscateJar binDeobf = (DeobfuscateJar) task.getProject().getTasks().getByName(TASK_DEOBF_BIN); DeobfuscateJar decompDeobf = (DeobfuscateJar) task.getProject().getTasks().getByName(TASK_DEOBF); for (File file : task.getProject().fileTree(delayedFile(DIR_DEP_ATS))) { binDeobf.addAt(file); decompDeobf.addAt(file); } } });
@InputFiles public FileCollection getSourceFiles() { ConfigurableFileTree componentFiles = getProject().fileTree(getPythonExtension().srcDir); componentFiles.exclude(standardExcludes()); return componentFiles; }
@InputFiles public FileCollection getSources() { if (this.classesDir == null) { return this.getProject().files(); } ConfigurableFileTree result = this.getProject().fileTree(this.classesDir); result.include("**/*.class"); return result; }
@InputFiles public FileCollection getSourceFiles() { ConfigurableFileTree componentFiles = getProject().fileTree(getComponent().srcDir); componentFiles.exclude(standardExcludes()); if (null != sources) { return sources.plus(componentFiles); } return componentFiles; }
@InputFiles FileCollection getTestFiles() { ConfigurableFileTree componentFiles = getProject().fileTree(getPythonExtension().testDir); componentFiles.exclude(standardExcludes()); if (testSource != null) { return testSource.plus(componentFiles); } return componentFiles; } }
@InputDirectory public FileTree getVirtualEnv() { ConfigurableFileTree files = getProject().fileTree(getPythonDetails().getVirtualEnv()); files.exclude(standardExcludes()); return files; }
@InputDirectory public FileTree getVirtualEnv() { ConfigurableFileTree files = getProject().fileTree(getPythonDetails().getVirtualEnv()); files.exclude(standardExcludes()); return files; }