Permalink
Browse files

app skeleton

  • Loading branch information...
0 parents commit 9c0af3a8c09118304a988e5f05b3e41d068d223d @lucastex lucastex committed Jul 24, 2009
Showing with 13,207 additions and 0 deletions.
  1. +163 −0 .classpath
  2. +23 −0 .project
  3. +3 −0 .settings/org.codehaus.groovy.eclipse.preferences.prefs
  4. +4 −0 README
  5. +7 −0 application.properties
  6. +142 −0 build.xml
  7. +7 −0 grails-app/conf/BootStrap.groovy
  8. +73 −0 grails-app/conf/Config.groovy
  9. +32 −0 grails-app/conf/DataSource.groovy
  10. +11 −0 grails-app/conf/UrlMappings.groovy
  11. +4 −0 grails-app/conf/spring/resources.groovy
  12. +34 −0 grails-app/i18n/messages.properties
  13. +30 −0 grails-app/i18n/messages_de.properties
  14. +30 −0 grails-app/i18n/messages_es.properties
  15. +19 −0 grails-app/i18n/messages_fr.properties
  16. +19 −0 grails-app/i18n/messages_it.properties
  17. +19 −0 grails-app/i18n/messages_ja.properties
  18. +34 −0 grails-app/i18n/messages_nl.properties
  19. +34 −0 grails-app/i18n/messages_pt_BR.properties
  20. +34 −0 grails-app/i18n/messages_pt_PT.properties
  21. +31 −0 grails-app/i18n/messages_ru.properties
  22. +35 −0 grails-app/i18n/messages_th.properties
  23. +18 −0 grails-app/i18n/messages_zh_CN.properties
  24. +54 −0 grails-app/views/error.gsp
  25. +20 −0 grails-app/views/index.gsp
  26. +16 −0 grails-app/views/layouts/main.gsp
  27. +73 −0 grails-file-uploader-sample.tmproj
  28. +47 −0 web-app/WEB-INF/applicationContext.xml
  29. +14 −0 web-app/WEB-INF/sitemesh.xml
  30. +551 −0 web-app/WEB-INF/tld/grails.tld
  31. +311 −0 web-app/WEB-INF/tld/spring.tld
  32. +267 −0 web-app/css/main.css
  33. BIN web-app/images/favicon.ico
  34. BIN web-app/images/grails_logo.jpg
  35. BIN web-app/images/skin/database_add.png
  36. BIN web-app/images/skin/database_delete.png
  37. BIN web-app/images/skin/database_edit.png
  38. BIN web-app/images/skin/database_save.png
  39. BIN web-app/images/skin/database_table.png
  40. BIN web-app/images/skin/exclamation.png
  41. BIN web-app/images/skin/house.png
  42. BIN web-app/images/skin/information.png
  43. BIN web-app/images/skin/shadow.jpg
  44. BIN web-app/images/skin/sorted_asc.gif
  45. BIN web-app/images/skin/sorted_desc.gif
  46. BIN web-app/images/spinner.gif
  47. +13 −0 web-app/js/application.js
  48. +7 −0 web-app/js/prototype/animation.js
  49. +136 −0 web-app/js/prototype/builder.js
  50. +965 −0 web-app/js/prototype/controls.js
  51. +974 −0 web-app/js/prototype/dragdrop.js
  52. +1,122 −0 web-app/js/prototype/effects.js
  53. +4,184 −0 web-app/js/prototype/prototype.js
  54. +2,691 −0 web-app/js/prototype/rico.js
  55. +58 −0 web-app/js/prototype/scriptaculous.js
  56. +275 −0 web-app/js/prototype/slider.js
  57. +55 −0 web-app/js/prototype/sound.js
  58. +568 −0 web-app/js/prototype/unittest.js
@@ -0,0 +1,163 @@
+<?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="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.2.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.3.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/radeox.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.2-M1.jar" />
+
+<classpathentry kind="var" path="GRAILS_HOME/dist/grails-core-1.2-M1.jar" />
+
+<classpathentry kind="var" path="GRAILS_HOME/dist/grails-crud-1.2-M1.jar" />
+
+<classpathentry kind="var" path="GRAILS_HOME/dist/grails-docs-1.2-M1.jar" />
+
+<classpathentry kind="var" path="GRAILS_HOME/dist/grails-gorm-1.2-M1.jar" />
+
+<classpathentry kind="var" path="GRAILS_HOME/dist/grails-resources-1.2-M1.jar" />
+
+<classpathentry kind="var" path="GRAILS_HOME/dist/grails-scripts-1.2-M1.jar" />
+
+<classpathentry kind="var" path="GRAILS_HOME/dist/grails-spring-1.2-M1.jar" />
+
+<classpathentry kind="var" path="GRAILS_HOME/dist/grails-test-1.2-M1.jar" />
+
+<classpathentry kind="var" path="GRAILS_HOME/dist/grails-web-1.2-M1.jar" />
+
+<classpathentry kind="var" path="GRAILS_HOME/dist/grails-webflow-1.2-M1.jar" />
+
+
+ <classpathentry kind="output" path="web-app/WEB-INF/classes"/>
+</classpath>
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>grails-file-uploader-sample</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>
@@ -0,0 +1,3 @@
+#Created by grails
+eclipse.preferences.version=1
+groovy.dont.generate.class.files=true
4 README
@@ -0,0 +1,4 @@
+Sample app to show grails-file-uploader plugin usage.
+
+Download: http://github.com/lucastex/grails-file-uploader
+Documentation: http://grails.org/plugin/file-uploader
@@ -0,0 +1,7 @@
+#utf-8
+#Fri Jul 24 12:33:07 BRT 2009
+app.grails.version=1.2-M1
+app.name=grails-file-uploader-sample
+app.servlet.version=2.4
+app.version=0.1
+plugins.hibernate=1.2-M1
142 build.xml
@@ -0,0 +1,142 @@
+<project xmlns:ivy="antlib:org.apache.ivy.ant" name="grails-file-uploader-sample" 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>
@@ -0,0 +1,7 @@
+class BootStrap {
+
+ def init = { servletContext ->
+ }
+ def destroy = {
+ }
+}
Oops, something went wrong.

0 comments on commit 9c0af3a

Please sign in to comment.