1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <!-- |
---|
3 | $Id$ |
---|
4 | |
---|
5 | Copyright (C) 2005, 2006 Johan Enell |
---|
6 | Copyright (C) 2008 Jari Hakkinen |
---|
7 | |
---|
8 | This file is part of the se.lu.onk.BaseFile package, a utility |
---|
9 | package for reading files generated by BASE. The package is |
---|
10 | available at http://baseplugins.thep.lu.se/ and BASE web site is |
---|
11 | http://base.thep.lu.se |
---|
12 | |
---|
13 | This is free software; you can redistribute it and/or modify it |
---|
14 | under the terms of the GNU General Public License as published by |
---|
15 | the Free Software Foundation; either version 3 of the License, or |
---|
16 | (at your option) any later version. |
---|
17 | |
---|
18 | The software is distributed in the hope that it will be useful, |
---|
19 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
21 | General Public License for more details. |
---|
22 | |
---|
23 | You should have received a copy of the GNU General Public License |
---|
24 | along with BASE. If not, see <http://www.gnu.org/licenses/>. |
---|
25 | --> |
---|
26 | <project name="se.lu.onk.BaseFile package for BASE" |
---|
27 | default="dist" basedir="."> |
---|
28 | <description> |
---|
29 | This build file is used for se.lu.onk.BaseFile package for BASE |
---|
30 | created at the Department of Oncology, Lund University, Sweden. |
---|
31 | </description> |
---|
32 | |
---|
33 | <!-- properties --> |
---|
34 | |
---|
35 | <!-- set BaseFile package version |
---|
36 | Two numbers are used. 1.0 is the first release, the second |
---|
37 | number is increased for each new release that does not changed |
---|
38 | the API. The first number is changed for API changing |
---|
39 | releases. Add "pre" to unreleased versions. Examples: |
---|
40 | 1.0, 1.1, 1.2pre |
---|
41 | --> |
---|
42 | <property name="version" value="1.0pre" /> |
---|
43 | |
---|
44 | <property name="build" location="build" /> |
---|
45 | <property name="dist" location="dist" /> |
---|
46 | <property name="package" location="basefile" /> |
---|
47 | <property name="packagestring" value="BaseFile-${version}" /> |
---|
48 | <property name="src" location="src" /> |
---|
49 | |
---|
50 | |
---|
51 | <!-- ================================= |
---|
52 | target: compile |
---|
53 | ================================== --> |
---|
54 | <target name="compile"> |
---|
55 | <mkdir dir="${build}"/> |
---|
56 | <javac |
---|
57 | srcdir="${src}" |
---|
58 | destdir="${build}" |
---|
59 | debug="true" |
---|
60 | deprecation="true" |
---|
61 | encoding="ISO-8859-1" |
---|
62 | /> |
---|
63 | </target> |
---|
64 | |
---|
65 | <!-- ================================= |
---|
66 | target: clean |
---|
67 | ================================= --> |
---|
68 | <target name="clean" description="--> Remove all generated files"> |
---|
69 | <delete dir="${bin}" /> |
---|
70 | <delete dir="${dist}" /> |
---|
71 | <delete dir="${package}" /> |
---|
72 | <delete file="${packagestring}.zip" /> |
---|
73 | </target> |
---|
74 | |
---|
75 | |
---|
76 | <!-- ================================= |
---|
77 | target: dist |
---|
78 | ================================== --> |
---|
79 | <target name="dist" depends="compile"> |
---|
80 | <mkdir dir="${dist}" /> |
---|
81 | <jar destfile="${dist}/BaseFile.jar"> |
---|
82 | <fileset dir="${build}" /> |
---|
83 | <manifest> |
---|
84 | <attribute name="Built-By" value="${user.name}" /> |
---|
85 | </manifest> |
---|
86 | </jar> |
---|
87 | </target> |
---|
88 | |
---|
89 | <!-- ================================= |
---|
90 | target: package |
---|
91 | ================================= --> |
---|
92 | <target name="package" depends="dist" |
---|
93 | description="--> Create a zip file for distribution."> |
---|
94 | <mkdir dir="${package}"/> |
---|
95 | <mkdir dir="${package}/${packagestring}"/> |
---|
96 | <copy todir="${package}/${packagestring}"> |
---|
97 | <fileset file="${dist}/BaseFile.jar" /> |
---|
98 | <fileset file="README" /> |
---|
99 | <fileset file="license.txt" /> |
---|
100 | </copy> |
---|
101 | <zip destfile="${packagestring}.zip" basedir="${package}" /> |
---|
102 | </target> |
---|
103 | |
---|
104 | </project> |
---|