Revision: 19122
http://sourceforge.net/p/gate/code/19122
Author: ian_roberts
Date: 2016-02-09 16:08:35 +0000 (Tue, 09 Feb 2016)
Log Message:
-----------
Fixed wrong resource module name in mimir-cloud layout, and include a
statically generated IndexTemplateController because (a) scaffolding isn't
included by default in Grails 2.5 and and (b) even when I install the
scaffolding plugin, the controller template has changed beyond recognition.
Modified Paths:
--------------
mimir/trunk/mimir-cloud/.classpath
mimir/trunk/mimir-cloud/.project
mimir/trunk/mimir-cloud/grails-app/views/layouts/mimir.gsp
mimir/trunk/mimir-web/.classpath
mimir/trunk/mimir-web/.project
mimir/trunk/mimir-web/grails-app/controllers/gate/mimir/web/IndexTemplateController.groovy
Modified: mimir/trunk/mimir-cloud/.classpath
===================================================================
--- mimir/trunk/mimir-cloud/.classpath 2016-02-09 02:24:15 UTC (rev 19121)
+++ mimir/trunk/mimir-cloud/.classpath 2016-02-09 16:08:35 UTC (rev 19122)
@@ -12,146 +12,196 @@
<classpathentry kind="src" path="grails-app/utils"/>
<classpathentry kind="src" path="test/integration"/>
<classpathentry kind="src" path="test/unit"/>
- <classpathentry kind="src"
path=".link_to_grails_plugins/background-thread-1.6/grails-app/services">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/executor-0.3/src/groovy">
<attributes>
<attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
</attributes>
</classpathentry>
- <classpathentry kind="src"
path=".link_to_grails_plugins/background-thread-1.6/src/java">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/extended-dependency-manager-0.5.5/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/gwt-0.8/grails-app/conf">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/extended-dependency-manager-0.5.5/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/gwt-0.8/grails-app/controllers">
+ <classpathentry
excluding="BuildConfig.groovy|*DataSource.groovy|UrlMappings.groovy|Config.groovy|BootStrap.groovy|spring/resources.groovy"
kind="src" path=".link_to_grails_plugins/gwt-1.0.3/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/gwt-0.8/grails-app/i18n">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/gwt-1.0.3/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/gwt-0.8/grails-app/resourceMappers">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/gwt-1.0.3/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/gwt-0.8/grails-app/services">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/gwt-1.0.3/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/gwt-0.8/src/groovy">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/gwt-1.0.3/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/gwt-0.8/src/java">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/gwt-1.0.3/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.2.3/grails-app/i18n">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/gwt-1.0.3/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/jquery-1.8.0/grails-app/conf">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/hibernate-3.6.10.18/src/java">
<attributes>
<attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
</attributes>
</classpathentry>
- <classpathentry kind="src"
path=".link_to_grails_plugins/jquery-1.8.0/grails-app/i18n">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/jquery-1.11.1/grails-app/assets">
<attributes>
<attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
</attributes>
</classpathentry>
- <classpathentry kind="src"
path=".link_to_grails_plugins/jquery-1.8.0/grails-app/services">
+ <classpathentry
excluding="BuildConfig.groovy|*DataSource.groovy|UrlMappings.groovy|Config.groovy|BootStrap.groovy|spring/resources.groovy"
kind="src" path=".link_to_grails_plugins/jquery-1.11.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/jquery-1.8.0/grails-app/taglib">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/jquery-1.11.1/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.8.0/src/groovy">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/jquery-1.11.1/grails-app/taglib">
<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.2.RC2/grails-app/conf">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/jquery-1.11.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/resources-1.2.RC2/grails-app/i18n">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/release-2.0.3/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.2.RC2/grails-app/resourceMappers">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/release-2.0.3/src/java">
<attributes>
<attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
</attributes>
</classpathentry>
- <classpathentry kind="src"
path=".link_to_grails_plugins/resources-1.2.RC2/grails-app/taglib">
+ <classpathentry
excluding="BuildConfig.groovy|*DataSource.groovy|UrlMappings.groovy|Config.groovy|BootStrap.groovy|spring/resources.groovy"
kind="src" path=".link_to_grails_plugins/resources-1.2.14/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.2.RC2/src/groovy">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/resources-1.2.14/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.2.RC2/src/java">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/resources-1.2.14/grails-app/resourceMappers">
<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/spring-security-core-1.2.7.3/grails-app/conf">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/resources-1.2.14/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/spring-security-core-1.2.7.3/grails-app/i18n">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/resources-1.2.14/src/groovy">
<attributes>
<attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
</attributes>
</classpathentry>
- <classpathentry kind="src"
path=".link_to_grails_plugins/spring-security-core-1.2.7.3/grails-app/services">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/resources-1.2.14/src/java">
<attributes>
<attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
</attributes>
</classpathentry>
- <classpathentry kind="src"
path=".link_to_grails_plugins/spring-security-core-1.2.7.3/grails-app/taglib">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/rest-client-builder-1.0.2/src/groovy">
<attributes>
<attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
</attributes>
</classpathentry>
- <classpathentry kind="src"
path=".link_to_grails_plugins/spring-security-core-1.2.7.3/src/groovy">
+ <classpathentry
excluding="BuildConfig.groovy|*DataSource.groovy|UrlMappings.groovy|Config.groovy|BootStrap.groovy|spring/resources.groovy"
kind="src"
path=".link_to_grails_plugins/spring-security-core-2.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/spring-security-core-1.2.7.3/src/java">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/spring-security-core-2.0.0/grails-app/controllers">
<attributes>
<attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
</attributes>
</classpathentry>
- <classpathentry exported="true" kind="src" path="/mimir-web">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/spring-security-core-2.0.0/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/spring-security-core-2.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/spring-security-core-2.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/spring-security-core-2.0.0/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/spring-security-core-2.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/spring-security-core-2.0.0/src/java">
+ <attributes>
+ <attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="src"
path=".link_to_grails_plugins/tomcat-7.0.55.3/src/groovy">
+ <attributes>
+ <attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="src"
path=".link_to_grails_plugins/tomcat-7.0.55.3/src/java">
+ <attributes>
+ <attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="src"
path=".link_to_grails_plugins/webflow-2.1.0/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/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>
Modified: mimir/trunk/mimir-cloud/.project
===================================================================
--- mimir/trunk/mimir-cloud/.project 2016-02-09 02:24:15 UTC (rev 19121)
+++ mimir/trunk/mimir-cloud/.project 2016-02-09 16:08:35 UTC (rev 19122)
@@ -37,7 +37,7 @@
<link>
<name>.link_to_grails_plugins</name>
<type>2</type>
-
<locationURI>GRAILS_ROOT/2.2.3/projects/mimir-cloud/plugins</locationURI>
+
<locationURI>GRAILS_ROOT/2.5.3/projects/mimir-cloud/plugins</locationURI>
</link>
</linkedResources>
</projectDescription>
Modified: mimir/trunk/mimir-cloud/grails-app/views/layouts/mimir.gsp
===================================================================
--- mimir/trunk/mimir-cloud/grails-app/views/layouts/mimir.gsp 2016-02-09
02:24:15 UTC (rev 19121)
+++ mimir/trunk/mimir-cloud/grails-app/views/layouts/mimir.gsp 2016-02-09
16:08:35 UTC (rev 19122)
@@ -2,7 +2,7 @@
<html>
<head>
<title><g:layoutTitle default="Mimir" /></title>
- <r:require module="mimirWeb" />
+ <r:require module="mimirLayout" />
<g:layoutHead />
<r:layoutResources/>
<%-- Add any custom CSS content provided by the page. --%>
Modified: mimir/trunk/mimir-web/.classpath
===================================================================
--- mimir/trunk/mimir-web/.classpath 2016-02-09 02:24:15 UTC (rev 19121)
+++ mimir/trunk/mimir-web/.classpath 2016-02-09 16:08:35 UTC (rev 19122)
@@ -14,46 +14,56 @@
<classpathentry kind="src" path="grails-app/utils"/>
<classpathentry kind="src" path="test/integration"/>
<classpathentry kind="src" path="test/unit"/>
- <classpathentry
excluding="BuildConfig.groovy|*DataSource.groovy|UrlMappings.groovy|Config.groovy|BootStrap.groovy|spring/resources.groovy"
kind="src" path=".link_to_grails_plugins/gwt-0.8/grails-app/conf">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/extended-dependency-manager-0.5.5/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/gwt-0.8/grails-app/controllers">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/extended-dependency-manager-0.5.5/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/gwt-0.8/grails-app/i18n">
+ <classpathentry
excluding="BuildConfig.groovy|*DataSource.groovy|UrlMappings.groovy|Config.groovy|BootStrap.groovy|spring/resources.groovy"
kind="src" path=".link_to_grails_plugins/gwt-1.0.3/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/gwt-0.8/grails-app/resourceMappers">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/gwt-1.0.3/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/gwt-0.8/grails-app/services">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/gwt-1.0.3/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/gwt-0.8/src/groovy">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/gwt-1.0.3/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/gwt-0.8/src/java">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/gwt-1.0.3/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/hibernate-2.2.3/grails-app/i18n">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/gwt-1.0.3/src/groovy">
<attributes>
<attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
</attributes>
</classpathentry>
+ <classpathentry kind="src"
path=".link_to_grails_plugins/gwt-1.0.3/src/java">
+ <attributes>
+ <attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="src"
path=".link_to_grails_plugins/hibernate-3.6.10.18/src/java">
+ <attributes>
+ <attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
+ </attributes>
+ </classpathentry>
<classpathentry kind="src"
path=".link_to_grails_plugins/release-2.0.3/src/groovy">
<attributes>
<attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
@@ -64,32 +74,32 @@
<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.2.RC2/grails-app/conf">
+ <classpathentry
excluding="BuildConfig.groovy|*DataSource.groovy|UrlMappings.groovy|Config.groovy|BootStrap.groovy|spring/resources.groovy"
kind="src" path=".link_to_grails_plugins/resources-1.2.14/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.2.RC2/grails-app/i18n">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/resources-1.2.14/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.2.RC2/grails-app/resourceMappers">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/resources-1.2.14/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.2.RC2/grails-app/taglib">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/resources-1.2.14/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.2.RC2/src/groovy">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/resources-1.2.14/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.2.RC2/src/java">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/resources-1.2.14/src/java">
<attributes>
<attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
</attributes>
@@ -99,16 +109,21 @@
<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">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/tomcat-7.0.55.3/src/groovy">
<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">
+ <classpathentry kind="src"
path=".link_to_grails_plugins/tomcat-7.0.55.3/src/java">
<attributes>
<attribute
name="org.grails.ide.eclipse.core.SOURCE_FOLDER" value="true"/>
</attributes>
</classpathentry>
+ <classpathentry kind="src"
path=".link_to_grails_plugins/webflow-2.1.0/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>
Modified: mimir/trunk/mimir-web/.project
===================================================================
--- mimir/trunk/mimir-web/.project 2016-02-09 02:24:15 UTC (rev 19121)
+++ mimir/trunk/mimir-web/.project 2016-02-09 16:08:35 UTC (rev 19122)
@@ -38,7 +38,7 @@
<link>
<name>.link_to_grails_plugins</name>
<type>2</type>
-
<locationURI>GRAILS_ROOT/2.2.3/projects/mimir-web/plugins</locationURI>
+
<locationURI>GRAILS_ROOT/2.5.3/projects/mimir-web/plugins</locationURI>
</link>
</linkedResources>
</projectDescription>
Modified:
mimir/trunk/mimir-web/grails-app/controllers/gate/mimir/web/IndexTemplateController.groovy
===================================================================
---
mimir/trunk/mimir-web/grails-app/controllers/gate/mimir/web/IndexTemplateController.groovy
2016-02-09 02:24:15 UTC (rev 19121)
+++
mimir/trunk/mimir-web/grails-app/controllers/gate/mimir/web/IndexTemplateController.groovy
2016-02-09 16:08:35 UTC (rev 19122)
@@ -1,19 +1,102 @@
-/*
- * IndexTemplateController.groovy
- *
- * Copyright (c) 2007-2011, The University of Sheffield.
- *
- * This file is part of GATE MÃmir (see http://gate.ac.uk/family/mimir.html),
- * and is free software, licenced under the GNU Lesser General Public License,
- * Version 3, June 2007 (also included with this distribution as file
- * LICENCE-LGPL3.html).
- *
- * $Id$
- */
-package gate.mimir.web;
+package gate.mimir.web
-import gate.mimir.web.IndexTemplate;
+import org.springframework.dao.DataIntegrityViolationException
class IndexTemplateController {
- static scaffold = IndexTemplate
+
+ static allowedMethods = [save: "POST", update: "POST", delete: "POST"]
+
+ def index() {
+ redirect(action: "list", params: params)
+ }
+
+ def list(Integer max) {
+ params.max = Math.min(max ?: 10, 100)
+ [indexTemplateInstanceList: IndexTemplate.list(params),
indexTemplateInstanceTotal: IndexTemplate.count()]
+ }
+
+ def create() {
+ [indexTemplateInstance: new IndexTemplate(params)]
+ }
+
+ def save() {
+ def indexTemplateInstance = new IndexTemplate(params)
+ if (!indexTemplateInstance.save(flush: true)) {
+ render(view: "create", model: [indexTemplateInstance:
indexTemplateInstance])
+ return
+ }
+
+ flash.message = message(code: 'default.created.message', args:
[message(code: 'indexTemplate.label', default: 'IndexTemplate'),
indexTemplateInstance.id])
+ redirect(action: "show", id: indexTemplateInstance.id)
+ }
+
+ def show(Long id) {
+ def indexTemplateInstance = IndexTemplate.get(id)
+ if (!indexTemplateInstance) {
+ flash.message = message(code: 'default.not.found.message', args:
[message(code: 'indexTemplate.label', default: 'IndexTemplate'), id])
+ redirect(action: "list")
+ return
+ }
+
+ [indexTemplateInstance: indexTemplateInstance]
+ }
+
+ def edit(Long id) {
+ def indexTemplateInstance = IndexTemplate.get(id)
+ if (!indexTemplateInstance) {
+ flash.message = message(code: 'default.not.found.message', args:
[message(code: 'indexTemplate.label', default: 'IndexTemplate'), id])
+ redirect(action: "list")
+ return
+ }
+
+ [indexTemplateInstance: indexTemplateInstance]
+ }
+
+ def update(Long id, Long version) {
+ def indexTemplateInstance = IndexTemplate.get(id)
+ if (!indexTemplateInstance) {
+ flash.message = message(code: 'default.not.found.message', args:
[message(code: 'indexTemplate.label', default: 'IndexTemplate'), id])
+ redirect(action: "list")
+ return
+ }
+
+ if (version != null) {
+ if (indexTemplateInstance.version > version) {
+ indexTemplateInstance.errors.rejectValue("version",
"default.optimistic.locking.failure",
+ [message(code: 'indexTemplate.label', default:
'IndexTemplate')] as Object[],
+ "Another user has updated this IndexTemplate while
you were editing")
+ render(view: "edit", model: [indexTemplateInstance:
indexTemplateInstance])
+ return
+ }
+ }
+
+ indexTemplateInstance.properties = params
+
+ if (!indexTemplateInstance.save(flush: true)) {
+ render(view: "edit", model: [indexTemplateInstance:
indexTemplateInstance])
+ return
+ }
+
+ flash.message = message(code: 'default.updated.message', args:
[message(code: 'indexTemplate.label', default: 'IndexTemplate'),
indexTemplateInstance.id])
+ redirect(action: "show", id: indexTemplateInstance.id)
+ }
+
+ def delete(Long id) {
+ def indexTemplateInstance = IndexTemplate.get(id)
+ if (!indexTemplateInstance) {
+ flash.message = message(code: 'default.not.found.message', args:
[message(code: 'indexTemplate.label', default: 'IndexTemplate'), id])
+ redirect(action: "list")
+ return
+ }
+
+ try {
+ indexTemplateInstance.delete(flush: true)
+ flash.message = message(code: 'default.deleted.message', args:
[message(code: 'indexTemplate.label', default: 'IndexTemplate'), id])
+ redirect(action: "list")
+ }
+ catch (DataIntegrityViolationException e) {
+ flash.message = message(code: 'default.not.deleted.message', args:
[message(code: 'indexTemplate.label', default: 'IndexTemplate'), id])
+ redirect(action: "show", id: id)
+ }
+ }
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs