forked from fireduck64/jelectrum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
150 lines (133 loc) · 4.47 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
<project name="JelectrumServer" default="jar" basedir=".">
<property name="build.compiler" value="modern" />
<property name="src" value="./src" />
<property name="jar" value="./jar" />
<property name="build" value="./build" />
<property name="test" value="./test" />
<property name="build_test" value="./build_test" />
<property name="lib" value="./lib" />
<path id="test.classpath">
<pathelement location="${build}" />
<pathelement location="${build_test}" />
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</path>
<path id="build.classpath">
<pathelement location="${build}" />
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="test" depends="build_test">
<junit fork="yes" haltonfailure="yes">
<jvmarg value="-Xmx4g"/>
<formatter type="plain" usefile="false" />
<classpath refid="test.classpath" />
<batchtest>
<fileset dir="${test}">
<include name="**/*Test.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test_slop" depends="build_test">
<junit fork="yes" haltonfailure="yes">
<jvmarg value="-Xmx1024m"/>
<formatter type="plain" usefile="false" />
<classpath refid="test.classpath" />
<batchtest>
<fileset dir="${test}">
<include name="**/SlopbucketTest.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test_lobstack" depends="build_test">
<junit fork="yes" haltonfailure="yes">
<jvmarg value="-Xmx4g"/>
<formatter type="plain" usefile="false" />
<classpath refid="test.classpath" />
<batchtest>
<fileset dir="${test}">
<include name="**/LobstackTest.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test_db" depends="build_test">
<junit fork="yes" haltonfailure="yes">
<jvmarg value="-Xmx8g"/>
<formatter type="plain" usefile="false" />
<classpath refid="test.classpath" />
<batchtest>
<fileset dir="${test}">
<include name="**/DBTest.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test_bloom" depends="build_test">
<junit fork="yes" haltonfailure="yes">
<jvmarg value="-Xmx8g"/>
<formatter type="plain" usefile="false" />
<classpath refid="test.classpath" />
<batchtest>
<fileset dir="${test}">
<include name="**/LongMappedBufferTest.java"/>
<include name="**/BloomtimeTest.java"/>
<include name="**/LongBitSetTest.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test_zip" depends="build_test">
<junit fork="yes" haltonfailure="yes">
<jvmarg value="-Xmx1024m"/>
<formatter type="plain" usefile="false" />
<classpath refid="test.classpath" />
<batchtest>
<fileset dir="${test}">
<include name="**/ZipTest.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="build">
<mkdir dir="${build}"/>
<javac srcdir="${src}" destdir="${build}" source="1.7" debug="true" debuglevel="lines,vars,source">
<classpath refid="build.classpath" />
</javac>
</target>
<target name="build_test" depends="build">
<mkdir dir="${build_test}"/>
<javac srcdir="${test}" destdir="${build_test}" source="1.7" debug="true" debuglevel="lines,vars,source">
<classpath refid="test.classpath" />
</javac>
</target>
<target name="jar" depends="build">
<mkdir dir="${jar}"/>
<jar destfile="${jar}/Jelectrum.jar" basedir="build">
<zipgroupfileset dir="${lib}" includes="*.jar" excludes=""/>
<manifest>
<attribute name="Main-Class" value="jelectrum.Jelectrum"/>
</manifest>
</jar>
</target>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${build_test}"/>
<delete dir="${jar}"/>
<delete dir="javadoc"/>
</target>
<target name="javadoc">
<javadoc packagenames="jelectrum.*"
sourcepath="src"
destdir="javadoc">
<classpath refid="test.classpath" />
<link offline="true" href="http://fireduck.com/java/java-se-7/docs/api/" packagelistLoc="/share/www/fireduck.com/java/java-se-7/docs/api/package-list"/>
<link href="http://fireduck.com/java/java-se-7/docs/api/"/>
<link offline="true" href="http://fireduck.com/java/bitcoinj/docs/api/" packagelistLoc="/share/www/fireduck.com/java/bitcoinj/docs/api/package-list"/>
</javadoc>
</target>
</project>