diff options
author | Andrey Loskutov <loskutov@gmx.de> | 2015-08-18 20:01:15 +0200 |
---|---|---|
committer | Andrey Loskutov <loskutov@gmx.de> | 2015-08-18 20:01:15 +0200 |
commit | 8b38c7db4266741b3098fabc86e4c2907035517a (patch) | |
tree | 955a42e43c67a15178b390568d4af85eca5024e1 | |
parent | 548ba66a377e74e4dce35545798738509fea129b (diff) | |
download | jgit-8b38c7db4266741b3098fabc86e4c2907035517a.tar.gz jgit-8b38c7db4266741b3098fabc86e4c2907035517a.zip |
Restored obsoleted createSymLink/readSymLink in FileUtil
Bug: 475070
Change-Id: I425ad842dc26b55f747f192348398a3912c0ca6b
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r-- | org.eclipse.jgit/.settings/.api_filters | 14 | ||||
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtil.java | 25 |
2 files changed, 25 insertions, 14 deletions
diff --git a/org.eclipse.jgit/.settings/.api_filters b/org.eclipse.jgit/.settings/.api_filters index 37351c04fd..a1e79e2d29 100644 --- a/org.eclipse.jgit/.settings/.api_filters +++ b/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> diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtil.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtil.java index 54b1ae3319..5dfba4ac4a 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtil.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtil.java @@ -66,6 +66,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 */ public static boolean isSymlink(File path) { |