Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

root/openmrs-modules/chwdashboard/build.xml

Revision 1933, 3.2 kB (checked in by callen, 1 year ago)

Initial import.

Description of module:

CommunityHealthWorkerDashboard Module – a module that generates a dashboard for your community health workers (not just patients anymore). For each CHW, it shows the patients they are in charge of, and you can add or subtract from the list. It also has a tab for when community health workers interact with the system (read: come to a clinic to pickup meds and/or report on patients). There, you can fill out patient-level data and/or make observations about the CHW. NOTE: this interface could also work for any kind of provider, not just a CHW.

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