Package org.sonar.api.batch.fs
Interface InputDir
-
- All Superinterfaces:
InputComponent,InputPath
- All Known Implementing Classes:
DefaultInputDir
@Deprecated public interface InputDir extends InputPath
Deprecated.since 6.6 Ability to report issues or measures on directories will soon be dropped. Report issues on project if needed.Layer overFilefor directories. You can access InputDir usingFileSystem.inputDir(File).- Since:
- 4.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.StringabsolutePath()Deprecated.Normalized absolute path.java.io.Filefile()Deprecated.The underlying absoluteFilejava.nio.file.Pathpath()Deprecated.The underlying absolutePathjava.lang.StringrelativePath()Deprecated.Path relative to module base directory.-
Methods inherited from interface org.sonar.api.batch.fs.InputComponent
isFile, key
-
-
-
-
Method Detail
-
relativePath
java.lang.String relativePath()
Deprecated.Path relative to module base directory. Path is unique and identifies directory within given. File separator is the forward slash ('/'), even on Microsoft Windows.FileSystem
Returnssrc/main/java/comif module base dir is/path/to/moduleand if directory is/path/to/module/src/main/java/com.
Relative path is not null and is normalized ('foo/../foo' is replaced by 'foo').- Specified by:
relativePathin interfaceInputPath- See Also:
InputFile.relativePath(),relativePath()
-
absolutePath
java.lang.String absolutePath()
Deprecated.Normalized absolute path. File separator is forward slash ('/'), even on Microsoft Windows.
This is not canonical path. Symbolic links are not resolved. For example if /project/src links to /tmp/src and basedir is /project, then this method returns /project/src. Usefile().getCanonicalPath()to resolve symbolic link.- Specified by:
absolutePathin interfaceInputPath- See Also:
InputFile.absolutePath(),absolutePath()
-
file
java.io.File file()
Deprecated.The underlying absoluteFile- Specified by:
filein interfaceInputPath- See Also:
InputFile.file(),file()
-
path
java.nio.file.Path path()
Deprecated.The underlying absolutePath- Specified by:
pathin interfaceInputPath- See Also:
InputFile.path(),path()
-
-