-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
106 lines (97 loc) · 5.92 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
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="jar" name="hcalfmXMLvalidator">
<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="hcalfmXMLvalidator.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="levelOneHCALFM.location" value="/home/daqowner/tomcat/webapps/ROOT/functionmanagers"/>
<property name="outJarDir" value="./jars"/>
<property name="hcalfmXMLvalidator.jar" value="${outJarDir}/hcalfmXMLvalidator.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="levelOneHCALFM.classpath">
<fileset dir="${levelOneHCALFM.location}">
<!-- TODO: pending HCALFM refactorXML:
use "official" HCALFM.jar ~daqowner/tomcat/webapps/ROOT/functionmanagers:
-->
<!-- replace next line with
<include name="HCALFM.jar"/>
-->
<include name="HCALFM.jar"/>
</fileset>
<pathelement location="${rcms.classes}"/>
</path>
<path id="hcalfmXMLvalidator.classpath">
<pathelement location="${outJarDir}"/>
<path refid="rcms.classpath"/>
<path refid="levelOneHCALFM.classpath"/>
</path>
<target name="init">
<mkdir dir="${hcalfmXMLvalidator.classes}"/>
<copy includeemptydirs="false" todir="${hcalfmXMLvalidator.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="hcalfmXMLvalidator.classpath"/>
</javac>
</target>
<target name="jar" depends="init, compile">
<echo message="making jar for ${ant.project.name}"/>
<jar file="${hcalfmXMLvalidator.jar}">
<fileset dir="${hcalfmXMLvalidator.classes}"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/fw/user/UserActionException.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/fw/parameter/Parameter*.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/fw/parameter/FunctionManagerParameter*.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/fw/parameter/type/ParameterType.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/fw/parameter/type/*.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/fw/user/UserFunctionManager.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/fw/user/UserStateMachineDefinition.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/fw/user/UserActions.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/fw/user/UserEventHandler.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/fw/user/UserErrorHandler.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/fw/EventHandler.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/fw/EventPriority.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/fw/FunctionManagerException.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/util/error/SentinelNotifierCommunicationException.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/resource/qualifiedresource/*.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/fm/resource/*.class"/>
<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"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/resourceservice/db/resource/xdaq/*.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/resourceservice/db/resource/*"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/statemachine/StateChangedListener.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/statemachine/TransitionFailureListener.class"/>
<fileset dir="../RunControl/framework/rcms/WEB-INF/classes/" includes="rcms/util/logsession/LogSessionException.class"/>
<zipgroupfileset dir="../RunControl/framework/rcms/WEB-INF/lib/" includes="log4j-1.2.11.jar"/>
<fileset dir="../levelOneHCALFM/classes/" includes="rcms/fm/app/level1/*.class"/>
<manifest>
<attribute name="Main-Class" value="hcalfmXMLvalidator.xmlValidator"/>
<attribute name="Class-Path" value="hcalfmXMLvalidator"/>
</manifest>
</jar>
</target>
</project>