Encapsulates the logic to package a project ready for execution.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
LOGGING_INITIALIZER_CLASS |
|
protected groovy.util.AntBuilder |
ant |
|
protected java.io.File |
basedir |
|
protected groovy.util.ConfigObject |
config |
|
protected boolean |
doCompile |
|
protected boolean |
packaged |
|
protected java.lang.Object |
resourcesDirPath |
|
protected java.lang.String |
serverContextPath |
|
protected java.io.File |
webXmlFile |
|
protected boolean |
webXmlGenerated |
Fields inherited from class | Fields |
---|---|
class BaseSettingsApi |
appClassName, buildEventListener, buildProps, buildSettings, configSlurper, enableProfile, grailsAppName, grailsHome, isInteractive, metadata, metadataFile, pluginSettings, pluginsHome, resolver |
Type | Name and description |
---|---|
boolean |
async |
java.lang.ClassLoader |
classLoader |
java.io.File |
configFile |
GrailsConsole |
grailsConsole |
boolean |
native2ascii |
GrailsProjectCompiler |
projectCompiler |
java.lang.String |
servletVersion |
boolean |
warMode |
Constructor and description |
---|
GrailsProjectPackager
(GrailsProjectCompiler compiler, boolean doCompile = true) |
GrailsProjectPackager
(GrailsProjectCompiler compiler, java.io.File configFile, boolean doCompile = true) |
GrailsProjectPackager
(GrailsProjectCompiler compiler, GrailsBuildEventListener buildEventListener, boolean doCompile = true) |
GrailsProjectPackager
(GrailsProjectCompiler compiler, GrailsBuildEventListener buildEventListener, java.io.File configFile, boolean doCompile = true) |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
configureServerContextPath() |
|
groovy.util.ConfigObject |
createConfig() Creates and loads the application Config |
|
java.lang.Object |
generatePluginXml(java.io.File descriptor, boolean compilePlugin = true, java.io.File targetDirectory = null ) Generates a plugin.xml file for the given plugin descriptor |
|
void |
generateWebXml(GrailsPluginManager pluginManager) Generates the web.xml file used by Grails to startup |
|
groovy.util.AntBuilder |
getAnt() |
|
groovy.util.ConfigObject |
packageApplication() Packages an application. |
|
void |
packageConfigFiles(java.lang.Object from, java.lang.Object overwrite = false) Packages any config files such as Hibernate config, XML files etc. |
|
protected void |
packageJspFiles() |
|
void |
packagePlugins() , * |
|
void |
packagePluginsForWar(java.lang.Object targetDir) Packages application plugins to the target directory in WAR mode |
|
void |
packageTlds() |
|
void |
processMessageBundles() Processes application message bundles converting them from native to ascii if required |
|
void |
startLogging(groovy.util.ConfigObject config) Starts the logging infrastructure |
Creates and loads the application Config
Generates a plugin.xml file for the given plugin descriptor
descriptor
- The descriptorcompilePlugin
- Whether the compile the pluginGenerates the web.xml file used by Grails to startup
Packages an application.
Packages any config files such as Hibernate config, XML files etc. to the projects resources directory
from
- Where to package from, *
Packages application plugins to the target directory in WAR mode
targetDir
- The target dirProcesses application message bundles converting them from native to ascii if required
Starts the logging infrastructure
config
- The config objectGroovy Documentation