Changeset 759


Ignore:
Timestamp:
Sep 15, 2008, 2:30:09 PM (13 years ago)
Author:
Jari Häkkinen
Message:

Addresses #131. Added version info.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/base1/se.lu.onk.BaseFile/trunk/build.xml

    r758 r759  
    2424    along with BASE. If not, see <http://www.gnu.org/licenses/>.
    2525-->
    26 <project name="se.lu.onk.ReplicateError package for BASE"
     26<project name="se.lu.onk.BaseFile package for BASE"
    2727         default="dist" basedir=".">
    2828  <description>
     
    3232
    3333  <!-- properties -->
    34   <property name="src" location="src" />
     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
    3544  <property name="build" location="build" />
    3645  <property name="dist" location="dist" />
    37   <property name="package" value="basefile"/>
     46  <property name="package" location="basefile" />
     47  <property name="packagestring" value="BaseFile-${version}" />
     48  <property name="src" location="src" />
     49
    3850
    3951  <!-- =================================
     
    5870    <delete dir="${dist}" />
    5971    <delete dir="${package}" />
    60     <delete file="BaseFile.zip" />
     72    <delete file="${packagestring}.zip" />
    6173  </target>
    6274
     
    6880    <mkdir dir="${dist}" />
    6981    <jar destfile="${dist}/BaseFile.jar">
    70       <fileset dir="${src}" />
    7182      <fileset dir="${build}" />
    7283        <manifest>
     
    8293          description="--> Create a zip file for distribution.">
    8394    <mkdir dir="${package}"/>
    84     <mkdir dir="${package}/BaseFile"/>
    85     <copy todir="${package}/BaseFile">
     95    <mkdir dir="${package}/${packagestring}"/>
     96    <copy todir="${package}/${packagestring}">
    8697      <fileset file="${dist}/BaseFile.jar" />
    8798      <fileset file="README" />
    8899      <fileset file="license.txt" />
    89100    </copy>
    90     <zip destfile="BaseFile.zip" basedir="${package}" />
     101    <zip destfile="${packagestring}.zip" basedir="${package}" />
    91102  </target>
    92103 
Note: See TracChangeset for help on using the changeset viewer.