/** * Create a symbolic link * * @param path * a {@link java.io.File} object. * @param target * target path of the symlink * @throws java.io.IOException * @since 3.0 */ public void createSymLink(File path, String target) throws IOException { FileUtils.createSymLink(path, target); }
/** * Create a symbolic link * * @param path * @param target * @throws IOException * @since 3.0 */ public void createSymLink(File path, String target) throws IOException { FileUtils.createSymLink(path, target); }
/** * Create a symbolic link * * @param path * a {@link java.io.File} object. * @param target * target path of the symlink * @throws java.io.IOException * @since 3.0 */ public void createSymLink(File path, String target) throws IOException { FileUtils.createSymLink(path, target); }
/** * @param path * path of the symlink to be created * @param target * target of the symlink to be created * @throws IOException * @deprecated use {@link FileUtils#createSymLink(File, String)} instead */ @Deprecated public static void createSymLink(File path, String target) throws IOException { FileUtils.createSymLink(path, target); }
/** * @param db * the repository * @param link * the path of the symbolic link to create * @param target * the target of the symbolic link * @return the path to the symbolic link * @throws Exception * @since 4.2 */ public static Path writeLink(Repository db, String link, String target) throws Exception { return FileUtils.createSymLink(new File(db.getWorkTree(), link), target); }
/** * Write a symbolic link * * @param db * the repository * @param link * the path of the symbolic link to create * @param target * the target of the symbolic link * @return the path to the symbolic link * @throws Exception * @since 4.2 */ public static Path writeLink(Repository db, String link, String target) throws Exception { return FileUtils.createSymLink(new File(db.getWorkTree(), link), target); }