File: build.xml

package info (click to toggle)
trimmomatic 0.32+dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 400 kB
  • ctags: 388
  • sloc: java: 3,182; xml: 67; sh: 15; makefile: 15
file content (84 lines) | stat: -rw-r--r-- 2,586 bytes parent folder | download
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
<project name="Trimmomatic" default="dist" basedir=".">
	<property name="version" value="0.32"/>
	
	<property name="src" location="src" />
	<property name="lib" location="/usr/share/java" />

	<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="jbzip2.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>
	</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.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>