Browse Source

Restored obsoleted createSymLink/readSymLink in FileUtil

Bug: 475070
Change-Id: I425ad842dc26b55f747f192348398a3912c0ca6b
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
stable-4.1
Andrey Loskutov 9 years ago
parent
commit
8b38c7db42
  1. 14
      org.eclipse.jgit/.settings/.api_filters
  2. 25
      org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtil.java

14
org.eclipse.jgit/.settings/.api_filters

@ -21,18 +21,4 @@
</message_arguments>
</filter>
</resource>
<resource path="src/org/eclipse/jgit/util/FileUtil.java" type="org.eclipse.jgit.util.FileUtil">
<filter id="338792546">
<message_arguments>
<message_argument value="org.eclipse.jgit.util.FileUtil"/>
<message_argument value="createSymLink(File, String)"/>
</message_arguments>
</filter>
<filter id="338792546">
<message_arguments>
<message_argument value="org.eclipse.jgit.util.FileUtil"/>
<message_argument value="readSymlink(File)"/>
</message_arguments>
</filter>
</resource>
</component>

25
org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtil.java

@ -64,6 +64,31 @@ import org.eclipse.jgit.util.FS.Attributes;
*/
public class FileUtil {
/**
* @param path
* @return target path of the symlink
* @throws IOException
* @deprecated use {@link FileUtils#readSymLink(File)} instead
*/
@Deprecated
public static String readSymlink(File path) throws IOException {
return FileUtils.readSymLink(path);
}
/**
* @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 path
* @return {@code true} if the passed path is a symlink

Loading…
Cancel
Save