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
1 parent
04f1df2
commit 4e7196b
Showing
61 changed files
with
2,987 additions
and
1 deletion.
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,14 @@ | ||
<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="test/integration"/> | ||
<classpathentry kind="src" path="test/unit"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="con" path="org.grails.ide.eclipse.core.CLASSPATH_CONTAINER"/> | ||
<classpathentry kind="output" path="target/eclipseclasses"/> | ||
</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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>grails-filterpane-test</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<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> | ||
</natures> | ||
</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 |
---|---|---|
@@ -1 +1,2 @@ | ||
This file was created by IntelliJ IDEA 11.1.5 for binding GitHub repository | ||
Grails Filterpane Test 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,5 @@ | ||
#Grails Metadata file | ||
#Fri Apr 12 09:02:50 CDT 2013 | ||
app.grails.version=2.2.1 | ||
app.name=grails-filterpane-test | ||
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,10 @@ | ||
modules = { | ||
application { | ||
resource url:'css/filterpane.css' | ||
} | ||
|
||
scriptaculous { | ||
dependsOn 'jquery' | ||
resource url:'js/scriptaculous.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,48 @@ | ||
import java.sql.Date | ||
|
||
import org.grails.example.* | ||
|
||
class BootStrap { | ||
|
||
def init = { servletContext -> | ||
bootstrapTestData() | ||
} | ||
def destroy = { | ||
} | ||
|
||
|
||
private bootstrapTestData() { | ||
Publisher p = new Publisher(firstName: 'Some', lastName: 'Publisher').save() | ||
Publisher p2 = new Publisher(firstName: 'Some', lastName: 'Other Publisher').save() | ||
|
||
Author da = new Author(firstName: 'Douglas', lastName: 'Adams', age: 42, favoriteGenre: FavoriteGenre.SciFi, birthdate: Date.valueOf('1952-03-11'), publisher: p).save() | ||
Author cl = new Author(firstName: 'Clive', lastName: 'Lewis', favoriteGenre: FavoriteGenre.Fantasy, birthdate: Date.valueOf('1898-11-29'), publisher: p2).save() | ||
Author ra = new Author(firstName: 'Richard', lastName: 'Adams', favoriteGenre: FavoriteGenre.Fiction, birthdate: Date.valueOf('1920-05-10'), publisher: p).save() | ||
Author mt = new Author(firstName: 'Mark', lastName: 'Twain', favoriteGenre: FavoriteGenre.Satire, birthdate: Date.valueOf('1835-11-30'), publisher: p2).save() | ||
Author sk = new Author(firstName: 'Steve', lastName: 'Krug', favoriteGenre: FavoriteGenre.Reference, birthdate: Date.valueOf('1950-01-01'), publisher: p).save() | ||
Author sf = new Author(firstName: 'Scott', lastName: 'Fox', favoriteGenre: FavoriteGenre.Reference, birthdate: Date.valueOf('1969-01-01'), publisher: p).save() | ||
Author mg = new Author(firstName: 'Malcolm', lastName: 'Gladwell', favoriteGenre: FavoriteGenre.Reference, publisher: p2).save() | ||
Author hm = new Author(firstName: 'Herman', lastName: 'Melville', favoriteGenre: FavoriteGenre.Fiction, publisher: p).save() | ||
Author ac = new Author(firstName: 'Arthur', lastName: 'Clarke', favoriteGenre: FavoriteGenre.SciFi, publisher: p).save() | ||
|
||
Author dm = new Author(firstName: 'Dave', lastName: 'Mark', favoriteGenre: FavoriteGenre.Reference, publisher: p).save() | ||
Author jl = new Author(firstName: 'Jeff', lastName: 'LaMarche', favoriteGenre: FavoriteGenre.Reference, publisher: p).save() | ||
|
||
Book vdt = new Book(author: cl, title: "The Voyage of the Dawn Treader", releaseDate: java.sql.Date.valueOf('1952-01-01'), inStock: false, price: 25.00, cost: 20.00, readPriority: 'High', bookType: BookType.Fiction).save() | ||
new Book(author: ra, title: "Watership Down", releaseDate: java.sql.Date.valueOf('1972-01-01'), inStock: true, price: 7.99, cost: 3.27, readPriority: 'Normal', bookType: BookType.Fiction).save() | ||
new Book(author: mt, title: "The Adventures of Tom Sawyer", releaseDate: java.sql.Date.valueOf('1876-01-01'), inStock: true, price: 9.99, cost: 4.34, readPriority: 'Low', bookType: BookType.Fiction).save() | ||
new Book(author: mt, title: "The Prince and the Pauper", releaseDate: java.sql.Date.valueOf('1882-01-01'), inStock: false, price: 9.99, cost: 3.54, readPriority: 'Low', bookType: BookType.NonFiction).save() | ||
Book uhg = new Book(author: da, title: "The Ultimate Hitchhiker's Guide", releaseDate: java.sql.Date.valueOf('2005-01-01'), inStock: true, price: 19.99, cost: 8.98, readPriority: 'Normal', bookType: BookType.Fiction).save() | ||
new Book(author: sk, title: "Don't Make Me Think", releaseDate: java.sql.Date.valueOf('2006-01-01'), inStock: true, price: 35.99, cost: 16.99, readPriority: 'Normal', bookType: BookType.Reference).save() | ||
new Book(author: sf, title: "Internet Riches", releaseDate: java.sql.Date.valueOf('2005-01-01'), inStock: true, price: 19.99, cost: 12.99, readPriority: 'Low', bookType: BookType.NonFiction).save() | ||
new Book(author: mg, title: "Blink: The Power of Thinking Without Thinking", releaseDate: java.sql.Date.valueOf('2007-04-03'), inStock: true, price: 10.87, cost: 1.99, readPriority: 'Normal', bookType: BookType.NonFiction).save() | ||
new Book(author: cl, title: "The Last Battle", releaseDate: java.sql.Date.valueOf('1952-01-01'), inStock: true, price: 25.00, cost: 17.44, readPriority: 'High', bookType: BookType.Fiction).save() | ||
new Book(author: cl, title: "Prince Caspian", releaseDate: java.sql.Date.valueOf('1952-01-01'), inStock: false, price: 16.99, cost: 9.99, readPriority: 'Normal', bookType: BookType.Fiction).save() | ||
new Book(author: hm, title: "Moby Dick", releaseDate: java.sql.Date.valueOf('1851-01-01'), inStock: true, price: 9.99, cost: 5.25, readPriority: 'High', bookType: BookType.Fiction).save() | ||
new Book(author: ac, title: "The Collected Stories of Arthur C. Clarke", releaseDate: java.sql.Date.valueOf('2002-01-14'), inStock: true, price: 13.99, cost: 9.99, readPriority: 'Normal', bookType: BookType.Fiction).save() | ||
new Book(author: dm, coAuthor: jl, title: 'Beginning iPhone Development', releaseDate: java.sql.Date.valueOf('2008-11-01'), inStock: true, price: 39.99, cost: 27.99, readPriority: 'Normal', bookType: BookType.Reference).save() | ||
|
||
new Bookmark(book: vdt, page: 42, dateCreated: java.sql.Date.valueOf('2011-02-17')).save() | ||
new Bookmark(book: uhg, page: 247, dateCreated: java.sql.Date.valueOf('2010-11-05')).save() | ||
} | ||
} |
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,66 @@ | ||
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" | ||
|
||
// uncomment (and adjust settings) to fork the JVM to isolate classpaths | ||
//grails.project.fork = [ | ||
// run: [maxMemory:1024, minMemory:64, debug:false, maxPerm:256] | ||
//] | ||
|
||
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 | ||
legacyResolve false // whether to do a secondary resolve on plugin installation, not advised and here for backwards compatibility | ||
|
||
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 e.g. | ||
|
||
// runtime 'mysql:mysql-connector-java:5.1.22' | ||
} | ||
|
||
plugins { | ||
runtime ":hibernate:$grailsVersion" | ||
runtime ":jquery:1.8.3" | ||
compile ":jquery-ui:1.8.24" | ||
runtime ":resources:1.1.6" | ||
runtime ":filterpane:2.1.3" | ||
compile ":twitter-bootstrap:2.3.0" | ||
|
||
// 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.5" | ||
|
||
build ":tomcat:$grailsVersion" | ||
|
||
runtime ":database-migration:1.3.2" | ||
|
||
compile ':cache:1.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,106 @@ | ||
// 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 %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.codehaus.groovy.grails', | ||
'grails.spring', | ||
'org.springframework', | ||
'org.hibernate', | ||
'net.sf', | ||
'org.apache', | ||
'grails.app.service.org.grails.plugin.filterpane.FilterPaneService' | ||
|
||
warn 'org.mortbay.log' | ||
|
||
//debug 'grails.app.taglib.org.grails.plugin.filterpane.FilterPaneTagLib', | ||
debug 'grails.app.taglib.org.grails.plugin.filterpane.FilterPaneTagLib' | ||
|
||
root { | ||
debug 'stdout' | ||
additivity = 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,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.