Interface ProjectContext

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.io.File getBaseDir()  
      grails.config.ConfigMap getConfig()  
      grails.build.logging.GrailsConsole getConsole()  
      java.lang.String navigateConfig​(java.lang.String... path)
      Obtains a value from the codegen configuration
      <T> T navigateConfigForType​(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 GrailsConsole instance
      • 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 type
        path - The path to value
        Returns:
        The value or null if not set