Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

root/openmrs-modules/clinicalsummary/trunk/build.xml

Revision 6513, 3.4 kB (checked in by bmckown, 4 days ago)

ClinicalSummaryModule: Added Encounter to ClinicalSummaryPrintQueueItem. Fixed error in logging that would not show patient identifier. Changed AMPATH logic to automatically generate summaries for locations 1 and 13.

Line 
1 <?xml version="1.0"?>
2 <!-- ***************************** -->
3 <!-- ** Clinical Summary Module ** -->
4 <!-- **                         ** -->
5 <!-- ** @author Ben Wolfe       ** -->
6 <!-- ** @version 1.0            ** -->
7 <!-- ***************************** -->
8 <project name="ClinicalSummaryModule" default="package-module">
9                
10         <!-- *********************************************************** -->
11         <!-- **                     TARGETS                           ** -->
12         <!-- *********************************************************** -->
13         <target name="init" description="initialization">
14                 <xmlcatalog id="common-dtds">
15                 <dtd
16                     publicId="-//OpenMRS//DTD OpenMRS Config 1.0//EN"
17                     location="lib-common/config-1.0.dtd"/>
18             </xmlcatalog>
19                 <xmlproperty file="metadata/config.xml" >
20                         <xmlcatalog refid="common-dtds"/>
21                 </xmlproperty>
22
23                 <filterset id="variables.to.replace">
24                         <filter token="MODULE_ID" value="${module.id}" />
25                         <filter token="MODULE_NAME" value="${module.name}" />
26                         <filter token="MODULE_VERSION" value="${module.version}" />
27                         <filter token="MODULE_PACKAGE" value="${module.package}" />
28                 </filterset>
29                
30                 <path id="classpath">
31                         <fileset dir="lib">
32                                 <include name="**/*.jar"/>
33                         </fileset>
34                         <fileset dir="lib-common">
35                             <include name="**/*.jar"/>
36                         </fileset>
37                 </path>
38
39         </target>
40
41         <target name="clean" description="Delete build and dist directories">
42                 <delete dir="dist" />
43                 <delete dir="build" />
44         </target>
45
46         <target name="compile-module" depends="init" description="Compiles the module">
47                 <mkdir dir="build" />
48                
49                 <!-- Copy other source data to the build folder -->
50                 <copy todir="build">
51                         <fileset dir="src/" excludes="**/*.java" />
52                 </copy>
53                
54                 <!--  Compile module java files -->
55                 <javac destdir="build" classpathref="classpath" debug="true" debuglevel="lines,source,vars">
56             <compilerarg line="-target 1.5" />
57                         <src path="src/" />
58                         <include name="**/*.java" />
59                 </javac>
60                
61                 <!--  Compile module web java files -->
62                 <javac destdir="build" classpathref="classpath" debug="true" debuglevel="lines,source,vars">
63                         <compilerarg line="-target 1.5 -g" />
64                         <src path="web/src/" />
65                         <include name="**/*.java" />
66                 </javac>
67                
68         </target>
69        
70         <target name="package-module" depends="compile-module" description="Packages module into jar file">
71                 <mkdir dir="dist" />
72                
73                 <!-- Copy module metadata -->
74                 <copy todir="build/">
75                         <fileset dir="metadata/" includes="**/*" />
76                         <filterset refid="variables.to.replace" />
77                 </copy>
78                
79                 <!-- Copy module web data -->
80                 <copy todir="build/web/module/">
81                         <fileset dir="web/module/" includes="**/*" />
82                         <filterset refid="variables.to.replace" />
83                 </copy>
84                
85                 <!-- Copy lib folder -->
86                 <!-- (lib should only contain this module's required -->
87                 <!-- libraries that OpenMRS doesn't contain already) -->
88                 <copy todir="build/lib" failonerror="false">
89                         <fileset dir="lib" includes="**/*" />
90                 </copy>
91                
92                 <!-- Create distributable jar file -->
93                 <jar destfile="dist/${module.id}-${module.version}.omod">
94                         <fileset dir="build" includes="**/*" />
95                 </jar>
96         </target>
97
98         <target name="deploy-web" depends="package-module">
99           <copy todir="C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/openmrs/WEB-INF/view/module/clinicalsummary">
100            <fileset dir="web/module" includes="**/*" />
101           </copy>
102         </target>
103        
104        
105 </project>
106
Note: See TracBrowser for help on using the browser.