plugins/base1/se.lu.onk.MergeBioAssay/trunk/build.xml

Code
Comments
Other
Rev Date Author Line
11 11 Oct 05 enell 1 <?xml version="1.0" encoding="UTF-8"?>
758 15 Sep 08 jari 2 <!--
788 18 Sep 08 jari 3     $Id$
11 11 Oct 05 enell 4
788 18 Sep 08 jari 5     Copyright (C) 2005, 2006 Johan Enell
788 18 Sep 08 jari 6     Copyright (C) 2008 Jari Häkkinen
65 07 Feb 06 enell 7
788 18 Sep 08 jari 8     This file is part of the se.lu.onk.MergeBioAssay plug-in for
758 15 Sep 08 jari 9     BASE. Available at http://baseplugins.thep.lu.se/ and BASE web
758 15 Sep 08 jari 10     site is http://base.thep.lu.se
11 11 Oct 05 enell 11
788 18 Sep 08 jari 12     This is free software; you can redistribute it and/or modify it
788 18 Sep 08 jari 13     under the terms of the GNU General Public License as published by
788 18 Sep 08 jari 14     the Free Software Foundation; either version 3 of the License, or
788 18 Sep 08 jari 15     (at your option) any later version.
180 27 Sep 06 enell 16
788 18 Sep 08 jari 17     The software is distributed in the hope that it will be useful,
788 18 Sep 08 jari 18     but WITHOUT ANY WARRANTY; without even the implied warranty of
788 18 Sep 08 jari 19     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
788 18 Sep 08 jari 20     General Public License for more details.
65 07 Feb 06 enell 21
788 18 Sep 08 jari 22     You should have received a copy of the GNU General Public License
788 18 Sep 08 jari 23     along with BASE. If not, see <http://www.gnu.org/licenses/>.
758 15 Sep 08 jari 24 -->
776 18 Sep 08 jari 25 <project name="se.lu.onk.MergeBioAssay plug-in for BASE"
758 15 Sep 08 jari 26          default="dist" basedir=".">
758 15 Sep 08 jari 27   <description>
776 18 Sep 08 jari 28     This build file is used for se.lu.onk.MergeBioAssay plug-in for
758 15 Sep 08 jari 29     BASE created at the Department of Oncology, Lund University,
758 15 Sep 08 jari 30     Sweden.
758 15 Sep 08 jari 31   </description>
65 07 Feb 06 enell 32
758 15 Sep 08 jari 33   <!-- properties -->
764 16 Sep 08 jari 34
764 16 Sep 08 jari 35   <!-- set version
764 16 Sep 08 jari 36        Two numbers are used. 1.0 is the first release, the second
764 16 Sep 08 jari 37        number is increased for each new release that does not changed
764 16 Sep 08 jari 38        the API. The first number is changed for API changing
764 16 Sep 08 jari 39        releases. Add "pre" to unreleased versions. Examples:
764 16 Sep 08 jari 40        1.0, 1.1, 1.2pre
764 16 Sep 08 jari 41     -->
806 01 Oct 08 jari 42   <property name="version" value="2.2pre" />
764 16 Sep 08 jari 43
764 16 Sep 08 jari 44   <property name="basefilejar" value="BaseFile" />
758 15 Sep 08 jari 45   <property name="build" location="build" />
99 20 Apr 06 enell 46   <property name="dist" location="dist" />
776 18 Sep 08 jari 47   <property name="doc" location="doc" />
776 18 Sep 08 jari 48   <property name="package" value="mergebioassay"/>
776 18 Sep 08 jari 49   <property name="packagestring" value="MergeBioAssay-${version}" />
764 16 Sep 08 jari 50   <property name="src" location="src" />
99 20 Apr 06 enell 51   
205 24 Nov 06 enell 52   <path id="classpath">
764 16 Sep 08 jari 53     <fileset dir="${basefilejar}">
788 18 Sep 08 jari 54       <include name="**/*.jar"/>
788 18 Sep 08 jari 55     </fileset>
205 24 Nov 06 enell 56   </path>
180 27 Sep 06 enell 57   
65 07 Feb 06 enell 58   <!-- =================================
788 18 Sep 08 jari 59       target: compile
99 20 Apr 06 enell 60     ================================== -->
758 15 Sep 08 jari 61   <target name="compile" description="--> Compile the package">
758 15 Sep 08 jari 62     <mkdir dir="${build}"/>
99 20 Apr 06 enell 63     <javac
758 15 Sep 08 jari 64        srcdir="${src}"
758 15 Sep 08 jari 65        destdir="${build}"
758 15 Sep 08 jari 66        classpathref="classpath"
758 15 Sep 08 jari 67        debug="true"
758 15 Sep 08 jari 68        deprecation="true"
758 15 Sep 08 jari 69        encoding="ISO-8859-1"
758 15 Sep 08 jari 70        />
788 18 Sep 08 jari 71   </target>
99 20 Apr 06 enell 72   
65 07 Feb 06 enell 73   <!-- =================================
788 18 Sep 08 jari 74       target: clean
11 11 Oct 05 enell 75      ================================= -->
100 20 Apr 06 enell 76   <target name="clean" description="--> Remove all generated files">
758 15 Sep 08 jari 77     <delete dir="${build}" />
100 20 Apr 06 enell 78     <delete dir="${dist}" />
758 15 Sep 08 jari 79     <delete dir="${package}" />
764 16 Sep 08 jari 80     <delete file="${packagestring}.tgz" />
764 16 Sep 08 jari 81     <delete file="${packagestring}.tgz.MD5" />
11 11 Oct 05 enell 82   </target>
65 07 Feb 06 enell 83
65 07 Feb 06 enell 84   <!-- =================================
788 18 Sep 08 jari 85       target: dist
65 07 Feb 06 enell 86     ================================== -->
758 15 Sep 08 jari 87   <target name="dist" depends="compile">
140 10 Aug 06 enell 88     <mkdir dir="${dist}" />
776 18 Sep 08 jari 89     <jar destfile="${dist}/MergeBioAssay.jar">
758 15 Sep 08 jari 90       <fileset dir="${build}" />
788 18 Sep 08 jari 91       <manifest>
788 18 Sep 08 jari 92         <attribute name="Built-By" value="${user.name}"/>
788 18 Sep 08 jari 93         <attribute name="Main-Class" value="mergebioassay.MergeBioAssay"/>
788 18 Sep 08 jari 94       </manifest>
99 20 Apr 06 enell 95     </jar>
99 20 Apr 06 enell 96   </target>
99 20 Apr 06 enell 97   
180 27 Sep 06 enell 98   <!-- ================================= 
788 18 Sep 08 jari 99       target: package
180 27 Sep 06 enell 100      ================================= -->
758 15 Sep 08 jari 101   <target name="package" depends="dist"
766 16 Sep 08 jari 102           description="--> Create a tgz file for distribution.">
758 15 Sep 08 jari 103     <mkdir dir="${package}"/>
764 16 Sep 08 jari 104     <mkdir dir="${package}/${basefilejar}"/>
764 16 Sep 08 jari 105     <copy todir="${package}">
776 18 Sep 08 jari 106       <fileset file="${dist}/MergeBioAssay.jar" />
776 18 Sep 08 jari 107       <fileset dir="${doc}" />
758 15 Sep 08 jari 108       <fileset file="license.txt" />
764 16 Sep 08 jari 109       <fileset file="README" />
758 15 Sep 08 jari 110     </copy>
764 16 Sep 08 jari 111     <copy todir="${package}/${basefilejar}">
764 16 Sep 08 jari 112       <fileset dir="${basefilejar}" />
764 16 Sep 08 jari 113     </copy>
776 18 Sep 08 jari 114     <replace dir="${package}">
776 18 Sep 08 jari 115       <include name="*.base" />
771 18 Sep 08 jari 116       <replacefilter 
771 18 Sep 08 jari 117         token="@VERSION@"
771 18 Sep 08 jari 118         value="${version}"
771 18 Sep 08 jari 119       />
771 18 Sep 08 jari 120     </replace>
764 16 Sep 08 jari 121     <tar
764 16 Sep 08 jari 122       destfile="${packagestring}.tgz"
764 16 Sep 08 jari 123       longfile="gnu"
764 16 Sep 08 jari 124       compression="gzip"
764 16 Sep 08 jari 125       >
764 16 Sep 08 jari 126       <tarfileset
764 16 Sep 08 jari 127         dir="${package}"
764 16 Sep 08 jari 128         mode="755"
764 16 Sep 08 jari 129         prefix="${packagestring}"
764 16 Sep 08 jari 130         preserveLeadingSlashes="true"
764 16 Sep 08 jari 131         >
779 18 Sep 08 jari 132         <include name="run" />
764 16 Sep 08 jari 133       </tarfileset>
764 16 Sep 08 jari 134       <tarfileset
764 16 Sep 08 jari 135         dir="${package}"
764 16 Sep 08 jari 136         prefix="${packagestring}"
764 16 Sep 08 jari 137         preserveLeadingSlashes="true"
764 16 Sep 08 jari 138         >
779 18 Sep 08 jari 139         <exclude name="run" />
764 16 Sep 08 jari 140       </tarfileset>
764 16 Sep 08 jari 141     </tar>
764 16 Sep 08 jari 142     <checksum file="${packagestring}.tgz" />
180 27 Sep 06 enell 143   </target>  
140 10 Aug 06 enell 144   
707 27 May 08 jari 145 </project>