Changeset 1542 for plugins


Ignore:
Timestamp:
Feb 22, 2012, 11:22:28 AM (10 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #363: Add 'install' target to ant build script

File:
1 edited

Legend:

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

    r1448 r1542  
    1919  <property name="dist" location="dist" description="Directory where distribution should be created" />
    2020  <property name="package" location="package" description="Directory where packaged distribution files are created"/>
     21  <property name="jar.name" value="${name}.jar" description="Name of JAR file with the extensions." />
     22  <property name="tar.prefix" value="${name}-${version}" description="Prefix of .tar.gz file for download." />
     23  <property name="tar.name" value="${tar.prefix}.tar.gz" description="Full name of .tar.gz file for download." />
    2124  <property name="javac.arg" value="-Xlint:unchecked" />
    2225  <property name="javac.source" value="1.6" />
     
    6871    description="Create binary distribution package"
    6972    >
    70     <property name="tar.prefix" value="${name}-${version}" />
    7173    <mkdir dir="${package}" />
    7274    <tar
    73       destfile="${package}/${tar.prefix}.tar.gz"
     75      destfile="${package}/${tar.name}"
    7476      longfile="gnu"
    7577      compression="gzip"
     
    99101    >
    100102    <property name="jar" value="${name}.jar" />
    101     <property name="jar.extensions" value="illumina-extensions.jar" />
    102103    <mkdir dir="${build}" />
    103104    <javac
     
    118119    </copy>   
    119120    <jar
    120       jarfile="${dist}/${jar}"
     121      jarfile="${dist}/${jar.name}"
    121122      basedir="${build}"
    122123      >
    123124    </jar>     
     125  </target>
     126 
     127  <target
     128    name="install"
     129    depends="build"
     130    >
     131    <fail unless="base.plugins" message="base.plugins is not set to the path of BASE plug-ins directory." />
     132    <copy todir="${base.plugins}">
     133      <fileset file="${dist}/${jar.name}" />
     134    </copy>
     135    <echo>Copied '${jar.name}' to '${base.plugins}'.</echo>
    124136  </target>
    125137 
Note: See TracChangeset for help on using the changeset viewer.