-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
56 lines (48 loc) · 2.38 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="clean_build" name="block_signer">
<property name="dir.local.workspace" value="."/>
<property name="dir.build.main" value="${dir.local.workspace}/build/main"/>
<property name="dir.src.main" value="${dir.local.workspace}/src"/>
<property name="dir.global.lib" value="${dir.local.workspace}/lib"/>
<property name="dir.dist" value="${dir.local.workspace}/dist"/>
<property name="junit.heap" value="32m"/>
<property name="junit.threads" value="4"/>
<property name="version" value="1.2"/>
<target name="clean_build" depends="cleanmain">
<antcall target="buildmain">
<param name="compile.debug" value="${compile.debug}"/>
</antcall>
</target>
<target name="cleanmain">
<delete dir="${dir.build.main}"/>
<delete dir="${dir.dist}"/>
</target>
<target name="buildmain">
<echo message="Building ${ant.project.name}..."/>
<mkdir dir="${dir.build.main}"/>
<javac debug="true" debuglevel="source,lines,vars" includeantruntime="false"
srcdir="${dir.src.main}"
excludes="**/package-info.java"
destdir="${dir.build.main}" includes="**/*.java,module-info.java">
<classpath>
<pathelement location="${dir.global.lib}/commons-codec-1.11.jar"/>
<pathelement location="${dir.global.lib}/ed25519.jar"/>
<pathelement location="${dir.global.lib}/gson-2.8.5.jar"/>
<pathelement location="${dir.global.lib}/offline-signer.jar"/>
<pathelement location="${dir.global.lib}/modUtil.jar"/>
<pathelement location="${dir.global.lib}/org-aion-avm-userlib.jar"/>
<pathelement location="${dir.global.lib}/org-aion-avm-api.jar"/>
</classpath>
</javac>
<jar destfile="${dir.build.main}/${ant.project.name}-${version}.jar">
<fileset dir="${dir.build.main}"/>
<manifest>
<attribute name="Main-Class" value="org.aion.staker.BlockSigner"/>
</manifest>
<zipgroupfileset dir="${dir.global.lib}" includes="*.jar"/>
</jar>
<move includeemptydirs="false" todir="${dir.dist}">
<file file="${dir.build.main}/${ant.project.name}-${version}.jar"/>
</move>
</target>
</project>