Class PathFactory
- java.lang.Object
-
- org.gradle.plugins.ide.idea.model.PathFactory
-
public class PathFactory extends java.lang.ObjectPath Factory.
-
-
Constructor Summary
Constructors Constructor Description PathFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathFactoryaddPathVariable(java.lang.String name, java.io.File dir)FilePathpath(java.io.File file)Creates a path for the given file.FilePathpath(java.io.File file, boolean useFileScheme)Creates a path for the given file.Pathpath(java.lang.String url)Creates a path for the given URL.Pathpath(java.lang.String url, java.lang.String relPath)Creates a path for the given URL.FilePathrelativePath(java.lang.String pathVar, java.io.File file)Creates a path relative to the given path variable.
-
-
-
Method Detail
-
addPathVariable
public PathFactory addPathVariable(java.lang.String name, java.io.File dir)
-
path
public FilePath path(java.io.File file)
Creates a path for the given file.
-
path
public FilePath path(java.io.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(java.lang.String pathVar, java.io.File file)
Creates a path relative to the given path variable.
-
path
public Path path(java.lang.String url)
Creates a path for the given URL.
-
path
public Path path(java.lang.String url, java.lang.String relPath)
Creates a path for the given URL.
-
-