Revision: 13688
http://gate.svn.sourceforge.net/gate/?rev=13688&view=rev
Author: valyt
Date: 2011-04-18 15:38:03 +0000 (Mon, 18 Apr 2011)
Log Message:
-----------
Restored the contents for the groovy files that aren't exactly groovy, so they
got misunderstood (and thus mangled).
Modified Paths:
--------------
mimir/trunk/demo-web-app/grails-app/conf/BuildConfig.groovy
mimir/trunk/demo-web-app/grails-app/conf/DataSource.groovy
mimir/trunk/demo-web-app/grails-app/conf/MimirConfig.groovy
mimir/trunk/demo-web-app/grails-app/conf/spring/resources.groovy
Modified: mimir/trunk/demo-web-app/grails-app/conf/BuildConfig.groovy
===================================================================
--- mimir/trunk/demo-web-app/grails-app/conf/BuildConfig.groovy 2011-04-18
15:31:46 UTC (rev 13687)
+++ mimir/trunk/demo-web-app/grails-app/conf/BuildConfig.groovy 2011-04-18
15:38:03 UTC (rev 13688)
@@ -15,3 +15,39 @@
*
* $Id$
*/
+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"
+
+// reference mimir-web as an in-place plugin, a real application would install
+// the plugin in the usual grails way.
+grails.plugin.location.'mimir-web' = '../grails-plugin-mimir'
+
+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://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.5'
+ }
+}
\ No newline at end of file
Modified: mimir/trunk/demo-web-app/grails-app/conf/DataSource.groovy
===================================================================
--- mimir/trunk/demo-web-app/grails-app/conf/DataSource.groovy 2011-04-18
15:31:46 UTC (rev 13687)
+++ mimir/trunk/demo-web-app/grails-app/conf/DataSource.groovy 2011-04-18
15:38:03 UTC (rev 13688)
@@ -15,3 +15,37 @@
*
* $Id$
*/
+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'
+ dbCreate = "update"
+ url = "jdbc:hsqldb:file:devDB;shutdown=true"
+ }
+ }
+ test {
+ dataSource {
+ dbCreate = "update"
+ url = "jdbc:hsqldb:mem:testDb"
+ }
+ }
+ production {
+ dataSource {
+ dbCreate = "update"
+ url = "jdbc:hsqldb:file:prodDb;shutdown=true"
+ }
+ }
+}
+
\ No newline at end of file
Modified: mimir/trunk/demo-web-app/grails-app/conf/MimirConfig.groovy
===================================================================
--- mimir/trunk/demo-web-app/grails-app/conf/MimirConfig.groovy 2011-04-18
15:31:46 UTC (rev 13687)
+++ mimir/trunk/demo-web-app/grails-app/conf/MimirConfig.groovy 2011-04-18
15:38:03 UTC (rev 13688)
@@ -15,3 +15,38 @@
*
* $Id$
*/
+
+ // Mimir configuration. Values in this file get merged into the main
+// GrailsApplication.config under gate.mimir, with values specified directly in
+// Config.groovy overriding those specified here (and values in external
+// configuration files overriding that, as usual). So you can override (say)
+// the queryTokeniserGapp setting from this file by specifying
+//
+// gate.mimir.queryTokeniserGapp = "...."
+//
+// in Config.groovy or a grails.config.locations external file.
+
+// default GATE initialisation params - we do not specify pluginsHome or
+// siteConfigFile as these take sensible defaults from gateHome
+gateInit {
+ gateHome = "WEB-INF/gate-home"
+ userConfigFile = "WEB-INF/gate-home/user.xml"
+}
+
+// Mimir plugins to load. You generally need at least one of the standard
+// db-h2 and/or ordi plugins, as well as the measurements plugin if you are
+// using Measurement annotations. The plugins will be loaded from their
+// specified locations for run-app and will be packaged into the WAR for
+// deployment.
+plugins {
+ h2 = "../plugins/db-h2"
+}
+
+// the xgapp file that defines the query tokeniser. Alternatively
+// you can redefine the queryTokeniser Spring bean in resources.groovy
+queryTokeniserGapp = "WEB-INF/gate-home/default-query-tokeniser.xgapp"
+
+// the base directory in which newly created local indexes will
+// be put.
+indexBaseDirectory = "mimir-indexes"
+
\ No newline at end of file
Modified: mimir/trunk/demo-web-app/grails-app/conf/spring/resources.groovy
===================================================================
--- mimir/trunk/demo-web-app/grails-app/conf/spring/resources.groovy
2011-04-18 15:31:46 UTC (rev 13687)
+++ mimir/trunk/demo-web-app/grails-app/conf/spring/resources.groovy
2011-04-18 15:38:03 UTC (rev 13688)
@@ -15,3 +15,8 @@
*
* $Id$
*/
+
+ // Place your Spring DSL code here
+beans = {
+}
+
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs