|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.cli.api.BaseSettingsApi org.codehaus.groovy.grails.project.packaging.GrailsProjectPackager
class GrailsProjectPackager extends BaseSettingsApi
Encapsulates the logic to package a project ready for execution.
Field Summary | |
---|---|
static java.lang.String |
LOGGING_INITIALIZER_CLASS
|
Fields inherited from class BaseSettingsApi | |
---|---|
appClassName, buildEventListener, buildProps, buildSettings, configSlurper, enableProfile, grailsAppName, grailsHome, isInteractive, metadata, metadataFile, pluginSettings, pluginsHome, resolver |
Property Summary | |
---|---|
boolean |
async
|
java.lang.ClassLoader |
classLoader
|
java.io.File |
configFile
|
GrailsConsole |
grailsConsole
|
boolean |
native2ascii
|
GrailsProjectCompiler |
projectCompiler
|
java.lang.String |
servletVersion
|
boolean |
warMode
|
Constructor Summary | |
GrailsProjectPackager(GrailsProjectCompiler compiler, java.io.File configFile, boolean doCompile = true)
|
|
GrailsProjectPackager(GrailsProjectCompiler compiler, GrailsBuildEventListener buildEventListener, java.io.File configFile, boolean doCompile = true)
|
Method Summary | |
---|---|
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 )
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)
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
|
packageTemplates(java.lang.Object scaffoldDir)
|
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 |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final java.lang.String LOGGING_INITIALIZER_CLASS
Property Detail |
---|
boolean async
java.lang.ClassLoader classLoader
java.io.File configFile
GrailsConsole grailsConsole
boolean native2ascii
GrailsProjectCompiler projectCompiler
java.lang.String servletVersion
boolean warMode
Constructor Detail |
---|
GrailsProjectPackager(GrailsProjectCompiler compiler, java.io.File configFile, boolean doCompile = true)
GrailsProjectPackager(GrailsProjectCompiler compiler, GrailsBuildEventListener buildEventListener, java.io.File configFile, boolean doCompile = true)
Method Detail |
---|
@CompileStatic java.lang.String configureServerContextPath()
@CompileStatic groovy.util.ConfigObject createConfig()
java.lang.Object generatePluginXml(java.io.File descriptor, boolean compilePlugin = true )
descriptor
- The descriptorcompilePlugin
- Whether the compile the plugin
void generateWebXml(GrailsPluginManager pluginManager)
@CompileStatic groovy.util.AntBuilder getAnt()
@CompileStatic groovy.util.ConfigObject packageApplication()
void packageConfigFiles(java.lang.Object from)
from
- Where to package from
protected void packageJspFiles()
void packagePlugins()
void packagePluginsForWar(java.lang.Object targetDir)
targetDir
- The target dir
void packageTemplates(java.lang.Object scaffoldDir)
@CompileStatic void packageTlds()
void processMessageBundles()
void startLogging(groovy.util.ConfigObject config)
config
- The config object
Groovy Documentation