Class PathFactory
- java.lang.Object
-
- org.gradle.plugins.ide.idea.model.PathFactory
-
public class PathFactory extends Object
Path Factory.
-
-
Constructor Summary
Constructors Constructor Description PathFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathFactoryaddPathVariable(String name, File dir)FilePathpath(File file)Creates a path for the given file.FilePathpath(File file, boolean useFileScheme)Creates a path for the given file.Pathpath(String url)Creates a path for the given URL.Pathpath(String url, String relPath)Creates a path for the given URL.FilePathrelativePath(String pathVar, File file)Creates a path relative to the given path variable.
-
-
-
Method Detail
-
addPathVariable
public PathFactory addPathVariable(String name, File dir)
-
path
public FilePath path(File file, boolean useFileScheme)
Creates a path for the given file.- Parameters:
file- The file to generate a path foruseFileScheme- Whether 'file://' prefixed URI should be used even for JAR files
-
relativePath
public FilePath relativePath(String pathVar, File file)
Creates a path relative to the given path variable.
-
-