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
maestrofjp
committed
Aug 3, 2012
1 parent
e038b6a
commit c7b3f92
Showing
58 changed files
with
3,022 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,131 @@ | ||
<?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 excluding="BuildConfig.groovy|*DataSource.groovy|UrlMappings.groovy|Config.groovy|BootStrap.groovy|spring/resources.groovy" kind="src" path=".link_to_grails_plugins/cache-1.0.0/grails-app/conf"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/cache-1.0.0/grails-app/services"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/cache-1.0.0/grails-app/taglib"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/cache-1.0.0/src/groovy"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/cache-1.0.0/src/java"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.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/database-migration-1.1/grails-app/conf"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/database-migration-1.1/grails-app/controllers"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/database-migration-1.1/grails-app/views"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/database-migration-1.1/src/groovy"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/hibernate-2.1.0/grails-app/i18n"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.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/jquery-1.7.2/grails-app/conf"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/jquery-1.7.2/grails-app/i18n"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/jquery-1.7.2/grails-app/services"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/jquery-1.7.2/grails-app/taglib"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/jquery-1.7.2/src/groovy"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.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/resources-1.1.6/grails-app/conf"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/resources-1.1.6/grails-app/i18n"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/resources-1.1.6/grails-app/resourceMappers"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/resources-1.1.6/grails-app/taglib"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/resources-1.1.6/src/groovy"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/resources-1.1.6/src/java"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.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/webxml-1.4.1/grails-app/conf"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path=".link_to_grails_plugins/webxml-1.4.1/src/groovy"> | ||
<attributes> | ||
<attribute name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.grails.ide.eclipse.core.CLASSPATH_CONTAINER"/> | ||
<classpathentry kind="output" path="target-eclipse/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,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>Enlist-Grails</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>org.grails.ide.eclipse.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/2.1.0/projects/Enlist-Grails/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,5 @@ | ||
#Grails Metadata file | ||
#Fri Aug 03 16:19:58 CDT 2012 | ||
app.grails.version=2.1.0 | ||
app.name=Enlist-Grails | ||
app.version=0.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,5 @@ | ||
modules = { | ||
application { | ||
resource url:'js/application.js' | ||
} | ||
} |
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,7 @@ | ||
class BootStrap { | ||
|
||
def init = { servletContext -> | ||
} | ||
def destroy = { | ||
} | ||
} |
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 @@ | ||
grails.servlet.version = "2.5" // Change depending on target container compliance (2.5 or 3.0) | ||
grails.project.class.dir = "target/classes" | ||
grails.project.test.class.dir = "target/test-classes" | ||
grails.project.test.reports.dir = "target/test-reports" | ||
grails.project.target.level = 1.6 | ||
grails.project.source.level = 1.6 | ||
//grails.project.war.file = "target/${appName}-${appVersion}.war" | ||
|
||
grails.project.dependency.resolution = { | ||
// inherit Grails' default dependencies | ||
inherits("global") { | ||
// specify dependency exclusions here; for example, uncomment this to disable ehcache: | ||
// excludes 'ehcache' | ||
} | ||
log "error" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' | ||
checksums true // Whether to verify checksums on resolve | ||
|
||
repositories { | ||
inherits true // Whether to inherit repository definitions from plugins | ||
|
||
grailsPlugins() | ||
grailsHome() | ||
grailsCentral() | ||
|
||
mavenLocal() | ||
mavenCentral() | ||
|
||
// uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories | ||
//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. | ||
|
||
// runtime 'mysql:mysql-connector-java:5.1.20' | ||
} | ||
|
||
plugins { | ||
runtime ":hibernate:$grailsVersion" | ||
runtime ":jquery:1.7.2" | ||
runtime ":resources:1.1.6" | ||
|
||
// Uncomment these (or add new ones) to enable additional resources capabilities | ||
//runtime ":zipped-resources:1.0" | ||
//runtime ":cached-resources:1.0" | ||
//runtime ":yui-minify-resources:0.1.4" | ||
|
||
build ":tomcat:$grailsVersion" | ||
|
||
runtime ":database-migration:1.1" | ||
|
||
compile ':cache:1.0.0' | ||
} | ||
} |
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,91 @@ | ||
// locations to search for config files that get merged into the main config; | ||
// config files can be ConfigSlurper scripts, Java properties files, or classes | ||
// in the classpath in ConfigSlurper format | ||
|
||
// grails.config.locations = [ "classpath:${appName}-config.properties", | ||
// "classpath:${appName}-config.groovy", | ||
// "file:${userHome}/.grails/${appName}-config.properties", | ||
// "file:${userHome}/.grails/${appName}-config.groovy"] | ||
|
||
// if (System.properties["${appName}.config.location"]) { | ||
// grails.config.locations << "file:" + System.properties["${appName}.config.location"] | ||
// } | ||
|
||
grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination | ||
grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format | ||
grails.mime.use.accept.header = false | ||
grails.mime.types = [ | ||
all: '*/*', | ||
atom: 'application/atom+xml', | ||
css: 'text/css', | ||
csv: 'text/csv', | ||
form: 'application/x-www-form-urlencoded', | ||
html: ['text/html','application/xhtml+xml'], | ||
js: 'text/javascript', | ||
json: ['application/json', 'text/json'], | ||
multipartForm: 'multipart/form-data', | ||
rss: 'application/rss+xml', | ||
text: 'text/plain', | ||
xml: ['text/xml', 'application/xml'] | ||
] | ||
|
||
// URL Mapping Cache Max Size, defaults to 5000 | ||
//grails.urlmapping.cache.maxsize = 1000 | ||
|
||
// What URL patterns should be processed by the resources plugin | ||
grails.resources.adhoc.patterns = ['/images/*', '/css/*', '/js/*', '/plugins/*'] | ||
|
||
// The default codec used to encode data with ${} | ||
grails.views.default.codec = "none" // none, html, base64 | ||
grails.views.gsp.encoding = "UTF-8" | ||
grails.converters.encoding = "UTF-8" | ||
// enable Sitemesh preprocessing of GSP pages | ||
grails.views.gsp.sitemesh.preprocess = true | ||
// scaffolding templates configuration | ||
grails.scaffolding.templates.domainSuffix = 'Instance' | ||
|
||
// Set to false to use the new Grails 1.2 JSONBuilder in the render method | ||
grails.json.legacy.builder = false | ||
// enabled native2ascii conversion of i18n properties files | ||
grails.enable.native2ascii = true | ||
// packages to include in Spring bean scanning | ||
grails.spring.bean.packages = [] | ||
// whether to disable processing of multi part requests | ||
grails.web.disable.multipart=false | ||
|
||
// request parameters to mask when logging exceptions | ||
grails.exceptionresolver.params.exclude = ['password'] | ||
|
||
// configure auto-caching of queries by default (if false you can cache individual queries with 'cache: true') | ||
grails.hibernate.cache.queries = false | ||
|
||
environments { | ||
development { | ||
grails.logging.jul.usebridge = true | ||
} | ||
production { | ||
grails.logging.jul.usebridge = false | ||
// TODO: grails.serverURL = "http://www.changeme.com" | ||
} | ||
} | ||
|
||
// log4j configuration | ||
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' | ||
} |
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,43 @@ | ||
dataSource { | ||
pooled = true | ||
driverClassName = "org.h2.Driver" | ||
username = "sa" | ||
password = "" | ||
} | ||
hibernate { | ||
cache.use_second_level_cache = true | ||
cache.use_query_cache = false | ||
cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory' | ||
} | ||
// environment specific settings | ||
environments { | ||
development { | ||
dataSource { | ||
dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', '' | ||
url = "jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000" | ||
} | ||
} | ||
test { | ||
dataSource { | ||
dbCreate = "update" | ||
url = "jdbc:h2:mem:testDb;MVCC=TRUE;LOCK_TIMEOUT=10000" | ||
} | ||
} | ||
production { | ||
dataSource { | ||
dbCreate = "update" | ||
url = "jdbc:h2:prodDb;MVCC=TRUE;LOCK_TIMEOUT=10000" | ||
pooled = true | ||
properties { | ||
maxActive = -1 | ||
minEvictableIdleTimeMillis=1800000 | ||
timeBetweenEvictionRunsMillis=1800000 | ||
numTestsPerEvictionRun=3 | ||
testOnBorrow=true | ||
testWhileIdle=true | ||
testOnReturn=true | ||
validationQuery="SELECT 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,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,3 @@ | ||
// Place your Spring DSL code here | ||
beans = { | ||
} |
Oops, something went wrong.