Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding the *TypeArg annotations.

git-svn-id: https://svn.codehaus.org/grails-plugins/grails-gwt/trunk@1989 832c1c66-4827-0410-8465-ccb17913cd09
  • Loading branch information...
commit bfd4dbafb7a3cb6432b8c802f26a45331fdc3732 1 parent 59e4d66
pledbrook authored
View
68 build.xml
@@ -0,0 +1,68 @@
+<project name="grails-gwt" default="test">
+
+ <condition property="grails" value="grails.bat">
+ <os family="windows"/>
+ </condition>
+ <property environment="env"/>
+ <property name="grails" value="grails" />
+ <property name="src.local.dir" value="${basedir}/src-local" />
+ <property name="classes.dir" value="${basedir}/build/classes" />
+ <property name="lib.dir" value="${basedir}/lib" />
+ <property name="grails.dir" value="${env.GRAILS_HOME}/lib"/>
+
+ <!-- Load up the groovyc task -->
+ <taskdef name="groovyc" classname="org.codehaus.groovy.ant.GroovycTask">
+ <classpath>
+ <pathelement location="${grails.dir}/groovy-all-1.1-beta-3-SNAPSHOT.jar"/>
+ </classpath>
+ </taskdef>
+
+ <!-- =================================
+ target: clean
+ ================================= -->
+ <target name="clean" depends="clean-local" description="--> Cleans a Grails application">
+ <exec executable="${grails}" failonerror="true">
+ <arg value="clean"/>
+ </exec>
+ <delete dir="${classes.dir}"/>
+ </target>
+
+ <!-- =================================
+ target: war
+ ================================= -->
+ <target name="war" description="--> Creates a WAR of a Grails application">
+ <exec executable="${grails}" failonerror="true">
+ <arg value="war"/>
+ </exec>
+ </target>
+
+ <!-- =================================
+ target: test
+ ================================= -->
+ <target name="test" description="--> Run a Grails applications unit tests">
+ <exec executable="${grails}" failonerror="true">
+ <arg value="test-app"/>
+ </exec>
+ </target>
+
+ <!-- =================================
+ target: deploy
+ ================================= -->
+ <target name="deploy" depends="war" description="--> The deploy target (initially empty)">
+ <!-- TODO -->
+ </target>
+
+ <target name="clean-local" description="--> Cleans the locally compiled files.">
+ <delete dir="${classes.dir}"/>
+ </target>
+
+ <target name="compile-local" description="Compiles the locally defined source files.">
+ <mkdir dir="${classes.dir}" />
+ <javac srcdir="${src.local.dir}/java" destdir="${classes.dir}" source="1.5" target="1.5"/>
+ <groovyc srcdir="${src.local.dir}/groovy" destdir="${classes.dir}"/>
+ </target>
+
+ <target name="jar-local" depends="clean-local,compile-local" description="Packages the local classes into a JAR file.">
+ <jar destfile="${lib.dir}/grails-gwt-util.jar" basedir="${classes.dir}" />
+ </target>
+</project>
View
27 src-local/java/org/codehaus/groovy/grails/plugins/gwt/annotation/CollectionTypeArg.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2007 Peter Ledbrook.
+ *
+ * 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 org.codehaus.groovy.grails.plugins.gwt.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Target({ElementType.METHOD, ElementType.PARAMETER})
+@Retention(RetentionPolicy.RUNTIME)
+public @interface CollectionTypeArg {
+ Class<?> value();
+}
View
28 src-local/java/org/codehaus/groovy/grails/plugins/gwt/annotation/MapTypeArg.java
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2007 Peter Ledbrook.
+ *
+ * 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 org.codehaus.groovy.grails.plugins.gwt.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Target({ElementType.METHOD, ElementType.PARAMETER})
+@Retention(RetentionPolicy.RUNTIME)
+public @interface MapTypeArg {
+ Class<?> key();
+ Class<?> value();
+}
Please sign in to comment.
Something went wrong with that request. Please try again.