org.sonar.api.resources
Class DefaultProjectFileSystem
java.lang.Object
org.sonar.api.resources.DefaultProjectFileSystem
Deprecated. replaced by ModuleFileSystem
and PathResolver
in 3.5
@Deprecated
public class DefaultProjectFileSystem
- extends Object
Method Summary |
static String |
getRelativePath(File file,
File dir)
Deprecated. getRelativePath("c:/foo/src/my/package/Hello.java", "c:/foo/src") is "my/package/Hello.java" |
static String |
getRelativePath(File file,
List<File> dirs)
Deprecated. getRelativePath("c:/foo/src/my/package/Hello.java", ["c:/bar", "c:/foo/src"]) is "my/package/Hello.java". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultProjectFileSystem
public DefaultProjectFileSystem()
- Deprecated.
getRelativePath
public static String getRelativePath(File file,
File dir)
- Deprecated.
- getRelativePath("c:/foo/src/my/package/Hello.java", "c:/foo/src") is "my/package/Hello.java"
- Returns:
- null if file is not in dir (including recursive subdirectories)
getRelativePath
public static String getRelativePath(File file,
List<File> dirs)
- Deprecated.
- getRelativePath("c:/foo/src/my/package/Hello.java", ["c:/bar", "c:/foo/src"]) is "my/package/Hello.java".
Relative path is composed of slashes. Windows backslaches are replaced by /
- Returns:
- null if file is not in dir (including recursive subdirectories)
Copyright © 2009-2014 SonarSource. All Rights Reserved.