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
Showing
200 changed files
with
9,393 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<launchConfiguration type="org.eclipse.jdt.junit.launchconfig"> | |||
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/> | |||
<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/> | |||
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/> | |||
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/> | |||
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit3"/> | |||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="grails.test.GrailsAwareGroovyTestSuite"/> | |||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="QanbanDomain"/> | |||
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dtest=${resource_loc}"/> | |||
</launchConfiguration> |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,19 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication"> | |||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> | |||
<listEntry value="/QanbanDomain"/> | |||
</listAttribute> | |||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> | |||
<listEntry value="4"/> | |||
</listAttribute> | |||
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/> | |||
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH"> | |||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry containerPath="org.eclipse.jdt.launching.JRE_CONTAINER" javaProject="QanbanDomain" path="1" type="4"/> "/> | |||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry containerPath="GRAILS_HOME/dist/grails-bootstrap-1.1.1.jar" path="3" type="3"/> "/> | |||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry containerPath="GRAILS_HOME/lib/groovy-all-1.6.3.jar" path="3" type="3"/> "/> | |||
</listAttribute> | |||
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/> | |||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="grails.util.GrailsMain"/> | |||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="QanbanDomain"/> | |||
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dbase.dir="${project_loc:QanbanDomain}" -Dserver.port=8080 -Dgrails.env=development"/> | |||
</launchConfiguration> |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,73 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||
<plist version="1.0"> | |||
<dict> | |||
<key>documents</key> | |||
<array> | |||
<dict> | |||
<key>filename</key> | |||
<string>QanbanDomain.launch</string> | |||
</dict> | |||
<dict> | |||
<key>filename</key> | |||
<string>build.xml</string> | |||
</dict> | |||
<dict> | |||
<key>name</key> | |||
<string>grails-app</string> | |||
<key>regexFolderFilter</key> | |||
<string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string> | |||
<key>sourceDirectory</key> | |||
<string>grails-app</string> | |||
</dict> | |||
<dict> | |||
<key>name</key> | |||
<string>test</string> | |||
<key>regexFolderFilter</key> | |||
<string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string> | |||
<key>sourceDirectory</key> | |||
<string>test</string> | |||
</dict> | |||
<dict> | |||
<key>name</key> | |||
<string>lib</string> | |||
<key>regexFolderFilter</key> | |||
<string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string> | |||
<key>sourceDirectory</key> | |||
<string>lib</string> | |||
</dict> | |||
<dict> | |||
<key>name</key> | |||
<string>scripts</string> | |||
<key>regexFolderFilter</key> | |||
<string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string> | |||
<key>sourceDirectory</key> | |||
<string>scripts</string> | |||
</dict> | |||
<dict> | |||
<key>name</key> | |||
<string>src</string> | |||
<key>regexFolderFilter</key> | |||
<string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string> | |||
<key>sourceDirectory</key> | |||
<string>src</string> | |||
</dict> | |||
<dict> | |||
<key>name</key> | |||
<string>web-app</string> | |||
<key>regexFolderFilter</key> | |||
<string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string> | |||
<key>sourceDirectory</key> | |||
<string>web-app</string> | |||
</dict> | |||
</array> | |||
<key>fileHierarchyDrawerWidth</key> | |||
<integer>200</integer> | |||
<key>metaData</key> | |||
<dict/> | |||
<key>showFileHierarchyDrawer</key> | |||
<true/> | |||
<key>windowFrame</key> | |||
<string>{{237, 127}, {742, 553}}</string> | |||
</dict> | |||
</plist> |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,50 @@ | |||
class QanbanDomainGrailsPlugin { | |||
// the plugin version | |||
def version = "0.1" | |||
// the version or versions of Grails the plugin is designed for | |||
def grailsVersion = "1.1.1 > *" | |||
// the other plugins this plugin depends on | |||
def dependsOn = [acegi:"* > 0.5.2", hibernate:"1.1.1"] | |||
// resources that are excluded from plugin packaging | |||
def pluginExcludes = [ | |||
"grails-app/views/error.gsp" | |||
] | |||
|
|||
// TODO Fill in these fields | |||
def author = "Mattias Mirhagen" | |||
def authorEmail = "mattias.mirhagen@qbranch.se" | |||
def title = "Qanban Domain" | |||
def description = '''\\ | |||
This plugin hold the domain model for the Qanban application | |||
''' | |||
|
|||
// URL to the plugin's documentation | |||
def documentation = "http://grails.org/QanbanDomain+Plugin" | |||
|
|||
def doWithSpring = { | |||
// TODO Implement runtime spring config (optional) | |||
} | |||
|
|||
def doWithApplicationContext = { applicationContext -> | |||
// TODO Implement post initialization spring config (optional) | |||
} | |||
|
|||
def doWithWebDescriptor = { xml -> | |||
// TODO Implement additions to web.xml (optional) | |||
} | |||
|
|||
def doWithDynamicMethods = { ctx -> | |||
// TODO Implement registering dynamic methods to classes (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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,6 @@ | |||
#utf-8 | |||
#Fri Jan 15 10:59:54 CET 2010 | |||
plugins.acegi=0.5.2 | |||
app.grails.version=1.1.1 | |||
plugins.hibernate=1.1.1 | |||
app.name=QanbanDomain |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,142 @@ | |||
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="qanbandomain" default="test"> | |||
<property environment="env"/> | |||
<property name="ivy.install.version" value="2.0.0" /> | |||
<condition property="ivy.home" value="${env.IVY_HOME}"> | |||
<isset property="env.IVY_HOME" /> | |||
</condition> | |||
<property name="ivy.home" value="${user.home}/.ant" /> | |||
<property name="ivy.jar.dir" value="${ivy.home}/lib" /> | |||
<property name="ivy.jar.file" value="${ivy.jar.dir}/ivy-${ivy.install.version}.jar" /> | |||
|
|||
<target name="download-ivy" unless="offline"> | |||
<available file="${ivy.jar.file}" property="ivy.available"/> | |||
<antcall target="-download-ivy" /> | |||
</target> | |||
|
|||
<target name="-download-ivy" unless="ivy.available"> | |||
<mkdir dir="${ivy.jar.dir}"/> | |||
<!-- download Ivy from web site so that it can be used even without any special installation --> | |||
<get src="http://www.apache.org/dist/ant/ivy/${ivy.install.version}/apache-ivy-${ivy.install.version}-bin.zip" | |||
dest="${ivy.home}/ivy.zip" usetimestamp="true" verbose="true"/> | |||
<unzip src="${ivy.home}/ivy.zip" dest="${ivy.jar.dir}"> | |||
<patternset> | |||
<include name="**/*.jar"/> | |||
</patternset> | |||
<mapper type="flatten"/> | |||
</unzip> | |||
</target> | |||
|
|||
<target name="init-ivy" depends="download-ivy" unless="ivy.lib.path"> | |||
<!-- try to load ivy here from ivy home, in case the user has not already dropped | |||
it into ant's lib dir (note that the latter copy will always take precedence). | |||
We will not fail as long as local lib dir exists (it may be empty) and | |||
ivy is in at least one of ant's lib dir or the local lib dir. --> | |||
<path id="ivy.lib.path"> | |||
<fileset dir="${ivy.jar.dir}" includes="*.jar"/> | |||
</path> | |||
<taskdef resource="org/apache/ivy/ant/antlib.xml" | |||
uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/> | |||
</target> | |||
|
|||
|
|||
<property name="lib.dir" value="${basedir}/lib"/> | |||
|
|||
<macrodef name="grails"> | |||
<attribute name="script"/> | |||
<attribute name="args" default="" /> | |||
<sequential> | |||
<grailsTask script="@{script}" args="@{args}" classpathref="grails.classpath"> | |||
<compileClasspath refid="compile.classpath"/> | |||
<testClasspath refid="test.classpath"/> | |||
<runtimeClasspath refid="app.classpath"/> | |||
</grailsTask> | |||
</sequential> | |||
</macrodef> | |||
|
|||
<!-- ================================= | |||
target: resolve | |||
================================= --> | |||
<target name="-resolve" description="--> Retrieve dependencies with ivy" depends="init-ivy"> | |||
<ivy:retrieve pattern="${lib.dir}/[conf]/[artifact]-[revision].[ext]"/> | |||
</target> | |||
|
|||
<target name="-init-grails" depends="-resolve"> | |||
<path id="grails.classpath"> | |||
<fileset dir="${lib.dir}/build"/> | |||
<fileset dir="${lib.dir}"/> | |||
</path> | |||
|
|||
<path id="compile.classpath"> | |||
<fileset dir="${lib.dir}/compile"/> | |||
</path> | |||
|
|||
<path id="test.classpath"> | |||
<fileset dir="${lib.dir}/test"/> | |||
</path> | |||
|
|||
<path id="app.classpath"> | |||
<fileset dir="${lib.dir}/runtime"/> | |||
</path> | |||
|
|||
<taskdef name="grailsTask" | |||
classname="grails.ant.GrailsTask" | |||
classpathref="grails.classpath"/> | |||
</target> | |||
|
|||
<target name="deps-report" depends="-resolve" description="--> Generate report of module dependencies."> | |||
<ivy:report conf="*"/> | |||
</target> | |||
|
|||
<!-- ================================= | |||
target: clean | |||
================================= --> | |||
<target name="clean" description="--> Cleans a Grails application"> | |||
<delete failonerror="true"> | |||
<fileset dir="${lib.dir}/build" includes="*/"/> | |||
<fileset dir="${lib.dir}/compile" includes="*/"/> | |||
<fileset dir="${lib.dir}/runtime" includes="*/"/> | |||
<fileset dir="${lib.dir}/test" includes="*/"/> | |||
</delete> | |||
<antcall target="--grails-clean"/> | |||
</target> | |||
|
|||
<!-- extra target to avoid errors on Windows because libs on classpath can not be deleted --> | |||
<target name="--grails-clean" depends="-init-grails"> | |||
<grails script="Clean"/> | |||
</target> | |||
|
|||
<!-- ================================= | |||
target: compile | |||
================================= --> | |||
<target name="compile" depends="-init-grails" description="--> Compiles a Grails application"> | |||
<grails script="Compile"/> | |||
</target> | |||
|
|||
<!-- ================================= | |||
target: war | |||
================================= --> | |||
<target name="war" depends="-init-grails" description="--> Creates a WAR of a Grails application"> | |||
<grails script="War"/> | |||
</target> | |||
|
|||
<!-- ================================= | |||
target: test | |||
================================= --> | |||
<target name="test" depends="-init-grails" description="--> Run a Grails applications unit tests"> | |||
<grails script="TestApp"/> | |||
</target> | |||
|
|||
<!-- ================================= | |||
target: run | |||
================================= --> | |||
<target name="run" depends="-init-grails" description="--> Runs a Grails application using embedded Jetty"> | |||
<grails script="RunApp"/> | |||
</target> | |||
|
|||
<!-- ================================= | |||
target: deploy | |||
================================= --> | |||
<target name="deploy" depends="war" description="--> The deploy target (initially empty)"> | |||
<!-- TODO --> | |||
</target> | |||
</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 | Original file line | 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='com.opensymphony.oscache.hibernate.OSCacheProvider' | |||
} | |||
// 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
class UrlMappings { | |||
static mappings = { | |||
"/$controller/$action?/$id?"{ | |||
constraints { | |||
// apply constraints here | |||
} | |||
} | |||
"/"(view:"/index") | |||
"500"(view:'/error') | |||
} | |||
} |
35 changes: 35 additions & 0 deletions
35
qanban-domain-plugin/grails-app/domain/se/qbranch/qanban/Board.groovy
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,35 @@ | |||
/* | |||
* Copyright 2009 Qbranch AB | |||
* | |||
* Licensed under the Apache License, Version 2.0 (the "License"); | |||
* you may not use this file except in compliance with the License. | |||
* You may obtain a copy of the License at | |||
* | |||
* http://www.apache.org/licenses/LICENSE-2.0 | |||
* | |||
* Unless required by applicable law or agreed to in writing, software | |||
* distributed under the License is distributed on an "AS IS" BASIS, | |||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
* See the License for the specific language governing permissions and | |||
* limitations under the License. | |||
*/ | |||
|
|||
package se.qbranch.qanban | |||
|
|||
class Board { | |||
|
|||
static constraints = { | |||
domainId( unique: true, blank: false ) | |||
title( unique: true, blank: false ) | |||
} | |||
|
|||
static hasMany = [phases:Phase] | |||
List phases = [] | |||
|
|||
String domainId | |||
String title | |||
|
|||
Date dateCreated | |||
Date lastUpdated | |||
|
|||
} |
Oops, something went wrong.