public final class GradleProjects extends Object
Modifier and Type | Method and Description |
---|---|
static File |
getJavadoc(File binary)
Get the JavaDoc artifact for the given binary if available.
|
static File |
getSources(File binary)
Get the Source artifact for the given binary if available.
|
static boolean |
isGradleCacheArtifact(File toCheck) |
static Map<String,Project> |
openedProjectDependencies(Project project)
Returns all the projects on which the given project depends and are opened in the IDE.
|
static Map<String,Project> |
openedSiblings(Project project)
Returns all the siblings project of the given project which are opened in the IDE.
|
static boolean |
testForProject(File dir)
Try to determine if the given directory belongs to a Gradle project.
|
static boolean |
testForRootProject(File dir)
Try to determine if the given directory belongs to a Gradle root project.
|
public static File getSources(File binary)
binary
- the location of the binary artifact.null
if that is
not available.public static boolean isGradleCacheArtifact(File toCheck)
public static File getJavadoc(File binary)
binary
- the location of the binary artifact.null
if that is
not available.public static Map<String,Project> openedSiblings(Project project)
project
- a project.<name, project>
map of the siblings, never null
public static Map<String,Project> openedProjectDependencies(Project project)
project
- a project.<name, project>
map of dependencies, never null
public static boolean testForProject(File dir)
dir
- the directory to testpublic static boolean testForRootProject(File dir)
dir
- the directory to test