forked from qube-ag/grails-openid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to Grails 1.1, fixed a few bugs, simplified some code in the …
…controller, added project files for IntelliJ IDEA and Eclipse. git-svn-id: https://svn.codehaus.org/grails-plugins/grails-openid/trunk@55256 832c1c66-4827-0410-8465-ccb17913cd09
- Loading branch information
mattes3
committed
Aug 22, 2009
1 parent
848d1c9
commit 42246a8
Showing
18 changed files
with
1,610 additions
and
177 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,89 @@ | ||
<?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="test/integration"/> | ||
<classpathentry kind="src" path="test/unit"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="output" path="web-app/WEB-INF/classes"/> | ||
<classpathentry kind="var" path="GRAILS_HOME/ant/lib/ant.jar"/> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/ant-1.7.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/ant-junit-1.7.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/ant-launcher-1.7.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/ant-nodeps-1.7.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/ant-trax.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/antlr-2.7.6.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/backport-util-concurrent-3.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/cglib-nodep-2.1_3.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-beanutils-1.7.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-cli-1.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-codec-1.3.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-collections-3.2.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-dbcp-1.2.1.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-el-1.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-fileupload-1.1.1.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-io-1.4.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-lang-2.4.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-pool-1.2.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/commons-validator-1.3.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/ehcache-1.5.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/ejb3-persistence-3.3.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/gant_groovy1.6-1.6.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/groovy-all-1.6.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/hibernate-annotations-3.3.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/hibernate-commons-annotations-3.3.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/hibernate3-3.3.1.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/hsqldb-1.8.0.5.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/ivy-2.0.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/jasper-compiler-5.5.15.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/jasper-compiler-jdt-5.5.15.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/jasper-runtime-5.5.15.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/jcl-over-slf4j-1.5.6.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/jetty-6.1.14.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/jetty-naming-6.1.14.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/jetty-plus-6.1.14.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/jetty-util-6.1.14.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/jline-0.9.91.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/jsp-api-2.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/jsp-api-2.1.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/jsr107cache-1.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/jstl-2.3.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/jstl-2.4.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/jta-1.1.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/junit-3.8.2.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/log4j-1.2.15.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/ognl-2.6.9.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/org.springframework.binding-2.0.3.RELEASE.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/org.springframework.js-2.0.3.RELEASE.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/org.springframework.webflow-2.0.3.RELEASE.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/oro-2.0.8.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/oscache-2.4.1.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/serializer.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/servlet-api-2.5-6.1.14.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/sitemesh-2.4.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/slf4j-api-1.5.6.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/slf4j-log4j12-1.5.6.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/spring-2.5.6.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/spring-test-2.5.6.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/spring-webmvc-2.5.6.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/standard-2.3.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/standard-2.4.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/start.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/svnkit-1.2.0.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/lib/xpp3_min-1.1.3.4.O.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-bootstrap-1.1.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-core-1.1.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-crud-1.1.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-gorm-1.1.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-resources-1.1.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-scripts-1.1.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-spring-1.1.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-test-1.1.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-web-1.1.jar" /> | ||
<classpathentry kind="var" path="GRAILS_HOME/dist/grails-webflow-1.1.jar" /> | ||
</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,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>openid</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.codehaus.groovy.eclipse.groovyBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>org.codehaus.groovy.eclipse.groovyNature</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 |
---|---|---|
|
@@ -14,10 +14,10 @@ | |
* limitations under the License. | ||
*/ | ||
class OpenidGrailsPlugin { | ||
def version = "0.1" | ||
def version = "0.2" | ||
def dependsOn = [:] | ||
def author = "Marcel Overdijk" | ||
def authorEmail = "[email protected]" | ||
def author = "Marcel Overdijk, Matthias Bohlen" | ||
def authorEmail = "[email protected], [email protected]" | ||
def title = "OpenID" | ||
def description = "Provides simple authentication using OpenID" | ||
def documentation = "http://grails.org/OpenID+Plugin" | ||
|
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,4 +1,5 @@ | ||
#Do not edit app.grails.* properties, they may change automatically. DO NOT put application configuration in here, it is not the right place! | ||
#Mon Apr 21 16:01:59 CEST 2008 | ||
app.grails.version=1.0.2 | ||
app.name=openid | ||
#utf-8 | ||
#Sat Aug 22 12:10:57 CEST 2009 | ||
app.grails.version=1.1 | ||
plugins.hibernate=1.1 | ||
app.name=openid |
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 @@ | ||
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="openid" 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"/> | ||
</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" depends="-init-grails" description="--> Cleans a Grails application"> | ||
<grails script="Clean"/> | ||
<delete dir="${lib.dir}" includes="**/*"/> | ||
</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 | 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') | ||
} | ||
} |
Oops, something went wrong.