Package com.sidneysimmons.kimber.util
Class ProjectUtil
java.lang.Object
com.sidneysimmons.kimber.util.ProjectUtil
Utility class for working with the gradle project / sub-projects.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBuildDirectory(org.gradle.api.Project project) Get the build directory absolute path.static StringgetFullHierarchyProjectName(org.gradle.api.Project project) Get the full hierarchy project name.static StringgetFullHierarchyProjectPath(org.gradle.api.Project project) Get the full hierarchy project path.If the main project is called "abc" and it has a subproject called "def" the value returned will be "abc/def".static StringgetProjectDirectory(org.gradle.api.Project project) Get the project directory absolute path.
-
Method Details
-
getProjectDirectory
Get the project directory absolute path.- Parameters:
project- the project- Returns:
- the project directory absolute path
-
getBuildDirectory
Get the build directory absolute path.- Parameters:
project- the project- Returns:
- the build directory absolute path
-
getFullHierarchyProjectName
Get the full hierarchy project name. If the main project is called "abc" and it has a subproject called "def" the value returned will be "abc-def".- Parameters:
project- the project- Returns:
- the full hierarchy project name
-
getFullHierarchyProjectPath
Get the full hierarchy project path.If the main project is called "abc" and it has a subproject called "def" the value returned will be "abc/def".- Parameters:
project- the project- Returns:
- the full hierarchy project path
-