File: build.xml

package info (click to toggle)
giira 0.0.20140210-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 744 kB
  • ctags: 480
  • sloc: java: 8,165; python: 258; xml: 44; sh: 26; makefile: 13
file content (53 lines) | stat: -rw-r--r-- 1,836 bytes parent folder | download | duplicates (3)
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
<?xml  version="1.0" ?>
<project name="GIIRA" default="jar" basedir=".">
	<!-- Directory structure -->
	<property name="build.dir" location="build"/>
	<property name="dist.dir" location="dist"/>
	<property name="src.dir" location="src"/>
	<property name="lib.dir" location="/usr/share/java"/>
	<property name="class.dir" location="${build.dir}/classes"/>
	
	<property name="project.name" value="giira"/>
	<property name="debug" value="true"/>
	<property name="optimized" value="true"/>
	<property name="project.version" value="DEBVERSION"/>
	<property environment="env"/>
	<property name="project.jarfile.name" value="giira.jar"/>	
	
	<property name="class.path" value="${lib.dir}/glpk-java.jar"/>
	<path id="compile.classpath">
		<fileset dir="${lib.dir}">
			<include name="glpk-java.jar.jar"/>
		</fileset>
	</path>
	
	
	<target name="clean">
		<echo level="info">Cleaning build directories</echo>
		<delete verbose="true" includeEmptyDirs="true">
			<fileset dir="${build.dir}" includes="**"/>
			<fileset dir="${dist.dir}" includes="${project.name}*.jar"/>
		</delete>
	</target>
	
	<target name="compile">
		<mkdir dir="${class.dir}"/>
		<mkdir dir="${dist.dir}"/>
		<javac srcdir="${src.dir}" destdir="${class.dir}" classpathref="compile.classpath" debug="${debug}" optimize="${optimized}" nowarn="true" source="1.6" target="1.6">
		</javac>
	</target>

	<target name="jar" depends="compile">
		<jar destfile="${dist.dir}/${project.jarfile.name}"  basedir="${class.dir}" >
		<manifest>
		<attribute name="Built-By" value="Debian-Med team"/>
		<attribute name="Main-Class" value="geneFinder.Giira"/>
		<attribute name="Class-Path" value="${class.path}"/>
		<attribute name="Specification-Title" value="GIIRA"/>
		<attribute name="Specification-Version" value="${project.version}"/>
		</manifest>
		</jar>
	</target>
	
</project>