File:  [mozdev] / mbs / build.xml
Revision 1.23: download - view: text, annotated - select for diffs - revision graph
Mon Mar 7 06:22:45 2005 UTC (14 years ago) by corey
Branches: MAIN
CVS tags: HEAD
Bumped the version number up

<project name="mbs" default="build" basedir=".">
  <property name="srcdir" location="org/mozdev/mbs"/>
  <property name="iconsdir" location="icons"/>
  <property name="docsdir" location="docs"/>
  <property name="version" value="1.3.2"/>

  <target name="build">
    <mkdir dir="bin/icons"/>
    <javac srcdir="${srcdir}" destdir="bin/" source="1.4">
    </javac>
    <copy file="${iconsdir}/mbs16.gif" todir="bin/icons"/>
    <copy file="${iconsdir}/mbs64.gif" todir="bin/icons"/>
  </target>

  <target name="mbsgui" depends="build">
    <java fork="true" dir="bin/" classname="org.mozdev.mbs.MBSGUI"/>
  </target>

  <target name="packageunix" depends="clean,jarunix">
    <mkdir dir="jar/mbs/docs"/>
    <copy file="${docsdir}/COPYING" todir="jar/mbs/docs"/>
    <copy file="${docsdir}/README" todir="jar/mbs/docs"/>
    <copy file="${docsdir}/CHANGELOG" todir="jar/mbs/docs"/>
    <tar destfile="jar/mbs-${version}.tar" basedir="jar/" excludes="jar/CVS/**"/>
    <gzip src="jar/mbs-${version}.tar" zipfile="downloads/mbs-${version}.tar.gz"/>
    <exec executable="md5sum" output="downloads/mbs-${version}.tar.gz.md5" input="downloads/mbs-${version}.tar.gz"/>
  </target>

  <target name="packagewindows" depends="clean,jarwindows">
    <mkdir dir="jar/MBS/docs"/>
    <copy file="${docsdir}/copying.txt" todir="jar/MBS/docs"/>
    <copy file="${docsdir}/readme.txt" todir="jar/MBS/docs"/>
    <copy file="${docsdir}/changelog.txt" todir="jar/MBS/docs"/>
    <zip destfile="downloads/MBS-${version}.zip" basedir="jar/" filesonly="true"/>
    <exec executable="md5sum" output="downloads/MBS-${version}.zip.md5" input="downloads/MBS-${version}.zip"/>
  </target>

  <target name="jarunix" depends="build">
    <mkdir dir="jar/mbs/icons"/>
    <copy file="${iconsdir}/mbs16.gif" todir="jar/mbs/icons"/>
    <copy file="${iconsdir}/mbs64.gif" todir="jar/mbs/icons"/>
  	<copy file="${iconsdir}/mbs48.png" todir="jar/mbs/icons"/>
    <jar destfile="jar/mbs/mbs.jar" basedir="bin/">
      <manifest>
        <attribute name="Main-Class" value="org.mozdev.mbs.MBSGUI"/>
      </manifest>
    </jar>
  </target>

  <target name="jarwindows" depends="build">
    <mkdir dir="jar/MBS/icons"/>
    <copy file="${iconsdir}/mbs16.gif" todir="jar/MBS/icons"/>
    <copy file="${iconsdir}/mbs64.gif" todir="jar/MBS/icons"/>
  	<copy file="${iconsdir}/mbs48.png" todir="jar/MBS/icons"/>
    <jar destfile="jar/MBS/mbs.jar" basedir="bin/">
      <manifest>
        <attribute name="Main-Class" value="org.mozdev.mbs.MBSGUI"/>
      </manifest>
    </jar>
  </target>

  <target name="clean">
    <delete dir="bin/"/>
    <delete dir="jar/"/>
  </target>
</project>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>