-
Notifications
You must be signed in to change notification settings - Fork 73
/
build.xml
86 lines (68 loc) · 2.63 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
<project name="Trimmomatic" default="dist" basedir=".">
<property name="version" value="0.40-rc1"/>
<property name="src" location="src" />
<property name="lib" location="lib" />
<property name="adapters" location="adapters" />
<property name="distsrc" location="distSrc" />
<property name="dist" location="dist" />
<property name="dist_build" location="dist/build" />
<property name="dist_lib" location="dist/lib" />
<property name="dist_jar" location="dist/jar" />
<property name="dist_unpack" location="dist/unpack" />
<target name="init">
<mkdir dir="${dist}" />
<mkdir dir="${dist_build}" />
<mkdir dir="${dist_lib}"/>
<mkdir dir="${dist_jar}" />
<mkdir dir="${dist_unpack}" />
</target>
<target name="import" depends="init">
<copy todir="${dist_lib}">
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
</copy>
</target>
<target name="compile" depends="import">
<javac srcdir="${src}" destdir="${dist_build}" debug="true" source="1.5" target="1.5" includeantruntime="false">
<classpath>
<fileset dir="${dist_lib}">
<include name="*.jar" />
</fileset>
</classpath>
</javac>
<copy todir="${dist_build}">
<fileset dir="${src}">
<exclude name="**/*.java"/>
</fileset>
</copy>
<echo file="${dist_build}/version.properties" append="false">version=${version}${line.separator}</echo>
</target>
<target name="dist" depends="compile">
<unjar dest="${dist_unpack}">
<fileset dir="${dist_lib}">
<include name="**/*.jar"/>
</fileset>
</unjar>
<delete dir="${dist_unpack}/META-INF"/>
<delete dir="${dist_unpack}/demo"/>
<move file="${dist_unpack}/AUTHORS" tofile="${dist_unpack}/AUTHORS.jbzip2"/>
<move file="${dist_unpack}/LICENCE" tofile="${dist_unpack}/LICENCE.jbzip2"/>
<copy todir="${dist_unpack}">
<fileset dir="${dist_build}">
</fileset>
</copy>
<jar jarfile="${dist_jar}/trimmomatic-${version}.jar" basedir="${dist_unpack}" manifest="MANIFEST.MF"/>
<zip destfile="${dist}/Trimmomatic-${version}.zip">
<zipfileset prefix="Trimmomatic-${version}" dir="${distsrc}"/>
<zipfileset prefix="Trimmomatic-${version}" dir="${dist_jar}" includes="trimmomatic-${version}.jar"/>
<zipfileset prefix="Trimmomatic-${version}/adapters" dir="adapters" includes="*"/>
</zip>
<zip destfile="${dist}/Trimmomatic-Src-${version}.zip">
<zipfileset dir="." includes="src/**/*,adapters/**/*,distSrc/**/*,lib/**/*,build.xml,versionHistory.txt,MANIFEST.MF" prefix="trimmomatic-${version}/"/>
</zip>
</target>
<target name="clean">
<delete dir="${dist}" />
</target>
</project>