Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4ff86c5
Showing
61 changed files
with
5,172 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src/java"/> | ||
<classpathentry kind="src" path="src/groovy"/> | ||
<classpathentry kind="src" path="grails-app/conf"/> | ||
<classpathentry kind="src" path="grails-app/controllers"/> | ||
<classpathentry kind="src" path="grails-app/domain"/> | ||
<classpathentry kind="src" path="grails-app/services"/> | ||
<classpathentry kind="src" path="grails-app/taglib"/> | ||
<classpathentry kind="src" path="grails-app/utils"/> | ||
<classpathentry kind="src" path="test/integration"/> | ||
<classpathentry kind="src" path="test/unit"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="con" path="com.springsource.sts.grails.core.CLASSPATH_CONTAINER"/> | ||
<classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/release-1.0.0.RC3/src/groovy"> | ||
<attributes> | ||
<attribute name="com.springsource.sts.grails.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/release-1.0.0.RC3/src/java"> | ||
<attributes> | ||
<attribute name="com.springsource.sts.grails.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry excluding="BuildConfig.groovy|*DataSource.groovy|UrlMappings.groovy|Config.groovy|BootStrap.groovy|spring/resources.groovy" kind="src" path=".link_to_grails_plugins/svn-1.0.0.M1/grails-app/conf"> | ||
<attributes> | ||
<attribute name="com.springsource.sts.grails.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/svn-1.0.0.M1/src/groovy"> | ||
<attributes> | ||
<attribute name="com.springsource.sts.grails.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/tomcat-1.3.7/src/groovy"> | ||
<attributes> | ||
<attribute name="com.springsource.sts.grails.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="output" path="web-app/WEB-INF/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
*.class | ||
target | ||
*.zip | ||
plugin.xml | ||
*.log | ||
*plugin.xml | ||
*.pom | ||
*.md5 | ||
*.sha1 | ||
.classpath | ||
.link_to_grails_plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>NewDoc</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> | ||
<linkedResources> | ||
<link> | ||
<name>.link_to_grails_plugins</name> | ||
<type>2</type> | ||
<locationURI>GRAILS_ROOT/1.3.7/projects/NewDoc/plugins</locationURI> | ||
</link> | ||
</linkedResources> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#Thu Sep 01 13:33:53 MDT 2011 | ||
com.springsource.sts.grails.core.com.springsource.sts.grails.core.install.name=Grails 1.3.7 | ||
com.springsource.sts.grails.core.use.default.install=false | ||
eclipse.preferences.version=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#Created by grails | ||
eclipse.preferences.version=1 | ||
groovy.dont.generate.class.files=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<faceted-project> | ||
<installed facet="grails.app" version="1.0"/> | ||
</faceted-project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
class NewDocGrailsPlugin { | ||
// the plugin version | ||
def version = "0.1-SNAPSHOT" | ||
// the version or versions of Grails the plugin is designed for | ||
def grailsVersion = "1.3.7 > *" | ||
// the other plugins this plugin depends on | ||
def dependsOn = [:] | ||
// resources that are excluded from plugin packaging | ||
def pluginExcludes = [ | ||
"grails-app/views/error.gsp" | ||
] | ||
|
||
def license = "APACHE" | ||
def organization = [ name:"Adaptive Computing", url:"http://adaptivecomputing.com" ] | ||
def issueManagement = [ system:"GitHub", url:"http://github.com/adaptivecomputing/grails-new-doc/issues" ] | ||
def scm = [ url:"http://github.com/adaptivecomputing/grails-new-doc" ] | ||
|
||
def author = "Brian Saville" | ||
def authorEmail = "bsaville@adaptivecomputing.com" | ||
def title = "New Grails Documentation (2.x docs in 1.x)" | ||
def description = '''\ | ||
This plugin is a backport of the additional functionality offered in the grails doc command in Grails 2.0.x. It allows | ||
YAML syntax to be used with a table of contents. This also fixes the issue with duplicates in groovy doc by specifically | ||
including the src/groovy, src/java and grails-app folders. | ||
''' | ||
|
||
// URL to the plugin's documentation | ||
def documentation = "http://grails.org/plugin/new-doc" | ||
|
||
def doWithWebDescriptor = { xml -> | ||
// TODO Implement additions to web.xml (optional), this event occurs before | ||
} | ||
|
||
def doWithSpring = { | ||
// TODO Implement runtime spring config (optional) | ||
} | ||
|
||
def doWithDynamicMethods = { ctx -> | ||
// TODO Implement registering dynamic methods to classes (optional) | ||
} | ||
|
||
def doWithApplicationContext = { applicationContext -> | ||
// TODO Implement post initialization spring config (optional) | ||
} | ||
|
||
def onChange = { event -> | ||
// TODO Implement code that is executed when any artefact that this plugin is | ||
// watching is modified and reloaded. The event contains: event.source, | ||
// event.application, event.manager, event.ctx, and event.plugin. | ||
} | ||
|
||
def onConfigChange = { event -> | ||
// TODO Implement code that is executed when the project configuration changes. | ||
// The event is the same as for 'onChange'. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
This plugin is a backport of Grails 2.x documentation (toc.yml, gdoc file structure without section numbers, fixed groovydoc duplicates, etc) to Grails 1.x projects. It provides two scripts. | ||
|
||
## Commands | ||
|
||
### grails new-doc | ||
|
||
This command runs the documentation generation, including groovydoc and generating a guide if it exists at src/docs/guide. See http://grails.org/doc/2.0.0.M2/guide/conf.html#docengine for more information. | ||
|
||
### grails migrate-doc | ||
|
||
This command migrates the Grails 1.x guide documentation into the 2.x format, including generating a links.yml file for legacy links. | ||
|
||
NOTE: This command is untested as of yet! | ||
|
||
## Advantages of Grails 2.x Docs | ||
|
||
* Use of a single toc.yml file to control titles of pages/sections and their placement in the guide | ||
* No duplicates of classes in groovydoc (see http://jira.grails.org/browse/GRAILS-6530) | ||
* Improved look for the guide (just like the grails official docs) | ||
|
||
## Caveats | ||
|
||
* Duplicates in groovydoc is avoided by using the patch in GRAILS-6530. A more elegant and stable method is actually implemented in Grails 2.x, but it involved another property in the build scripts. For this reason, only src/groovy, src/java, and grails-app are included in groovydoc generation. | ||
|
||
## Release Notes | ||
|
||
* 0.1 | ||
** Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Grails Metadata file | ||
#Thu Sep 01 13:33:52 MDT 2011 | ||
app.grails.version=1.3.7 | ||
app.name=NewGrailsDoc | ||
plugins.hibernate=1.3.7 | ||
plugins.tomcat=1.3.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
grails.project.class.dir = "target/classes" | ||
grails.project.test.class.dir = "target/test-classes" | ||
grails.project.test.reports.dir = "target/test-reports" | ||
//grails.project.war.file = "target/${appName}-${appVersion}.war" | ||
|
||
// Disable SCM notification | ||
grails.release.scm.enabled = false | ||
|
||
grails.project.dependency.resolution = { | ||
// inherit Grails' default dependencies | ||
inherits("global") { | ||
// uncomment to disable ehcache | ||
// excludes 'ehcache' | ||
} | ||
log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' | ||
repositories { | ||
grailsPlugins() | ||
grailsHome() | ||
grailsCentral() | ||
|
||
// uncomment the below to enable remote dependency resolution | ||
// from public Maven repositories | ||
mavenLocal() | ||
mavenCentral() | ||
mavenRepo "http://repo.grails.org/grails/libs-releases-local" | ||
//mavenRepo "http://snapshots.repository.codehaus.org" | ||
//mavenRepo "http://repository.codehaus.org" | ||
//mavenRepo "http://download.java.net/maven/2/" | ||
//mavenRepo "http://repository.jboss.com/maven2/" | ||
} | ||
dependencies { | ||
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg. | ||
|
||
compile('org.yaml:snakeyaml:1.8') | ||
compile("org.grails:grails-gdoc-engine:1.0.1") { | ||
excludes "jcl-over-slf4j" | ||
} | ||
} | ||
plugins { | ||
build ':release:1.0.0.RC3', { | ||
export = false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// configuration for plugin testing - will not be included in the plugin zip | ||
|
||
log4j = { | ||
// Example of changing the log pattern for the default console | ||
// appender: | ||
// | ||
//appenders { | ||
// console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n') | ||
//} | ||
|
||
error 'org.codehaus.groovy.grails.web.servlet', // controllers | ||
'org.codehaus.groovy.grails.web.pages', // GSP | ||
'org.codehaus.groovy.grails.web.sitemesh', // layouts | ||
'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping | ||
'org.codehaus.groovy.grails.web.mapping', // URL mapping | ||
'org.codehaus.groovy.grails.commons', // core / classloading | ||
'org.codehaus.groovy.grails.plugins', // plugins | ||
'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration | ||
'org.springframework', | ||
'org.hibernate', | ||
'net.sf.ehcache.hibernate' | ||
|
||
warn 'org.mortbay.log' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
dataSource { | ||
pooled = true | ||
driverClassName = "org.hsqldb.jdbcDriver" | ||
username = "sa" | ||
password = "" | ||
} | ||
hibernate { | ||
cache.use_second_level_cache = true | ||
cache.use_query_cache = true | ||
cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider' | ||
} | ||
// environment specific settings | ||
environments { | ||
development { | ||
dataSource { | ||
dbCreate = "create-drop" // one of 'create', 'create-drop','update' | ||
url = "jdbc:hsqldb:mem:devDB" | ||
} | ||
} | ||
test { | ||
dataSource { | ||
dbCreate = "update" | ||
url = "jdbc:hsqldb:mem:testDb" | ||
} | ||
} | ||
production { | ||
dataSource { | ||
dbCreate = "update" | ||
url = "jdbc:hsqldb:file:prodDb;shutdown=true" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class UrlMappings { | ||
|
||
static mappings = { | ||
"/$controller/$action?/$id?"{ | ||
constraints { | ||
// apply constraints here | ||
} | ||
} | ||
|
||
"/"(view:"/index") | ||
"500"(view:'/error') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<html> | ||
<head> | ||
<title>Grails Runtime Exception</title> | ||
<style type="text/css"> | ||
.message { | ||
border: 1px solid black; | ||
padding: 5px; | ||
background-color:#E9E9E9; | ||
} | ||
.stack { | ||
border: 1px solid black; | ||
padding: 5px; | ||
overflow:auto; | ||
height: 300px; | ||
} | ||
.snippet { | ||
padding: 5px; | ||
background-color:white; | ||
border:1px solid black; | ||
margin:3px; | ||
font-family:courier; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<h1>Grails Runtime Exception</h1> | ||
<h2>Error Details</h2> | ||
|
||
<div class="message"> | ||
<strong>Error ${request.'javax.servlet.error.status_code'}:</strong> ${request.'javax.servlet.error.message'.encodeAsHTML()}<br/> | ||
<strong>Servlet:</strong> ${request.'javax.servlet.error.servlet_name'}<br/> | ||
<strong>URI:</strong> ${request.'javax.servlet.error.request_uri'}<br/> | ||
<g:if test="${exception}"> | ||
<strong>Exception Message:</strong> ${exception.message?.encodeAsHTML()} <br /> | ||
<strong>Caused by:</strong> ${exception.cause?.message?.encodeAsHTML()} <br /> | ||
<strong>Class:</strong> ${exception.className} <br /> | ||
<strong>At Line:</strong> [${exception.lineNumber}] <br /> | ||
<strong>Code Snippet:</strong><br /> | ||
<div class="snippet"> | ||
<g:each var="cs" in="${exception.codeSnippet}"> | ||
${cs?.encodeAsHTML()}<br /> | ||
</g:each> | ||
</div> | ||
</g:if> | ||
</div> | ||
<g:if test="${exception}"> | ||
<h2>Stack Trace</h2> | ||
<div class="stack"> | ||
<pre><g:each in="${exception.stackTraceLines}">${it.encodeAsHTML()}<br/></g:each></pre> | ||
</div> | ||
</g:if> | ||
</body> | ||
</html> |
Oops, something went wrong.