Changeset 764


Ignore:
Timestamp:
Sep 16, 2008, 11:11:20 AM (13 years ago)
Author:
Jari Häkkinen
Message:

Addresses #129. Added version info, not distributing source, distribute tgz instead of zip -- keeps executable flag.

File:
1 edited

Legend:

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

    • Property svn:keywords set to Id
    r758 r764  
    3232
    3333  <!-- properties -->
    34   <property name="lib" location="lib" />
    35   <property name="src" location="src" />
     34
     35  <!-- set 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.3pre" />
     43
     44  <property name="basefilejar" value="BaseFile" />
    3645  <property name="build" location="build" />
    3746  <property name="dist" location="dist" />
     47  <property name="lib" location="lib" />
    3848  <property name="package" value="replicateerror"/>
     49  <property name="packagestring" value="ReplicateError-${version}" />
     50  <property name="src" location="src" />
    3951 
    4052  <path id="classpath">
    41     <fileset dir="${lib}">
     53    <fileset dir="${basefilejar}">
    4254      <include name="**/*.jar"/>
    4355    </fileset>
     
    6678    <delete dir="${dist}" />
    6779    <delete dir="${package}" />
    68     <delete file="ReplicateError.jar" />
     80    <delete file="${packagestring}.tgz" />
     81    <delete file="${packagestring}.tgz.MD5" />
    6982  </target>
    7083
    71  
    7284  <!-- =================================
    7385      target: dist
     
    7789    <jar destfile="${dist}/ReplicateError.jar">
    7890      <fileset dir="${build}" />
    79       <fileset dir="${src}" />
    8091      <manifest>
    8192        <attribute name="Built-By" value="${user.name}"/>
     
    91102          description="--> Create a zip file for distribution.">
    92103    <mkdir dir="${package}"/>
    93     <mkdir dir="${package}/ReplicateError"/>
    94     <copy todir="${package}/ReplicateError">
     104    <mkdir dir="${package}/${basefilejar}"/>
     105    <copy todir="${package}">
    95106      <fileset file="${dist}/ReplicateError.jar" />
     107      <fileset dir="${lib}" />
    96108      <fileset file="license.txt" />
    97       <fileset dir="${lib}" includes="*" />
     109      <fileset file="README" />
    98110    </copy>
    99     <zip destfile="ReplicateError.zip" basedir="${package}" />
     111    <copy todir="${package}/${basefilejar}">
     112      <fileset dir="${basefilejar}" />
     113    </copy>
     114    <tar
     115      destfile="${packagestring}.tgz"
     116      longfile="gnu"
     117      compression="gzip"
     118      >
     119      <tarfileset
     120        dir="${package}"
     121        mode="755"
     122        prefix="${packagestring}"
     123        preserveLeadingSlashes="true"
     124        >
     125        <include name="runAA" />
     126        <include name="runWA" />
     127      </tarfileset>
     128      <tarfileset
     129        dir="${package}"
     130        prefix="${packagestring}"
     131        preserveLeadingSlashes="true"
     132        >
     133        <exclude name="runAA" />
     134        <exclude name="runWA" />
     135      </tarfileset>
     136    </tar>
     137    <checksum file="${packagestring}.tgz" />
    100138  </target>
    101139 
Note: See TracChangeset for help on using the changeset viewer.