-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
52 lines (47 loc) · 1.4 KB
/
build.xml
File metadata and controls
52 lines (47 loc) · 1.4 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<project name="ProKinOBrowserBuilder" default="war">
<property file="build.properties"/>
<!--
Tasks to be done
1. clean
2. init
3. compile
4. copy
5. war
6. deploy
-->
<path id="classpath">
<fileset dir="/home/kochut/classes">
<include name="servlet-api.jar"/>
<include name="freemarker.jar"/>
</fileset>
<fileset dir="/usr/local/jboss/server/default/deployers">
<include name="resteasy.deployer/*"/>
</fileset>
<fileset dir="WebContent/WEB-INF">
<include name="lib/*"/>
</fileset>
</path>
<target name="clean">
<echo>Cleaning the ${build.dir}</echo>
<delete>
<fileset dir="${build.dir}/WEB-INF/classes" includes="*.class"/>
</delete>
</target>
<target name="compile">
<echo>Compile the source files</echo>
<javac srcdir="${src.dir}" destdir="${build.dir}/WEB-INF/classes">
<classpath refid="classpath"/>
</javac>
</target>
<target name="war" depends="compile">
<echo>Building the war file</echo>
<war destfile="${root.dir}/${project.name}.war" webxml="${build.dir}/WEB-INF/web.xml">
<fileset dir="${build.dir}" excludes="*.svn, **/web.xml"/>
</war>
</target>
<target name="deploy" depends="war">
<echo>Deploying the war file</echo>
<copy overwrite="yes" file="${project.name}.war" todir="${deploy.dir}"/>
<chmod file="${deploy.dir}/${project.name}.war" perm="a+r"/>
</target>
</project>