-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
70 lines (61 loc) · 2.72 KB
/
build.xml
File metadata and controls
70 lines (61 loc) · 2.72 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="jar" name="HCALlogSender">
<property environment="env"/>
<property file="../../tomcat/webapps/rcms/WEB-INF/conf/RCMS.properties"/>
<property name="rcms.webapp" value="${rcms.framework}/rcms"/>
<property name="rcms.classes" value="${rcms.webapp}/WEB-INF/classes"/>
<property name="rcms.libs" value="${rcms.webapp}/WEB-INF/lib"/>
<property name="rcms.src" value="${rcms.webapp}/WEB-INF/src"/>
<property name="HCALlogSender.classes" value="classes"/>
<!-- TODO:
once the HCALFM refactorXML branch gets merged in and deployed on the build machine
we can use the "official" HCALFM.jar that lives in ~daqowner/tomcat/webapps/ROOT/functionmanagers like so:
-->
<!--
<property name="levelOneHCALFM.location" value="../../tomcat/webapps/ROOT/functionmanagers"/>
-->
<property name="outJarDir" value="./jars"/>
<property name="HCALlogSender.jar" value="${outJarDir}/HCALlogSender.jar"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<path id="rcms.classpath">
<fileset dir="${rcms.libs}">
<include name="*.jar"/>
</fileset>
<pathelement location="${rcms.classes}"/>
</path>
<path id="HCALlogSender.classpath">
<pathelement location="${outJarDir}"/>
<path refid="rcms.classpath"/>
</path>
<target name="init">
<mkdir dir="${HCALlogSender.classes}"/>
<copy includeemptydirs="false" todir="${HCALlogSender.classes}">
<fileset dir="src">
<exclude name="**/*.java"/>
</fileset>
</copy>
<mkdir dir="${outJarDir}"/>
</target>
<target depends="init" name="compile">
<echo message="compiling ${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="classes" includeantruntime="false" source="${source}" target="${target}">
<src path="src"/>
<classpath refid="HCALlogSender.classpath"/>
</javac>
</target>
<target name="jar" depends="init, compile">
<echo message="making jar for ${ant.project.name}"/>
<jar file="${HCALlogSender.jar}">
<fileset dir="${HCALlogSender.classes}"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/util/logger/RCMSLogger.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/util/logger/NDCInfo.class"/>
<zipgroupfileset dir="../RunControl/framework/rcms/WEB-INF/lib/" includes="log4j-1.2.11.jar"/>
<manifest>
<attribute name="Main-Class" value="HCALlogSender.HCALlogSender"/>
<attribute name="Class-Path" value="HCALlogSender"/>
</manifest>
</jar>
</target>
</project>