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 over File for directories. You can access InputDir using FileSystem.inputDir(File).
    Since:
    4.5
    • Method Detail

      • relativePath

        java.lang.String relativePath()
        Deprecated.
        Path relative to module base directory. Path is unique and identifies directory within given FileSystem. File separator is the forward slash ('/'), even on Microsoft Windows.
        Returns src/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 interface InputPath
        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. Use file().getCanonicalPath() to resolve symbolic link.
        Specified by:
        absolutePath in interface InputPath
        See Also:
        InputFile.absolutePath(), absolutePath()