Restored obsoleted createSymLink/readSymLink in FileUtil

Bug: 475070
Change-Id: I425ad842dc26b55f747f192348398a3912c0ca6b
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
This commit is contained in:
Andrey Loskutov 2015-08-18 20:01:15 +02:00
parent 548ba66a37
commit 8b38c7db42
2 changed files with 25 additions and 14 deletions

View File

@ -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>

View File

@ -64,6 +64,31 @@
*/
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