Skip to content
Newer
Older
100644 92 lines (72 sloc) 2.34 KB
315b549 @burtbeckwith initial commit
burtbeckwith authored Jun 18, 2010
1 <project name='spring-security-cas' default='package'>
2
3 <!-- Properties -->
4
5 <property file='application.properties' />
6
7 <property environment='env'/>
8
9 <!-- optional properties file for developer overrides -->
10 <property file='build.properties' />
11
12 <property name='grails.home' value='${env.GRAILS_HOME}' />
13
14 <condition property='grails' value='grails.bat'>
15 <os family='windows'/>
16 </condition>
17 <property name='grails' value='grails' />
18
19 <condition property='grails-debug' value='grails-debug.bat'>
20 <os family='windows'/>
21 </condition>
22 <property name='grails-debug' value='grails-debug' />
23
24 <!-- Macrodefs -->
25
26 <macrodef name='grails'>
27 <attribute name='action' />
28 <attribute name='environment' default='dev' />
29 <element name='args' optional='true' />
30 <sequential>
31 <exec executable='${grails}' failonerror='true'>
32 <args />
33 <arg value='@{environment}'/>
34 <arg value='@{action}'/>
35 </exec>
36 </sequential>
37 </macrodef>
38
39 <macrodef name='grails-debug'>
40 <attribute name='action' />
41 <attribute name='environment' default='dev' />
42 <element name='args' optional='true' />
43 <sequential>
44 <exec executable='${grails-debug}' failonerror='true'>
45 <args />
46 <arg value='@{environment}'/>
47 <arg value='@{action}'/>
48 </exec>
49 </sequential>
50 </macrodef>
51
52 <!-- Targets -->
53
54 <target name='init'>
55 <mkdir dir='grails-app/conf/spring'/>
56 </target>
57
58 <target name='clean' description='Cleans a Grails application' depends='init'>
59 <grails action='clean' />
60 <delete><fileset dir='.' includes='*.log*' /></delete>
61 </target>
62
63 <target name='doc' description='Generates docs' depends='init'>
64 <grails action='doc' />
65 </target>
66
67 <target name='test' description='Run unit tests' depends='clean'>
68 <grails action='test-app' environment='test' />
69 </target>
70
71 <target name='package' description='Package the plugin' depends='test'>
72
73 <grails action='package-plugin' />
74
75 <!-- clean up -->
76 <delete dir='grails-app/conf/hibernate'/>
77 <delete dir='grails-app/conf/spring'/>
78 <delete dir='grails-app/controllers'/>
79 <delete dir='grails-app/domain'/>
80 <delete dir='grails-app/i18n'/>
81 <delete dir='grails-app/services'/>
82 <delete dir='grails-app/taglib'/>
83 <delete dir='grails-app/utils'/>
84 <delete dir='grails-app/views'/>
85 <delete dir='src/groovy'/>
86 <delete dir='lib'/>
87 <delete dir='test'/>
88 <delete dir='web-app'/>
89 </target>
90
91 </project>
Something went wrong with that request. Please try again.