Package org.grails.cli.profile
Interface ProjectContext
-
- All Known Subinterfaces:
ExecutionContext
public interface ProjectContextThe project context used by aProfile
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.FilegetBaseDir()grails.config.ConfigMapgetConfig()grails.build.logging.GrailsConsolegetConsole()java.lang.StringnavigateConfig(java.lang.String... path)Obtains a value from the codegen configuration<T> TnavigateConfigForType(java.lang.Class<T> requiredType, java.lang.String... path)Obtains a value of the given type from the codegen configuration
-
-
-
Method Detail
-
getConsole
grails.build.logging.GrailsConsole getConsole()
- Returns:
- The
GrailsConsoleinstance
-
getBaseDir
java.io.File getBaseDir()
- Returns:
- The base directory of the project
-
getConfig
grails.config.ConfigMap getConfig()
- Returns:
- The codegen config
-
navigateConfig
java.lang.String navigateConfig(java.lang.String... path)
Obtains a value from the codegen configuration- Parameters:
path- The path to value- Returns:
- The value or null if not set
-
navigateConfigForType
<T> T navigateConfigForType(java.lang.Class<T> requiredType, java.lang.String... path)Obtains a value of the given type from the codegen configuration- Parameters:
requiredType- The required return typepath- The path to value- Returns:
- The value or null if not set
-
-