-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.xml
202 lines (171 loc) · 6.9 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
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="java-feature-set">
<property environment="env" />
<property name="debuglevel" value="source,lines,vars" />
<property name="target" value="1.9" />
<property name="source" value="1.9" />
<path id="java-src.classpath">
<pathelement location="bin" />
<fileset dir="lib/">
<include name="**/*.jar" />
</fileset>
</path>
<target name="init" depends="cleanall">
<mkdir dir="bin" />
<copy includeemptydirs="false" todir="bin">
<fileset dir="src">
<exclude name="**/*.java" />
</fileset>
</copy>
</target>
<target name="clean">
<echo message="==========================================================" />
<echo message="CLEAN" />
<echo message="==========================================================" />
<delete dir="bin" />
</target>
<target depends="clean" name="cleanall" />
<target depends="build-project" name="build" />
<target depends="init" name="build-project">
<echo message="==========================================================" />
<echo message="Project[${ant.project.name}] Build file: ${ant.file}" />
<echo message="Using Java version ${ant.java.version}." />
<echo message="==========================================================" />
<echo message="==========================================================" />
<echo message="COMPILE" />
<echo message="==========================================================" />
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
<src path="src" />
<classpath refid="java-src.classpath" />
</javac>
<echo message="==========================================================" />
<echo message="CONFIG" />
<echo message="==========================================================" />
<copy file="src/main/resources/inbravo-version.txt" tofile="bin/inbravo-version.txt" overwrite="true" />
<copy file="src/main/resources/inbravo-log4j.properties" tofile="bin/inbravo-log4j.properties" overwrite="true" />
<echo message="==========================================================" />
<echo message="JAR" />
<echo message="==========================================================" />
<jar destfile="inbravo.jar" basedir="bin" />
</target>
<target name="test">
<java classname="com.inbravo.jdk8.InterfaceWithMainTest$MainClass" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="BinarySearch">
<java classname="com.inbravo.ds.search.BinarySearch" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="BinaryTree">
<java classname="com.inbravo.ds.tree.BinaryTree" failonerror="true" fork="yes">
<arg line="PASSIVE ARCHIVE" />
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="BubbleSort">
<java classname="com.inbravo.ds.sort.BubbleSort" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="Calculator">
<java classname="com.inbravo.ds.sort.Calculator" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="DoubleEndedLinkList">
<java classname="com.inbravo.ds.list.DoubleEndedLinkList" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="FileConv">
<java classname="com.inbravo.ds.file.FileConv" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="JDBCTest">
<java classname="com.inbravo.jdbc.JDBCTest" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="LinkedQueue">
<java classname="com.inbravo.ds.queue.LinkedQueue" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="LinkStack">
<java classname="com.inbravo.ds.stack.LinkStack" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="MailTest">
<java classname="com.inbravo.mail.MailTest" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="PowerServiceClient">
<java classname="com.inbravo.rmi.PowerServiceClient" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="PowerServiceImpl">
<java classname="com.inbravo.rmi.PowerServiceImpl" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="Queue">
<java classname="com.inbravo.ds.queue.Queue" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="ReverseTheWord">
<java classname="com.inbravo.ds.stack.ReverseTheWord" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="SelectionSort">
<java classname="com.inbravo.ds.sort.SelectionSort" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="Stack">
<java classname="com.inbravo.ds.stack.Stack" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="StringHashTest">
<java classname="com.inbravo.string.StringHashTest" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="StringTest">
<java classname="com.inbravo.string.StringTest" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="VolatileTest">
<java classname="com.inbravo.ds.concurrency.VolatileTest" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="ObjectSize" depends="build">
<java classname="com.inbravo.memory.Memory" failonerror="true" fork="yes">
<classpath refid="java-src.classpath" />
</java>
</target>
<target name="deploy" depends="build">
<scp file="inbravo.jar" password="impetus" todir="root@192.168.148.76:/root/amit/spark/" trust="true" />
</target>
<target name="inst-jar" depends="build-project">
<echo message="==========================================================" />
<echo message="INSTRUMENTATION JAR" />
<echo message="==========================================================" />
<jar destfile="inbravo-inst.jar" basedir="bin">
<manifest>
<attribute name="Premain-class" value="com.inbravo.memory.inst.InstrumentationAgent" />
<attribute name="Agent-class" value="com.inbravo.memory.inst.InstrumentationAgent" />
</manifest>
</jar>
</target>
</project>