Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

updated petclinic sample to 1.3 RC1

  • Loading branch information...
commit cda3dce3cede581d1b8e0ce5e2f025be14a39d63 1 parent e6a843e
graemerocher graemerocher authored
6 samples/petclinic/application.properties
... ... @@ -1,8 +1,8 @@
1 1 #Grails Metadata file
2 2 #Thu Oct 01 11:54:33 CEST 2009
3   -app.grails.version=1.3.0.M1
  3 +app.grails.version=1.3.0.RC1
4 4 app.name=petclinic
5 5 app.servlet.version=2.4
6 6 app.version=0.1
7   -plugins.hibernate=1.3.0.M1
8   -plugins.tomcat=1.3.0.M1
  7 +plugins.hibernate=1.3.0.RC1
  8 +plugins.tomcat=1.3.0.RC1
130 samples/petclinic/build.xml
... ... @@ -1,130 +0,0 @@
1   -<project xmlns:ivy="antlib:org.apache.ivy.ant" name="petclinic" default="test">
2   - <property environment="env"/>
3   - <property name="ivy.install.version" value="2.0.0" />
4   - <condition property="ivy.home" value="${env.IVY_HOME}">
5   - <isset property="env.IVY_HOME" />
6   - </condition>
7   - <property name="ivy.home" value="${user.home}/.grails/ivy" />
8   - <property name="ivy.jar.dir" value="${ivy.home}/lib" />
9   - <property name="ivy.jar.file" value="${ivy.jar.dir}/ivy-${ivy.install.version}.jar" />
10   -
11   - <target name="download-ivy" unless="offline">
12   - <available file="${ivy.jar.file}" property="ivy.available"/>
13   - <antcall target="-download-ivy" />
14   - </target>
15   -
16   - <target name="-download-ivy" unless="ivy.available">
17   - <mkdir dir="${ivy.jar.dir}"/>
18   - <!-- download Ivy from web site so that it can be used even without any special installation -->
19   - <get src="http://www.apache.org/dist/ant/ivy/${ivy.install.version}/apache-ivy-${ivy.install.version}-bin.zip"
20   - dest="${ivy.home}/ivy.zip" usetimestamp="true" verbose="true"/>
21   - <unzip src="${ivy.home}/ivy.zip" dest="${ivy.jar.dir}">
22   - <patternset>
23   - <include name="**/*.jar"/>
24   - </patternset>
25   - <mapper type="flatten"/>
26   - </unzip>
27   - </target>
28   -
29   - <target name="init-ivy" depends="download-ivy" unless="ivy.lib.path">
30   - <!-- try to load ivy here from ivy home, in case the user has not already dropped
31   - it into ant's lib dir (note that the latter copy will always take precedence).
32   - We will not fail as long as local lib dir exists (it may be empty) and
33   - ivy is in at least one of ant's lib dir or the local lib dir. -->
34   - <path id="ivy.lib.path">
35   - <fileset dir="${ivy.jar.dir}" includes="*.jar"/>
36   - </path>
37   - <taskdef resource="org/apache/ivy/ant/antlib.xml"
38   - uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
39   - </target>
40   -
41   -
42   - <property name="lib.dir" value="${basedir}/lib"/>
43   -
44   - <macrodef name="grails">
45   - <attribute name="script"/>
46   - <attribute name="args" default="" />
47   - <sequential>
48   - <grailsTask script="@{script}" args="@{args}" classpathref="grails.classpath">
49   - <compileClasspath refid="compile.classpath"/>
50   - <testClasspath refid="test.classpath"/>
51   - <runtimeClasspath refid="app.classpath"/>
52   - </grailsTask>
53   - </sequential>
54   - </macrodef>
55   -
56   - <!-- =================================
57   - target: resolve
58   - ================================= -->
59   - <target name="-resolve" description="--> Retrieve dependencies with ivy" depends="init-ivy">
60   - <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact]-[revision].[ext]"/>
61   - </target>
62   -
63   - <target name="-init-grails" depends="-resolve">
64   - <path id="grails.classpath">
65   - <fileset dir="${lib.dir}/build"/>
66   - <fileset dir="${lib.dir}"/>
67   - </path>
68   -
69   - <taskdef name="grailsTask"
70   - classname="grails.ant.GrailsTask"
71   - classpathref="grails.classpath"/>
72   - </target>
73   -
74   - <target name="deps-report" depends="-resolve" description="--> Generate report of module dependencies.">
75   - <ivy:report conf="*"/>
76   - </target>
77   -
78   - <!-- =================================
79   - target: clean
80   - ================================= -->
81   - <target name="clean" description="--> Cleans a Grails application">
82   - <delete failonerror="true">
83   - <fileset dir="${lib.dir}/build" includes="*/"/>
84   - <fileset dir="${lib.dir}/compile" includes="*/"/>
85   - <fileset dir="${lib.dir}/runtime" includes="*/"/>
86   - <fileset dir="${lib.dir}/test" includes="*/"/>
87   - </delete>
88   - <antcall target="--grails-clean"/>
89   - </target>
90   -
91   - <!-- extra target to avoid errors on Windows because libs on classpath can not be deleted -->
92   - <target name="--grails-clean" depends="-init-grails">
93   - <grails script="Clean"/>
94   - </target>
95   -
96   - <!-- =================================
97   - target: compile
98   - ================================= -->
99   - <target name="compile" depends="-init-grails" description="--> Compiles a Grails application">
100   - <grails script="Compile"/>
101   - </target>
102   -
103   - <!-- =================================
104   - target: war
105   - ================================= -->
106   - <target name="war" depends="-init-grails" description="--> Creates a WAR of a Grails application">
107   - <grails script="War"/>
108   - </target>
109   -
110   - <!-- =================================
111   - target: test
112   - ================================= -->
113   - <target name="test" depends="-init-grails" description="--> Run a Grails applications unit tests">
114   - <grails script="TestApp"/>
115   - </target>
116   -
117   - <!-- =================================
118   - target: run
119   - ================================= -->
120   - <target name="run" depends="-init-grails" description="--> Runs a Grails application using embedded Jetty">
121   - <grails script="RunApp"/>
122   - </target>
123   -
124   - <!-- =================================
125   - target: deploy
126   - ================================= -->
127   - <target name="deploy" depends="war" description="--> The deploy target (initially empty)">
128   - <!-- TODO -->
129   - </target>
130   -</project>
10 samples/petclinic/ivy.xml
... ... @@ -1,10 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<ivy-module version="2.0">
3   - <info organisation="org.grails" module="petclinic"/>
4   - <configurations defaultconfmapping="build->default">
5   - <conf name="build"/>
6   - </configurations>
7   - <dependencies>
8   - <dependency org="org.grails" name="grails-bootstrap" rev="1.2-M3" conf="build"/>
9   - </dependencies>
10   -</ivy-module>
15 samples/petclinic/ivysettings.xml
... ... @@ -1,15 +0,0 @@
1   -<ivysettings>
2   - <settings defaultResolver="codehaus-plus"/>
3   - <include url="${ivy.default.settings.dir}/ivysettings-public.xml" />
4   - <include url="${ivy.default.settings.dir}/ivysettings-shared.xml"/>
5   - <include url="${ivy.default.settings.dir}/ivysettings-local.xml" />
6   - <include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/>
7   - <resolvers>
8   - <chain name="codehaus-plus" dual="true">
9   - <ibiblio name="codehaus-snapshots" root="http://snapshots.repository.codehaus.org" m2compatible="true" changingPattern=".*SNAPSHOT"/>
10   - <ibiblio name="codehaus" root="http://repository.codehaus.org" m2compatible="true"/>
11   - <ibiblio name="javanet" root="http://download.java.net/maven/2/" m2compatible="true"/>
12   - <resolver ref="public"/>
13   - </chain>
14   - </resolvers>
15   -</ivysettings>
11 samples/petclinic/petclinic-test.launch
... ... @@ -1,11 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
3   -<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
4   -<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
5   -<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
6   -<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
7   -<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit3"/>
8   -<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="grails.test.GrailsAwareGroovyTestSuite"/>
9   -<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="petclinic"/>
10   -<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dtest=${resource_loc}"/>
11   -</launchConfiguration>
19 samples/petclinic/petclinic.launch
... ... @@ -1,19 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
3   -<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
4   -<listEntry value="/petclinic"/>
5   -</listAttribute>
6   -<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
7   -<listEntry value="4"/>
8   -</listAttribute>
9   -<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
10   -<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
11   -<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;petclinic&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#10;"/>
12   -<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry containerPath=&quot;GRAILS_HOME/dist/grails-bootstrap-1.2-M3.jar&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#10;"/>
13   -<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry containerPath=&quot;GRAILS_HOME/lib/groovy-all-1.6.4.jar&quot; path=&quot;3&quot; type=&quot;3&quot;/&gt;&#10;"/>
14   -</listAttribute>
15   -<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
16   -<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="grails.util.GrailsMain"/>
17   -<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="petclinic"/>
18   -<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dbase.dir=&quot;${project_loc:petclinic}&quot; -Dserver.port=8080 -Dgrails.env=development"/>
19   -</launchConfiguration>

0 comments on commit cda3dce

Please sign in to comment.
Something went wrong with that request. Please try again.