-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·158 lines (127 loc) · 5.65 KB
/
Copy pathbuild.xml
File metadata and controls
executable file
·158 lines (127 loc) · 5.65 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!--
Standard Build file for java applications
Created from: Edoardo Pigotti (March 2004)
Modify all the properties from build.properties
-->
<project name="Your project name here" default="run" basedir=".">
<!-- ===================++ Global properties ======================== -->
<property name="version" value="8.3"/>
<property file="build.properties" />
<property name="src" value="src"/>
<property name="build" value="build"/>
<property name="lib" value="dist"/>
<property name="classpath" value="classes"/>
<property name="jarname" value="${jarname}"/>
<property name="docs" value="docs"/>
<property name="include" value="lib"/>
<property name="runclass" value="${runclass}"/>
<!-- ============================================================== -->
<!-- ===================Compiler properties ======================== -->
<property name="compile.debug" value="true" />
<property name="compile.deprecation" value="false" />
<property name="compile.optimize" value="true" />
<!-- ============================================================== -->
<!-- =================== CLASSPATH DEFINITION ======================== -->
<path id="compile.classpath">
<pathelement location="${include}"/>
<fileset dir="${include}">
<include name="**/*.jar"/>
</fileset>
<pathelement location="/Users/policygrid/java/apache-tomcat-5.5.17/common/lib"/>
<fileset dir="/home/policygrid/apache-tomcat-6.0.18/lib">
<include name="**/*.jar"/>
</fileset>
</path>
<path id="run.classpath">
<pathelement location="${lib}"/>
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
<!-- add here any other jar dependency -->
</path>
<!-- ============================================================== -->
<!-- =================== Uodate the svn ======================== -->
<target name="svn">
<exec executable="/usr/bin/svn" >
<arg line="update"/>
<!-- <arg line="svn://filer2.csd.abdn.ac.uk/OurSpaces/trunk"/> -->
<arg line="svn://dtp-123.sncs.abdn.ac.uk/policygrid/OurSpaces/trunk"/>
<arg line="/home/policygrid/svnOurSpaces/"/>
</exec>
</target>
<!-- ============================================================== -->
<!-- =================== Initialize Build ======================== -->
<target name="init">
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}" />
<!-- Create the directory for the jar file -->
<mkdir dir="${lib}" />
<!-- Create the directory for the java docs -->
<mkdir dir="${docs}" />
</target>
<!-- ============================================================== -->
<!-- =================== Compile Source Files ======================== -->
<target name="compile" depends="init">
<!-- run javac to compile the source files -->
<javac srcdir="${src}" destdir="${build}" debug="${compile.debug}"
deprecation="${compile.deprecation}" optimize="${compile.optimize}">
<classpath refid="compile.classpath" />
</javac>
</target>
<!-- ============================================================== -->
<!-- =================== Create jar Files ======================== -->
<target name="jar" depends="compile">
<!-- make a jar file -->
<jar jarfile="${lib}/${jarname}" basedir="${build}/"/>
</target>
<!-- ============================================================== -->
<!-- =================== Ourspaces deploy ======================== -->
<target name="deploy" depends="jar">
<copy todir="/home/policygrid/apache-tomcat-6.0.18/webapps/ourspaces/">
<fileset dir="web"/>
</copy>
<copy file="${lib}/${jarname}" todir="/home/policygrid/apache-tomcat-6.0.18/webapps/ourspaces/WEB-INF/lib"/>
<copy todir="/home/policygrid/apache-tomcat-6.0.18/webapps/ourspaces/WEB-INF/lib">
<fileset dir="${include}"/>
</copy>
</target>
<target name="bootstrap" depends="deploy">
<java dir="${tomcat.home}/bin"
jar="${tomcat.home}/bin/bootstrap.jar" fork="true">
<jvmarg value="-Dcatalina.home=${tomcat.home}"/>
<jvmarg value="-XX:PermSize=128M"/>
<jvmarg value="-XX:MaxPermSize=196M"/>
</java>
</target>
<!-- ============================================================== -->
<!-- =================== Create javadoc files ======================== -->
<target name="docs" depends="compile">
<!-- create javadocs -->
<javadoc packagenames="${javadoc.packages}"
sourcepath="${build}"
defaultexcludes="yes"
destdir="${docs}"
author="true"
version="true"
use="true"
windowtitle="${javadoc.title} Version. ${version}">
</javadoc>
</target>
<!-- ============================================================== -->
<!-- =================== Run Application ======================== -->
<target name="run" depends="compile,jar">
<!-- run the class -->
<java classname="${runclass}" fork="true">
<!-- add a command line arg: <arg value="-h"/> -->
<jvmarg value="-DfearlusOptionsFile=${fearlusOptionsFile}"/>
<classpath refid="compile.classpath" />
<classpath refid="run.classpath" />
</java>
</target>
<target name="clean">
<!-- Delete the ${build} and ${lib} directory trees -->
<delete dir="${build}"/>
<delete dir="${lib}"/>
<delete dir="${docs}"/>
</target>
</project>