forked from claudiughioc/Flight-booking
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·86 lines (73 loc) · 3.03 KB
/
build.xml
File metadata and controls
executable file
·86 lines (73 loc) · 3.03 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<project name="4temaSPRC" default="compile" basedir=".">
<property name="build.dir" value="build"/>
<property name="src.dir" value="src"/>
<property name="axis.dir" value="/home/claudiu/Desktop/sem1/sprc/5lab.web/axis-1_4/"/>
<property name="catalina.dir" value="/home/claudiu/Desktop/sem1/sprc/5lab.web/apache-tomcat-6.0.36/"/>
<property name="deploy.dir" value="${catalina.dir}/webapps/axis/WEB-INF/classes/"/>
<path id="master-classpath">
<!-- Include all elements that Tomcat exposes to applications -->
<pathelement location="${catalina.dir}/common/classes"/>
<pathelement location="${catalina.dir}/classes"/>
<fileset dir="${catalina.dir}/lib">
<include name="*.jar"/>
</fileset>
<!-- Include all elements from Axis -->
<pathelement location="${axis.dir}/common/classes"/>
<pathelement location="${axis.dir}/classes"/>
<fileset dir="${axis.dir}/lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="clean"
description="Delete old build and dist directories">
<delete dir="${build.dir}"/>
</target>
<target name="build" description="Compile the project's source files"
depends="clean">
<mkdir dir="${build.dir}"/>
<javac destdir="${build.dir}" debug="true"
deprecation="false" failonerror="true">
<src path="${src.dir}"/>
<classpath refid="master-classpath"/>
</javac>
</target>
<target name="deploy" description="Deploy the project to Tomcat"
depends="build">
<mkdir dir="${deploy.dir}"/>
<copy todir="${deploy.dir}">
<fileset dir="${build.dir}"/>
</copy>
<java
classname="org.apache.axis.client.AdminClient"
dir="."
fork="true"
failonerror="true">
<classpath>
<pathelement path="${build.dir}"/>
<path refid="master-classpath"/>
</classpath>
<arg line="-lhttp://localhost:8080/axis/services/AdminService resources/deploy.wsdd"/>
</java>
</target>
<target name="admin" description="Run the admin application"
depends="build">
<java classname="airService.admin.Admin" fork="true">
<classpath>
<pathelement path="build/" />
<pathelement path="resources/" />
<path refid="master-classpath"/>
</classpath>
</java>
</target>
<target name="client" description="Run the client application"
depends="build">
<java classname="airService.client.Client" fork="true">
<classpath>
<pathelement path="build/" />
<pathelement path="resources/" />
<path refid="master-classpath"/>
</classpath>
<arg value="http://localhost:8080/axis/services/AirService?wsdl"/>
</java>
</target>
</project>