42 |
19 Jan 15 |
nicklas |
1 |
<project name="Trimmomatic" default="dist" basedir="."> |
46 |
19 Jan 15 |
nicklas |
2 |
<property name="version" value="0.32-1"/> |
42 |
19 Jan 15 |
nicklas |
3 |
|
42 |
19 Jan 15 |
nicklas |
4 |
<property name="src" location="src" /> |
42 |
19 Jan 15 |
nicklas |
5 |
<property name="lib" location="lib" /> |
42 |
19 Jan 15 |
nicklas |
6 |
|
42 |
19 Jan 15 |
nicklas |
7 |
<property name="adapters" location="adapters" /> |
42 |
19 Jan 15 |
nicklas |
8 |
|
42 |
19 Jan 15 |
nicklas |
9 |
<property name="distsrc" location="distSrc" /> |
42 |
19 Jan 15 |
nicklas |
10 |
|
42 |
19 Jan 15 |
nicklas |
11 |
<property name="dist" location="dist" /> |
42 |
19 Jan 15 |
nicklas |
12 |
<property name="dist_build" location="dist/build" /> |
42 |
19 Jan 15 |
nicklas |
13 |
<property name="dist_lib" location="dist/lib" /> |
42 |
19 Jan 15 |
nicklas |
14 |
<property name="dist_jar" location="dist/jar" /> |
42 |
19 Jan 15 |
nicklas |
15 |
<property name="dist_unpack" location="dist/unpack" /> |
42 |
19 Jan 15 |
nicklas |
16 |
|
42 |
19 Jan 15 |
nicklas |
17 |
<target name="init"> |
42 |
19 Jan 15 |
nicklas |
18 |
<mkdir dir="${dist}" /> |
42 |
19 Jan 15 |
nicklas |
19 |
<mkdir dir="${dist_build}" /> |
42 |
19 Jan 15 |
nicklas |
20 |
<mkdir dir="${dist_lib}"/> |
42 |
19 Jan 15 |
nicklas |
21 |
<mkdir dir="${dist_jar}" /> |
42 |
19 Jan 15 |
nicklas |
22 |
<mkdir dir="${dist_unpack}" /> |
42 |
19 Jan 15 |
nicklas |
23 |
</target> |
42 |
19 Jan 15 |
nicklas |
24 |
|
42 |
19 Jan 15 |
nicklas |
25 |
<target name="import" depends="init"> |
42 |
19 Jan 15 |
nicklas |
26 |
<copy todir="${dist_lib}"> |
42 |
19 Jan 15 |
nicklas |
27 |
<fileset dir="${lib}"> |
42 |
19 Jan 15 |
nicklas |
28 |
<include name="*.jar"/> |
42 |
19 Jan 15 |
nicklas |
29 |
</fileset> |
42 |
19 Jan 15 |
nicklas |
30 |
</copy> |
42 |
19 Jan 15 |
nicklas |
31 |
</target> |
42 |
19 Jan 15 |
nicklas |
32 |
|
42 |
19 Jan 15 |
nicklas |
33 |
<target name="compile" depends="import"> |
42 |
19 Jan 15 |
nicklas |
34 |
<javac srcdir="${src}" destdir="${dist_build}" debug="true" source="1.5" target="1.5" includeantruntime="false"> |
42 |
19 Jan 15 |
nicklas |
35 |
<classpath> |
42 |
19 Jan 15 |
nicklas |
36 |
<fileset dir="${dist_lib}"> |
42 |
19 Jan 15 |
nicklas |
37 |
<include name="*.jar" /> |
42 |
19 Jan 15 |
nicklas |
38 |
</fileset> |
42 |
19 Jan 15 |
nicklas |
39 |
</classpath> |
42 |
19 Jan 15 |
nicklas |
40 |
</javac> |
42 |
19 Jan 15 |
nicklas |
41 |
|
42 |
19 Jan 15 |
nicklas |
42 |
<copy todir="${dist_build}"> |
42 |
19 Jan 15 |
nicklas |
43 |
<fileset dir="${src}"> |
42 |
19 Jan 15 |
nicklas |
44 |
<exclude name="**/*.java"/> |
42 |
19 Jan 15 |
nicklas |
45 |
</fileset> |
42 |
19 Jan 15 |
nicklas |
46 |
</copy> |
42 |
19 Jan 15 |
nicklas |
47 |
</target> |
42 |
19 Jan 15 |
nicklas |
48 |
|
42 |
19 Jan 15 |
nicklas |
49 |
<target name="dist" depends="compile"> |
42 |
19 Jan 15 |
nicklas |
50 |
<unjar dest="${dist_unpack}"> |
42 |
19 Jan 15 |
nicklas |
51 |
<fileset dir="${dist_lib}"> |
42 |
19 Jan 15 |
nicklas |
52 |
<include name="**/*.jar"/> |
42 |
19 Jan 15 |
nicklas |
53 |
</fileset> |
42 |
19 Jan 15 |
nicklas |
54 |
</unjar> |
42 |
19 Jan 15 |
nicklas |
55 |
|
42 |
19 Jan 15 |
nicklas |
56 |
<delete dir="${dist_unpack}/META-INF"/> |
42 |
19 Jan 15 |
nicklas |
57 |
<delete dir="${dist_unpack}/demo"/> |
42 |
19 Jan 15 |
nicklas |
58 |
<move file="${dist_unpack}/AUTHORS" tofile="${dist_unpack}/AUTHORS.jbzip2"/> |
42 |
19 Jan 15 |
nicklas |
59 |
<move file="${dist_unpack}/LICENCE" tofile="${dist_unpack}/LICENCE.jbzip2"/> |
42 |
19 Jan 15 |
nicklas |
60 |
|
42 |
19 Jan 15 |
nicklas |
61 |
<copy todir="${dist_unpack}"> |
42 |
19 Jan 15 |
nicklas |
62 |
<fileset dir="${dist_build}"> |
42 |
19 Jan 15 |
nicklas |
63 |
</fileset> |
42 |
19 Jan 15 |
nicklas |
64 |
</copy> |
42 |
19 Jan 15 |
nicklas |
65 |
|
42 |
19 Jan 15 |
nicklas |
66 |
<jar jarfile="${dist_jar}/trimmomatic-${version}.jar" basedir="${dist_unpack}" manifest="MANIFEST.MF"/> |
42 |
19 Jan 15 |
nicklas |
67 |
|
42 |
19 Jan 15 |
nicklas |
68 |
<zip destfile="${dist}/Trimmomatic-${version}.zip"> |
42 |
19 Jan 15 |
nicklas |
69 |
<zipfileset prefix="Trimmomatic-${version}" dir="${distsrc}"/> |
42 |
19 Jan 15 |
nicklas |
70 |
<zipfileset prefix="Trimmomatic-${version}" dir="${dist_jar}" includes="trimmomatic-${version}.jar"/> |
42 |
19 Jan 15 |
nicklas |
71 |
<zipfileset prefix="Trimmomatic-${version}/adapters" dir="adapters" includes="*"/> |
42 |
19 Jan 15 |
nicklas |
72 |
</zip> |
42 |
19 Jan 15 |
nicklas |
73 |
|
42 |
19 Jan 15 |
nicklas |
74 |
<zip destfile="${dist}/Trimmomatic-Src-${version}.zip"> |
42 |
19 Jan 15 |
nicklas |
75 |
<zipfileset dir="." includes="src/**/*,adapters/**/*,distSrc/**/*,lib/**/*,build.xml,versionHistory.txt,MANIFEST.MF" prefix="trimmomatic-${version}/"/> |
42 |
19 Jan 15 |
nicklas |
76 |
</zip> |
42 |
19 Jan 15 |
nicklas |
77 |
|
42 |
19 Jan 15 |
nicklas |
78 |
</target> |
42 |
19 Jan 15 |
nicklas |
79 |
|
42 |
19 Jan 15 |
nicklas |
80 |
<target name="clean"> |
42 |
19 Jan 15 |
nicklas |
81 |
<delete dir="${dist}" /> |
42 |
19 Jan 15 |
nicklas |
82 |
</target> |
42 |
19 Jan 15 |
nicklas |
83 |
|
42 |
19 Jan 15 |
nicklas |
84 |
</project> |