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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.file.Path
referencedPath
Path this symlink points to.-
Fields inherited from class org.fedoraproject.xmvn.tools.install.File
DEFAULT_MODE, DIRECTORY_MODE, MAX_MODE
-
-
Constructor Summary
Constructors Constructor Description SymbolicLink(java.nio.file.Path targetPath, java.nio.file.Path referencedPath)
Create a new symbolic link object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
installContents(java.nio.file.Path targetAbsolutePath)
Install the file into specified location.-
Methods inherited from class org.fedoraproject.xmvn.tools.install.File
equals, getAccessMode, getDescriptor, getDescriptorExtra, getTargetPath, hashCode, install
-
-
-
-
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 classFile
- Parameters:
targetAbsolutePath
- absolute path to the target file- Throws:
java.io.IOException
-
-