org.sonar.api.resources
Class DefaultProjectFileSystem

java.lang.Object
  extended by org.sonar.api.resources.DefaultProjectFileSystem

Deprecated. replaced by ModuleFileSystem and PathResolver in 3.5

@Deprecated
public class DefaultProjectFileSystem
extends Object


Constructor Summary
DefaultProjectFileSystem()
          Deprecated.  
 
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
 

Constructor Detail

DefaultProjectFileSystem

public DefaultProjectFileSystem()
Deprecated. 
Method Detail

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-2013 SonarSource. All Rights Reserved.