Java Code Examples for org.gradle.api.file.FileVisitDetails#getFile()
The following examples show how to use
org.gradle.api.file.FileVisitDetails#getFile() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ClassFilesAnalyzer.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public void visitFile(FileVisitDetails fileDetails) { File file = fileDetails.getFile(); if (!file.getName().endsWith(".class")) { return; } String className = fileDetails.getPath().replaceAll("/", ".").replaceAll("\\.class$", ""); if (!className.startsWith(packagePrefix)) { return; } ClassAnalysis analysis = analyzer.getClassAnalysis(className, file); accumulator.addClass(className, analysis.isDependencyToAll(), analysis.getClassDependencies()); }
Example 2
Source File: DefaultTestClassScanner.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public void visitFile(FileVisitDetails fileDetails) { final File file = fileDetails.getFile(); if (file.getAbsolutePath().endsWith(".class")) { visitClassFile(fileDetails); } }
Example 3
Source File: DefaultTestClassScanner.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public void visitFile(FileVisitDetails fileDetails) { final File file = fileDetails.getFile(); if (file.getAbsolutePath().endsWith(".class")) { visitClassFile(fileDetails); } }
Example 4
Source File: ClassFilesAnalyzer.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public void visitFile(FileVisitDetails fileDetails) { File file = fileDetails.getFile(); if (!file.getName().endsWith(".class")) { return; } String className = fileDetails.getPath().replaceAll("/", ".").replaceAll("\\.class$", ""); if (!className.startsWith(packagePrefix)) { return; } ClassAnalysis analysis = analyzer.getClassAnalysis(className, file); accumulator.addClass(className, analysis.isDependencyToAll(), analysis.getClassDependencies()); }
Example 5
Source File: DefaultTestClassScanner.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public void visitFile(FileVisitDetails fileDetails) { final File file = fileDetails.getFile(); if (file.getAbsolutePath().endsWith(".class")) { visitClassFile(fileDetails); } }
Example 6
Source File: DefaultTestClassScanner.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public void visitFile(FileVisitDetails fileDetails) { final File file = fileDetails.getFile(); if (file.getAbsolutePath().endsWith(".class")) { visitClassFile(fileDetails); } }
Example 7
Source File: NonJavaccSourceFileVisitor.java From javaccPlugin with MIT License | 5 votes |
@Override public void visitFile(FileVisitDetails fileDetails) { if (!isValidSourceFileForTask(fileDetails)) { File sourceFile = fileDetails.getFile(); File destinationFile = new File(sourceFile.getAbsolutePath().replace(compiler.getInputDirectory().getAbsolutePath(), compiler.getOutputDirectory().getAbsolutePath())); copyFile(sourceFile, destinationFile); } }
Example 8
Source File: JavaccSourceFileVisitor.java From javaccPlugin with MIT License | 4 votes |
private File computeInputDirectory(FileVisitDetails fileVisitDetails) { File fileAbsolute = fileVisitDetails.getFile(); File fileRelative = new File(fileVisitDetails.getPath()); return new File(fileAbsolute.getAbsolutePath().replace(fileRelative.getPath(), "")); }