Class SymlinkUtils
- java.lang.Object
-
- org.codehaus.plexus.components.io.attributes.SymlinkUtils
-
public class SymlinkUtils extends Object
- Author:
- Kristian Rosenvold
-
-
Constructor Summary
Constructors Constructor Description SymlinkUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FilecreateSymbolicLink(File symlink, File target)static FilereadSymbolicLink(File symlink)Reads the target of the symbolic link
-
-
-
Method Detail
-
readSymbolicLink
@Nonnull public static File readSymbolicLink(@Nonnull File symlink) throws IOException
Reads the target of the symbolic link- Parameters:
symlink- A file that is a symlink- Returns:
- A file that is the target of the symlink
- Throws:
IOException
-
createSymbolicLink
@Nonnull public static File createSymbolicLink(@Nonnull File symlink, File target) throws IOException
- Throws:
IOException
-
-