Changeset 992


Ignore:
Timestamp:
Mar 14, 2009, 2:43:00 PM (12 years ago)
Author:
Jari Häkkinen
Message:

Require BASE 2.5. Restructure build script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/base2/net.sf.basedb.pluginutilities/trunk/build.xml

    r861 r992  
    44
    55    Copyright (C) 2008 Jari Hakkinen, Nicklas Nordborg
     6    Copyright (C) 2009 Jari Hakkinen
    67
    78    This file is part of the net.sf.basedb.pluginutilities package, a
     
    2122
    2223    You should have received a copy of the GNU General Public License
    23     along with BASE. If not, see <http://www.gnu.org/licenses/>.
     24    along with this software. If not, see <http://www.gnu.org/licenses/>.
    2425-->
    2526<project name="PluginUtilities" default="build" basedir=".">
     
    4041  <property name="package" location="package"
    4142            description="Directory for created packaged distribution files"/>
    42   <property name="javac.source" value="1.5" />
    43   <property name="javac.target" value="1.5" />
     43  <property name="javac.source" value="1.6" />
     44  <property name="javac.target" value="1.6" />
    4445  <property name="javac.encoding" value="ISO-8859-1" />
    4546  <property name="depend.jars"
    46     value="http://base2.thep.lu.se/base/jars/2.9.0"
     47    value="http://base2.thep.lu.se/base/jars/2.5.0"
    4748    description="The location of the BASE core JARs that we depend on"
    4849  />
     
    5455    </fileset>
    5556  </path>
    56 
    57   <target name="init">
    58     <mkdir dir="${build}" />
    59     <mkdir dir="${dist}" />
    60     <mkdir dir="${lib}" />
    61   </target>
    62 
    63   <target name="clean">
    64     <delete failonerror="false" includeemptydirs="true">
    65       <fileset dir="${build}" defaultexcludes="no" />
    66       <fileset dir="${dist}" defaultexcludes="no" />
    67       <fileset dir="${package}" defaultexcludes="no" />
    68     </delete>
    69   </target>
    70 
    71   <target name="distclean" depends="clean" >
    72     <delete failonerror="false" includeemptydirs="true">
    73       <fileset dir="${lib}" defaultexcludes="no" />
    74     </delete>
    75   </target>
    76 
    77   <target
    78     name="dist"
    79     depends="clean, build"
    80     >
    81     <property name="jar" value="${name}-${version}.jar" />
    82     <jar
    83       jarfile="${dist}/${jar}"
    84       basedir="${build}"
    85       >
    86     </jar>
    87     <copy todir="${dist}">
    88       <fileset dir="." includes="README*, license.txt" />
    89     </copy>
    90   </target>
    91 
    92   <target
    93     name="package"
    94     depends="dist"
    95     description="Create binary distribution package"
    96     >
    97     <property name="tar.prefix" value="${name}-${version}" />
    98     <mkdir dir="${package}" />
    99     <tar
    100       destfile="${package}/${tar.prefix}.tgz"
    101       longfile="gnu"
    102       compression="gzip"
    103       >
    104       <tarfileset
    105         dir="${dist}"
    106         prefix="${tar.prefix}"
    107         preserveLeadingSlashes="true"
    108         >
    109       </tarfileset>
    110     </tar>
    111     <checksum file="${package}/${tar.prefix}.tgz" />
    112   </target>
    11357
    11458  <target
     
    13983    <fail unless="base2wsclient" message="Can't find BASE2WSClient.jar in ./lib. Try 'ant download-lib' to download the missing file." />
    14084    <echo>Found BASE2Core.jar and BASE2WSClient.jar.</echo>
     85  </target>
     86
     87  <target name="clean">
     88    <delete failonerror="false" includeemptydirs="true">
     89      <fileset dir="${build}" defaultexcludes="no" />
     90      <fileset dir="${dist}" defaultexcludes="no" />
     91      <fileset dir="${package}" defaultexcludes="no" />
     92    </delete>
     93  </target>
     94
     95  <target
     96    name="dist"
     97    depends="clean, build"
     98    >
     99    <property name="jar" value="${name}-${version}.jar" />
     100    <jar
     101      jarfile="${dist}/${jar}"
     102      basedir="${build}"
     103      >
     104    </jar>
     105    <copy todir="${dist}">
     106      <fileset dir="." includes="README*, license.txt" />
     107    </copy>
     108  </target>
     109
     110  <target name="distclean" depends="clean" >
     111    <delete failonerror="false" includeemptydirs="true">
     112      <fileset dir="${lib}" defaultexcludes="no" />
     113    </delete>
     114  </target>
     115
     116  <target name="init">
     117    <mkdir dir="${build}" />
     118    <mkdir dir="${dist}" />
     119    <mkdir dir="${lib}" />
     120  </target>
     121
     122  <target
     123    name="package"
     124    depends="dist"
     125    description="Create binary distribution package"
     126    >
     127    <property name="tar.prefix" value="${name}-${version}" />
     128    <mkdir dir="${package}" />
     129    <tar
     130      destfile="${package}/${tar.prefix}.tgz"
     131      longfile="gnu"
     132      compression="gzip"
     133      >
     134      <tarfileset
     135        dir="${dist}"
     136        prefix="${tar.prefix}"
     137        preserveLeadingSlashes="true"
     138        >
     139      </tarfileset>
     140    </tar>
     141    <checksum file="${package}/${tar.prefix}.tgz" />
    141142  </target>
    142143
Note: See TracChangeset for help on using the changeset viewer.