|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProjectFileSystem
Method Summary | |
---|---|
ProjectFileSystem |
addSourceDir(File dir)
|
ProjectFileSystem |
addTestDir(File dir)
|
File |
getBasedir()
Project root directory. |
File |
getBuildDir()
Build directory. |
File |
getBuildOutputDir()
|
File |
getFileFromBuildDirectory(String filename)
|
List<File> |
getJavaSourceFiles()
Java source files, excluding unit tests and files matching project exclusion patterns. |
File |
getReportOutputDir()
|
File |
getSonarWorkingDirectory()
|
Charset |
getSourceCharset()
Source encoding. |
List<File> |
getSourceDirs()
|
List<File> |
getSourceFiles(Language... langs)
Source files, excluding unit tests and files matching project exclusion patterns. |
List<File> |
getTestDirs()
|
List<File> |
getTestFiles(Language... langs)
Unit test files, excluding files matching project exclusion patterns. |
boolean |
hasJavaSourceFiles()
Check if the project has Java files, excluding unit tests and files matching project exclusion patterns. |
boolean |
hasTestFiles(Language lang)
Check if the project has unit test files, excluding files matching project exclusion patterns. |
File |
resolvePath(String path)
Get file from path. |
Resource |
toResource(File file)
|
File |
writeToWorkingDirectory(String content,
String fileName)
Save data into a new file of Sonar working directory. |
Method Detail |
---|
Charset getSourceCharset()
File getBasedir()
File getBuildDir()
File getBuildOutputDir()
List<File> getSourceDirs()
ProjectFileSystem addSourceDir(File dir)
List<File> getTestDirs()
ProjectFileSystem addTestDir(File dir)
File getReportOutputDir()
File getSonarWorkingDirectory()
File resolvePath(String path)
List<File> getSourceFiles(Language... langs)
langs
- language filter. Check all files, whatever their language, if null or empty.List<File> getJavaSourceFiles()
boolean hasJavaSourceFiles()
List<File> getTestFiles(Language... langs)
boolean hasTestFiles(Language lang)
File writeToWorkingDirectory(String content, String fileName) throws IOException
IOException
File getFileFromBuildDirectory(String filename)
Resource toResource(File file)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |