Permalink
Browse files

update to 2.1 rc3

  • Loading branch information...
0 parents commit d6e6da60dbb9bea7fac955337d172a25ed225a2d @graemerocher graemerocher committed Jun 19, 2012
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="grails-app/conf"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/>
+ <classpathentry kind="con" path="com.springsource.sts.grails.core.CLASSPATH_CONTAINER"/>
+ <classpathentry kind="output" path="target/eclipseclasses"/>
+</classpath>
@@ -0,0 +1,5 @@
+plugin.xml
+target
+web-app
+*.zip
+.settings
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>tomcat</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.springsource.sts.grails.core.nature</nature>
+ <nature>org.eclipse.jdt.groovy.core.groovyNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ </natures>
+</projectDescription>
15 LICENSE
@@ -0,0 +1,15 @@
+/*
+ * Copyright 2004-2005 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
@@ -0,0 +1,24 @@
+/* Copyright 2004-2005 Graeme Rocher
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+class TomcatGrailsPlugin {
+ def version = "2.1.0.RC3"
+ def grailsVersion = "2.1 > *"
+ def scopes = [excludes: 'war']
+ def author = "Graeme Rocher"
+ def authorEmail = "graeme.rocher@springsource.com"
+ def title = "Apache Tomcat plugin for Grails"
+ def description = 'Makes Tomcat 7.0 the default servlet container for Grails at development time.'
+ def documentation = "http://grails.org/plugin/tomcat"
+}
@@ -0,0 +1,5 @@
+#Grails Metadata file
+#Thu Apr 19 16:07:57 CEST 2012
+app.grails.version=2.1.0.RC3
+app.name=tomcat
+plugins.release=2.0.3
No changes.
@@ -0,0 +1,35 @@
+
+tomcatVersion = "7.0.27"
+
+grails.project.work.dir = 'target'
+
+grails.project.dependency.resolution = {
+
+ inherits "global"
+ log "warn"
+
+ repositories {
+ grailsCentral()
+ }
+
+ dependencies {
+ // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
+ runtime( "org.apache.tomcat:tomcat-catalina-ant:$tomcatVersion" ) {
+ transitive = false
+ }
+ compile "org.apache.tomcat.embed:tomcat-embed-core:$tomcatVersion"
+ runtime "org.apache.tomcat.embed:tomcat-embed-jasper:$tomcatVersion"
+ runtime "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatVersion"
+ runtime "org.apache.tomcat.embed:tomcat-embed-logging-juli:$tomcatVersion"
+
+ // needed for JSP compilation
+ runtime "org.eclipse.jdt.core.compiler:ecj:3.6.2"
+
+ compile( "org.grails:grails-plugin-tomcat:${grailsVersion}" ) {
+ excludes group:"org.grails", name:"grails-core"
+ excludes group:"org.grails", name:"grails-bootstrap"
+ excludes group:"org.grails", name:"grails-web"
+ }
+ }
+
+}
@@ -0,0 +1,60 @@
+scriptScope=grails.util.BuildScope.WAR
+
+includeTargets << grailsScript("_GrailsWar" )
+
+ant.taskdef(name:"deploy", classname:"org.apache.catalina.ant.DeployTask")
+ant.taskdef(name:"list", classname:"org.apache.catalina.ant.ListTask")
+ant.taskdef(name:"undeploy", classname:"org.apache.catalina.ant.UndeployTask")
+
+target(main: '''\
+Script used to interact with remote Tomcat. The following subcommands are available:
+
+grails tomcat deploy - Deploy to a tomcat server
+grails tomcat undeploy - Undeploy from a tomcat server
+''') {
+ depends(parseArguments, compile,createConfig)
+
+ def cmd = argsMap.params ? argsMap.params[0] : 'deploy'
+ argsMap.params.clear()
+ def user = config.tomcat.deploy.username ?: 'manager'
+ def pass = config.tomcat.deploy.password ?: 'secret'
+ def url = config.tomcat.deploy.url ?: 'http://localhost:8080/manager'
+
+ switch(cmd) {
+ case 'deploy':
+ war()
+ println "Deploying application $serverContextPath to Tomcat"
+ deploy(war:warName,
+ url:url,
+ path:serverContextPath,
+ username:user,
+ password:pass)
+
+ break
+ case 'list':
+ list(
+ url:url,
+ username:user,
+ password:pass)
+
+ break
+ case 'undeploy':
+ configureServerContextPath()
+ println "Undeploying application $serverContextPath from Tomcat"
+ println '''\
+NOTE: If you experience a classloading error during undeployment you need to take the following steps:
+
+* Upgrade to Tomcat 6.0.20 or above
+* Pass this system argument to Tomcat: -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false
+
+See http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html for more information
+'''
+ undeploy(
+ url:url,
+ path:serverContextPath,
+ username:user,
+ password:pass)
+ }
+}
+
+setDefaultTarget("main")
@@ -0,0 +1,4 @@
+// No programmable web.xml path yet, so put it in the right place automatically
+eventGenerateWebXmlEnd = {
+ System.setProperty("grails.server.factory", "org.grails.plugins.tomcat.TomcatServerFactory")
+}

0 comments on commit d6e6da6

Please sign in to comment.