Class SymbolicLink

java.lang.Object
org.fedoraproject.xmvn.tools.install.File
org.fedoraproject.xmvn.tools.install.SymbolicLink

public class SymbolicLink extends File
A symbolic link installed in target package.
Author:
Mikolaj Izdebski
  • Constructor Details

    • SymbolicLink

      public SymbolicLink(Path targetPath, 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 Details

    • installContents

      protected void installContents(Path targetAbsolutePath) throws 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:
      IOException