2 <project name="grails-build" default="package">
4 <property file="build.properties"/>
5 <property environment="env" />
10 <fileset dir="${grails.lib}">
11 <include name="*.jar"/>
13 <fileset dir="${grails.lib}/endorsed">
14 <include name="*.jar"/>
16 <fileset dir="${env.JAVA_HOME}/lib">
17 <include name="tools.jar"/>
19 <pathelement location="${grails.src.war}/WEB-INF"/>
20 <pathelement path="${grails.build}"/>
23 <target name="clean" description="Clean the build directory.">
24 <echo>JAVA HOME IS ${env.JAVA_HOME}</echo>
25 <delete dir="${grails.dist}"/>
26 <delete dir="${grails.target}"/>
27 <delete dir="${grails.doc}"/>
30 <import file="ant/build/resolve.xml" />
31 <import file="ant/build/compile.xml" />
32 <import file="ant/build/unit-test.xml" />
33 <import file="ant/build/bundle.xml" />
34 <import file="ant/build/javadoc.xml" />
35 <import file="ant/build/osx.xml" />
36 <!--<import file="ant/build/checkstyle.xml" />-->
37 <import file="ant/build/release.xml" />
38 <import file="ant/build/eclipse.xml" />
41 depends="clean,build, test-with-coverage, jar, javadoc, package"
42 description="to be started by the CruiseControl build server">
43 <delete dir="dist/coverage/" quiet="true"/>
44 <mkdir dir="dist/coverage/"/>
45 <move todir="dist/coverage/">
46 <fileset dir="${coverage.report}"/>