-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
34 lines (33 loc) · 1.17 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<project name="x" default="deploy" basedir=".">
<!-- Points to where jasperserver is installed on tomcat or another webapp server.
Used to find JARs for compiling as well as deploying
-->
<property name="webAppDir" value="/home/bahmni/apache-tomcat-8.0.12/webapps/jasperserver/"/>
<target name="clean">
<delete dir="classes"/>
</target>
<target name="compile">
<mkdir dir="classes"/>
<javac srcdir="src" destdir="classes" debug="true">
<classpath>
<fileset dir="${webAppDir}/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="webapp/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="deploy" depends="compile">
<echo message="webapp src..."/>
<copy todir="${webAppDir}">
<fileset dir="webapp"/>
</copy>
<!-- copy classes dir -->
<echo message="classes..."/>
<copy todir="${webAppDir}/WEB-INF/classes">
<fileset dir="classes"/>
</copy>
</target>
</project>