Changeset 1297


Ignore:
Timestamp:
08/18/06 16:02:19 (14 years ago)
Author:
curtis
Message:

Add dist-slim target for building slim.zip releases.

Location:
trunk
Files:
1 added
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r1293 r1297  
    8787    Dependencies:  visad.jar 
    8888    Targets:       jar-slim 
     89                   dist-slim 
    8990 
    9091=============================================================================== 
     
    153154  </description> 
    154155 
    155   <!-- Directories --> 
     156  <!-- Global properties --> 
    156157 
    157158  <property name="src.dir" value="."/> 
     
    162163  <property name="docs.dir" value="${build.dir}/docs"/> 
    163164  <property name="dist.dir" value="${build.dir}/dist"/> 
     165 
     166  <condition property="isUnix"><os family="unix"/></condition> 
    164167 
    165168  <!-- Global build targets --> 
     
    266269 
    267270  <property name="visbio.dist-files" value="bsd-forms.txt bsd-looks.txt gpl-visbio.txt omeul.txt whatsnew.txt *.cpp *.m"/> 
    268  
    269   <condition property="isUnix"><os family="unix"/></condition> 
    270271 
    271272  <target name="dist-visbio" depends="dist-visbio-win32, dist-visbio-win32-nojre, dist-visbio-macosx, dist-visbio-linux, dist-visbio-nojre"/> 
     
    485486  </target> 
    486487 
     488  <property name="slim.dist-dir" value="${dist.dir}/slim/SlimPlotter"/> 
     489 
     490  <target name="dist-slim" if="isUnix" depends="copy-jars, jar-slim"> 
     491    <copy todir="${slim.dist-dir}" preservelastmodified="true"> 
     492      <fileset dir="dist/slim"/> 
     493      <fileset dir="${jar.dir}" includes="SlimPlotter.jar ${slim.classpath}"/> 
     494    </copy> 
     495    <!-- HACK - copy does not preserve permissions; chmod them back --> 
     496    <chmod perm="+x"> 
     497      <fileset dir="${slim.dist-dir}" includes="slim"/> 
     498    </chmod> 
     499<!-- 
     500    <zip destfile="${dist.dir}/slim.zip" basedir="${dist.dir}/slim"/> 
     501--> 
     502    <!-- HACK - zip does not preserve permissions; use exec instead --> 
     503    <exec executable="zip" dir="${dist.dir}/slim"> 
     504      <arg line="-r9 ../slim.zip SlimPlotter"/> 
     505    </exec> 
     506  </target> 
     507 
    487508</project> 
Note: See TracChangeset for help on using the changeset viewer.