01 <project name="medrec" default="build" basedir=".">
02
03 <!-- set global properties for this build -->
04 <property environment="env"/>
05 <property file="./medrec.properties"/>
06 <property name="root" value="."/>
07
08 <property name="build.compiler" value="${compiler}"/>
09
10 <target name="init" description="">
11 <echo message="#### S T A R T M E D R E C ####"/>
12 <tstamp/>
13 <echo message="Started on ${TODAY} at ${TSTAMP}"/>
14 </target>
15
16 <!-- Clean all build related dirs and jars -->
17 <target name="clean" description="Deletes ${build.dir}/** and ${dist.dir}/**.">
18 <delete includeEmptyDirs="true" failonerror="false">
19 <fileset dir="${build.dir}" includes="**/*"/>
20 <fileset dir="${dist.dir}" includes="**/*"/>
21 </delete>
22 </target>
23
24 <!-- Build all MedRec components. For development (split-dir). -->
25 <target name="build" depends="init" description="Builds all MedRec components.">
26 <ant inheritAll="false" dir="${root}/startBrowserEar" antfile="build.xml"/>
27 <ant inheritAll="false" dir="${root}/security"/>
28 <ant inheritAll="false" dir="${root}/common"/>
29 <ant inheritAll="false" dir="${root}/medrecEar"/>
30 <ant inheritAll="false" dir="${root}/physicianEar"/>
31 <ant inheritAll="false" dir="${root}/clients"/>
32 <echo message="#### E N D M E D R E C ####"/>
33 </target>
34
35 <!-- Build and deploy all MedRec components. For development (split-dir). -->
36 <target name="deploy.dev" depends="init,clean"
37 description="Builds and stages all MedRec components to split-dir deployment.">
38 <ant inheritAll="false" dir="${root}/startBrowserEar"
39 antfile="build.xml" target="stage"/>
40 <ant inheritAll="false" dir="${root}/initEar"
41 antfile="build.xml" target="stage"/>
42 <ant inheritAll="false" dir="${root}/security"/>
43 <ant inheritAll="false" dir="${root}/common" target="stage"/>
44 <ant inheritAll="false" dir="${root}/medrecEar" target="stage"/>
45 <ant inheritAll="false" dir="${root}/physicianEar" target="stage"/>
46 <ant inheritAll="false" dir="${root}/clients"/>
47 <echo message="#### E N D M E D R E C ####"/>
48 </target>
49
50 <!-- Build all MedRec components. For production (EARs). -->
51 <target name="deploy.prod" depends="init,clean"
52 description="Builds and stages all MedRec components as EARs.">
53 <ant inheritAll="false" dir="${root}/startBrowserEar"
54 antfile="build.xml" target="stage.prod"/>
55 <ant inheritAll="false" dir="${root}/initEar"
56 antfile="build.xml" target="stage.prod"/>
57 <ant inheritAll="false" dir="${root}/security"/>
58 <ant inheritAll="false" dir="${root}/common" target="stage.prod"/>
59 <ant inheritAll="false" dir="${root}/medrecEar" target="stage.prod"/>
60 <ant inheritAll="false" dir="${root}/physicianEar" target="stage.prod"/>
61 <echo message="#### E N D M E D R E C ####"/>
62 </target>
63 </project>
|