-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·136 lines (112 loc) · 5.47 KB
/
build.xml
File metadata and controls
executable file
·136 lines (112 loc) · 5.47 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
<project name="Comp" default="usage" basedir=".">
<property name="felix" location="${basedir}/felix"/>
<property name="modules" location="${basedir}/modules"/>
<property name="load" location="${basedir}/felix/load"/>
<property name="loan" location="${basedir}/loan/bin"/>
<property name="scala" location="${basedir}/loan/scala"/>
<property name="web" location="${basedir}/web"/>
<property name="stats" location="${basedir}/stats"/>
<property name="version" value="1.0"/>
<target name="usage">
<echo message="Script to build platform."/>
<echo message="************ Use the following deployment targets ***************"/>
<echo message="deploy.fileinstall --> sets up the auto-deploy feature. Must run before any other targets."/>
<echo message="deploy.spring --> deploys spring."/>
<echo message="deploy.loan --> deploys loan."/>
<echo message="deploy.loan-client --> deploys dummy loan client."/>
<echo message="deploy.scala --> deploys scala."/>
<echo message="deploy.scala-calc --> deploys scala calculator."/>
<echo message="deploy.web --> deploys web app (access using http://localhost:8080/html/loan.html."/>
<echo message="deploy.web-env --> deploys full web environment, except for web application."/>
<echo message=""/>
<echo message="************ Use the following un-deployment targets ***************"/>
<echo message="undeploy.web --> Undeploys web app."/>
<echo message="undeploy.loan-client --> Undeploys dummy loan client."/>
<echo message=""/>
<echo message="************ Use the following restore targets ***************"/>
<echo message="felix.restore --> Restores to clean Felix install."/>
</target>
<target name="clean" description="clean up">
<delete dir="${stats}"/>
</target>
<target name="init" depends="clean">
<mkdir dir="${stats}"/>
</target>
<target name="deploy.fileinstall">
<mkdir dir="${load}"/>
<echo message="Load directory created."/>
</target>
<target name="deploy.jetty">
<copy file="${modules}/felixhttpjetty.jar" todir="${load}"/>
</target>
<target name="deploy.spring">
<copy file="${modules}/com.springsource.org.aopalliance-1.0.0.jar" todir="${load}"/>
<copy file="${modules}/com.springsource.slf4j.api-1.5.0.jar" todir="${load}"/>
<copy file="${modules}/com.springsource.slf4j.log4j-1.5.0.jar" todir="${load}"/>
<copy file="${modules}/com.springsource.slf4j.org.apache.commons.logging-1.5.0.jar" todir="${load}"/>
<copy file="${modules}/log4j.osgi-1.2.15-SNAPSHOT.jar" todir="${load}"/>
<copy file="${modules}/org.springframework.aop-2.5.6.SEC01.jar" todir="${load}"/>
<copy file="${modules}/org.springframework.beans-2.5.6.SEC01.jar" todir="${load}"/>
<copy file="${modules}/org.springframework.context-2.5.6.SEC01.jar" todir="${load}"/>
<copy file="${modules}/org.springframework.core-2.5.6.SEC01.jar" todir="${load}"/>
<copy file="${modules}/spring-osgi-core-1.2.1.jar" todir="${load}"/>
<copy file="${modules}/spring-osgi-extender-1.2.1.jar" todir="${load}"/>
<copy file="${modules}/spring-osgi-io-1.2.1.jar" todir="${load}"/>
</target>
<target name="deploy.loan">
<copy file="${loan}/loan-intrfc-1.0.jar" todir="${load}"/>
<copy file="${loan}/loan-impl-1.0.jar" todir="${load}"/>
<copy file="${loan}/calc-impl-1.0.jar" todir="${load}"/>
<copy file="${loan}/loanfacade-1.0.jar" todir="${load}"/>
</target>
<target name="deploy.loan-client">
<copy file="${loan}/dclient-1.0.jar" todir="${load}"/>
</target>
<target name="deploy.scala">
<copy file="${scala}/lib/org.scala-ide.scala.library_2.8.0.final-p0002.jar" todir="${load}"/>
</target>
<target name="deploy.scala-calc">
<copy file="${scala}/bin/calc-impl-scala-1.0.jar" todir="${load}"/>
</target>
<target name="deploy.web">
<copy file="${web}/lib/gson-2.2.2.jar" todir="${load}"/>
<copy file="${web}/bin/web.jar" todir="${load}"/>
</target>
<target name="felix.restore">
<delete dir="${felix}/felix-cache"/>
<delete dir="${felix}/load"/>
</target>
<target name="deploy.web-env">
<antcall target="deploy.fileinstall"/>
<antcall target="deploy.spring"/>
<antcall target="deploy.loan"/>
<antcall target="deploy.jetty"/>
</target>
<target name="undeploy.web">
<delete file="${load}/web.jar"/>
</target>
<target name="undeploy.loan-client">
<delete file="${load}/dclient-1.0.jar"/>
</target>
<target name="analyzer">
<taskdef name="jaranalyzer" classname="com.kirkk.analyzer.textui.JarAnalyzerTask">
<classpath>
<pathelement path="${lib}/jaranalyzer-1.2.jar"/>
<pathelement path="${lib}/lib/bcel-5.2.jar"/>
<pathelement path="${lib}/lib/jakarta-regexp-1.3.jar"/>
<pathelement path="${lib}/lib"/>
</classpath>
</taskdef>
<jaranalyzer srcdir="${bindist}" destfile="${buildstats}/dependencies.xml"
summaryclass="com.kirkk.analyzer.textui.XMLUISummary" />
<style in="${buildstats}/dependencies.xml"
out="${buildstats}/dependencies.html"
style="${lib}/jaranalyzer.xsl">
</style>
<style in="${buildstats}/dependencies.xml"
out="${buildstats}/dependencies.grph"
style="${lib}/jaranalyzer2dot.xsl">
</style>
<exec executable="dot" ><arg line="-Tpng -Nshape=box -Nfontsize=30 -Nwidth=1.5 -Nheight=1.25 ./buildstats/dependencies.grph -o ./buildstats/dependencies.png"/></exec>
</target>
</project>