-
Notifications
You must be signed in to change notification settings - Fork 4
/
callpeak.build.xml
97 lines (80 loc) · 3.18 KB
/
callpeak.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
<project name="CallPeak" default="build">
<property name="src.dir" value="${basedir}/src/" />
<property name="lib.dir" value="${basedir}/lib/" />
<property name="dist.dir" value="${basedir}/dist/" />
<!--<property name="dist.dir" value="/Volumes/seq_mgarber/" />-->
<property name="build.dir" value="${basedir}/build/"/>
<property name="jar.path" value="${dist.dir}${jar.name}" />
<property name="dist.lib.dir" value="${dist.dir}lib/" />
<!-- build specific properties. These are normally set by Hudson during the build process -->
<property name="version" value="v0.01" />
<!-- All jar files in lib file -->
<path id="master-classpath">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<target name="init" >
<mkdir dir="${build.dir}"/>
<mkdir dir="${dist.dir}"/>
<tstamp>
<format property="timestamp" pattern="MM/dd/yyyy hh:mm aa" />
</tstamp>
<echo message="Resource ${resource.dir}"/>
<echo message="Version ${version}"/>
</target>
<target name="unpack" depends="init">
<!-- Unzip jars to the tmp directory -->
<unzip dest="${build.dir}">
<patternset>
<include name="**/*"/>
<exclude name="META-INF/**"/>
</patternset>
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
</unzip>
</target>
<target name="compile" depends="init">
<javac srcdir="${src.dir}" debug="on" destdir="${build.dir}">
<classpath refid="master-classpath"/>
<!--<pathelement path="${build.dir}"/>
</classpath>-->
</javac>
</target>
<target name="build" depends="unpack,compile">
<jar destfile="${dist.dir}/jar/CallPeakDiff.jar" basedir="${build.dir}" compress="true">
<manifest>
<attribute name="Implementation-Version" value="0.02" />
<attribute name="Built-By" value="${user.name}" />
<attribute name="Main-Class" value="xp.core.command.CallPeakDiff"/>
</manifest>
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</jar>
<jar destfile="${dist.dir}/jar/CallPeak8.jar" basedir="${build.dir}">
<zipgroupfileset dir="lib" includes="*.jar"/>
<manifest>
<attribute name="Implementation-Version" value="0.02" />
<attribute name="Main-Class" value="xp.core.command.CallPeak8"/>
</manifest>
</jar>
</target>
<!--
<target name="build" depends="compile,unpack">
<mkdir dir="${dist.dir}/jar"/>
<jar destfile="${dist.dir}/jar/CallPeak8.jar" basedir="build">
<zipgroupfileset dir="lib" includes="*.jar"/>
<manifest>
<attribute name="Implementation-Version" value="0.02" />
<attribute name="Main-Class" value="xp.test.command.CallPeak8"/>
</manifest>
</jar>
</target>
-->
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${dist.dir}" />
</target>
</project>