Package org.sonar.api.batch.fs
Interface InputDir
-
- All Superinterfaces:
InputComponent
,InputPath
@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 overFile
for 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.String
absolutePath()
Deprecated.Normalized absolute path.java.io.File
file()
Deprecated.The underlying absoluteFile
java.nio.file.Path
path()
Deprecated.The underlying absolutePath
java.lang.String
relativePath()
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/com
if module base dir is/path/to/module
and 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:
relativePath
in 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:
absolutePath
in interfaceInputPath
- See Also:
InputFile.absolutePath()
,absolutePath()
-
file
java.io.File file()
Deprecated.The underlying absoluteFile
- Specified by:
file
in interfaceInputPath
- See Also:
InputFile.file()
,file()
-
path
java.nio.file.Path path()
Deprecated.The underlying absolutePath
- Specified by:
path
in interfaceInputPath
- See Also:
InputFile.path()
,path()
-
-