source: plugins/base1/se.lu.onk.BaseFile/trunk/build.xml

Last change on this file was 799, checked in by Jari Häkkinen, 14 years ago

Setting pre tag to trunk version of BaseFile?.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3    $Id: build.xml 799 2008-10-01 14:09:09Z jari $
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.1pre" />
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="${build}" />
70    <delete dir="${dist}" />
71    <delete dir="${package}" />
72    <delete file="${packagestring}.tgz" />
73    <delete file="${packagestring}.tgz.MD5" />
74  </target>
75
76 
77  <!-- =================================
78      target: dist
79    ================================== -->
80  <target name="dist" depends="compile">
81    <mkdir dir="${dist}" />
82    <jar destfile="${dist}/BaseFile.jar">
83      <fileset dir="${build}" />
84        <manifest>
85          <attribute name="Built-By" value="${user.name}" />
86        </manifest>
87    </jar>
88  </target>
89 
90  <!-- =================================
91      target: package
92     ================================= -->
93  <target name="package" depends="dist"
94          description="--> Create a tgz file for distribution.">
95    <mkdir dir="${package}"/>
96    <copy todir="${package}">
97      <fileset file="${dist}/BaseFile.jar" />
98      <fileset file="README" />
99      <fileset file="license.txt" />
100    </copy>
101    <tar
102      destfile="${packagestring}.tgz"
103      longfile="gnu"
104      compression="gzip"
105      >
106      <tarfileset
107        dir="${package}"
108        prefix="${packagestring}"
109        preserveLeadingSlashes="true"
110        >
111      </tarfileset>
112    </tar>
113    <checksum file="${packagestring}.tgz" />
114  </target>
115 
116</project>
Note: See TracBrowser for help on using the repository browser.