Class SymbolicLink


  • public class SymbolicLink
    extends File
    A symbolic link installed in target package.
    • Field Detail

      • referencedPath

        private final java.nio.file.Path referencedPath
        Path this symlink points to. Can be relative or absolute.
    • Constructor Detail

      • SymbolicLink

        public SymbolicLink​(java.nio.file.Path targetPath,
                            java.nio.file.Path referencedPath)
        Create a new symbolic link object.
        Parameters:
        targetPath - location where the symbolic link will be placed (relative to install root)
        referencedPath - path referenced by this symlink (i.e. contents of the symlink)
    • Method Detail

      • installContents

        protected void installContents​(java.nio.file.Path targetAbsolutePath)
                                throws java.io.IOException
        Description copied from class: File
        Install the file into specified location.

        Implementations of this method can assume that all parent directory of target file already exists. Access mode of target file doesn't have to be set as it will be manipulated with other means.

        Specified by:
        installContents in class File
        Parameters:
        targetAbsolutePath - absolute path to the target file
        Throws:
        java.io.IOException