Creates a WAR file from a Grails project.
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 |
---|---|
java.lang.Object |
additionalEventArgs |
boolean |
buildExplodedWar |
groovy.lang.Closure |
defaultWarDependencies |
GrailsBuildEventListener |
eventListener |
BuildSettings |
grailsSettings |
boolean |
includeJars |
java.lang.String |
warName |
Constructor and description |
---|
GrailsProjectWarCreator
(BuildSettings settings, GrailsBuildEventListener buildEventListener, GrailsProjectPackager projectPackager, groovy.util.AntBuilder ant = new AntBuilder(, boolean interactive = false) |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.Object |
cleanUpAfterWar() ") fileset(dir: "${resourcesDirPath}/grails-app", includes: "i18n/**") } |
|
java.lang.String |
configureWarName(java.lang.String commandLineName = null) |
|
void |
createDescriptor() |
|
protected void |
createDescriptorInternal(java.lang.Object pluginInfos, java.lang.Object resourceList) |
|
void |
packageWar() |
|
void |
packageWarOnly() |
|
void |
warPluginsInternal(java.util.List<GrailsPluginInfo> pluginInfos) |
") fileset(dir: "${resourcesDirPath}/grails-app", includes: "i18n/**") } def classesDirExcludes = { exclude(name: "hibernate") exclude(name: "spring") exclude(name: "hibernate/*") exclude(name: "spring/*") } ant.copy(todir:"${stagingDir}/WEB-INF/classes", preservelastmodified:true) { fileset(dir:pluginClassesDirPath, classesDirExcludes) } ant.copy(todir:"${stagingDir}/WEB-INF/classes", overwrite:true, preservelastmodified:true) { fileset(dir:classesDirPath, classesDirExcludes) } ant.mkdir(dir:"${stagingDir}/WEB-INF/spring") ant.copy(todir:"${stagingDir}/WEB-INF/spring", preservelastmodified:true) { fileset(dir:"${basedir}/grails-app/conf/spring", includes:"*
Groovy Documentation