home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 May
/
CMCD0505.ISO
/
Software
/
Freeware
/
Grafica
/
gallerymage
/
GalleryMage-2.4.1.exe
/
build.xml
next >
Wrap
Extensible Markup Language
|
2005-04-03
|
5KB
|
173 lines
<?xml version="1.0"?>
<project name="gallmage" basedir="." default="all">
<property name="version" value="2.4.1" />
<property name="root" value="." />
<property name="src" value="${root}/src" />
<property name="lib" value="${root}/lib" />
<property name="macbuild" value="${root}/macbuild" />
<property name="javadoc" value="${root}/javadoc" />
<property name="classes" value="${root}/classes" />
<taskdef name="jarbundler"
classpath="${lib}/jarbundler-1.4.jar"
classname="com.loomcom.ant.tasks.jarbundler.JarBundler" />
<property name="classpath" value="lib/jtank.jar:lib/edtftpj.jar" />
<property name="java_home" value="${env.JAVA_HOME}" />
<property name="javac" value="${java_home}/bin/javac" />
<target name="init">
<mkdir dir="${classes}"/>
<mkdir dir="${javadoc}"/>
</target>
<target name="all" depends="jar" >
</target>
<target name="jar" depends="build" >
<jar jarfile="gallmage.jar">
<manifest>
<attribute name="Main-Class" value="com.tanksoftware.gallmage.GallMage2"/>
<attribute name="Class-Path" value="lib/jtank.jar lib/edtftpj.jar"/>
</manifest>
<fileset dir="${classes}"/>
</jar>
</target>
<target name="clean">
<delete failonerror="false" dir="${classes}"/>
<delete failonerror="false" dir="${javadoc}"/>
<delete failonerror="false" dir="${macbuild}"/>
<delete failonerror="false" dir="dog/gallmage/"/>
<delete failonerror="false">
<fileset file="gallmage.jar" />
<fileset file="doc/*.aux" />
<fileset file="doc/*.log" />
<fileset file="doc/*.out" />
<fileset file="doc/*.toc" />
<fileset file="doc/*.dvi" />
<fileset file="doc/*.pdf" />
<fileset file="*.dmg" />
</delete>
</target>
<target name="build" depends="init">
<copy failonerror="false" todir="${lib}">
<fileset dir="../jtank/">
<include name="jtank.jar" />
</fileset>
</copy>
<depend srcdir="${src}"
destdir="${classes}"
cache="depcache"
closure="yes"/>
<javac destdir="${classes}" debug="on" debuglevel="lines,vars,source" srcdir="${src}" fork="no"
deprecation="on"
classpath="${classpath}">
</javac>
</target>
<target name="rel" depends="all">
<tar destfile="gallmage-${version}.tar.gz"
compression="gzip">
<tarfileset dir="./" prefix="gallmage/">
<include name="src/**"/>
<include name="lib/*.jar"/>
<include name="conf/**"/>
<include name="doc/**"/>
<exclude name="doc/*.aux"/>
<exclude name="doc/*.log"/>
<exclude name="doc/*.toc"/>
<exclude name="doc/*.log"/>
<exclude name="doc/*.out"/>
<include name="data/*.ico"/>
<include name="data/*.icns"/>
<include name="data/*.png"/>
<include name="sample/**"/>
<include name="*.bat"/>
<include name="*.nsi"/>
<include name="gallmage.jar"/>
<include name="ChangeLog"/>
<include name="COPYING.txt"/>
<include name="README.txt"/>
<include name="build.xml"/>
</tarfileset>
<tarfileset dir="./" prefix="gallmage/" mode="755">
<include name="GallMage2"/>
</tarfileset>
</tar>
</target>
<target name="mac" depends="rel">
<delete failonerror="false" dir="${macbuild}"/>
<mkdir dir="${macbuild}"/>
<mkdir dir="${macbuild}/Gallery Mage/Gallery Mage"/>
<jarbundler
dir="${macbuild}/Gallery Mage/Gallery Mage"
jars="gallmage.jar lib/jtank.jar lib/edtftpj.jar"
mainclass="com.tanksoftware.gallmage.GallMage2" name="Gallery Mage"
vmoptions="-Xms32m -Xmx512m"
jvmversion="1.4+"
icon="data/gm.icns"
/>
<copy todir="${macbuild}/Gallery Mage/Gallery Mage">
<fileset dir="./">
<include name="sample/**"/>
<include name="conf/**"/>
<include name="doc/gallmage.pdf" />
<include name="doc/gallmage/**" />
</fileset>
</copy>
<copy todir="${macbuild}/Gallery Mage">
<fileset dir="./doc">
<include name="drag Gallery Mage into your Applications folder" />
</fileset>
</copy>
</target>
<target name="mac-dmg" depends="mac">
<fileset file="*.dmg" />
<exec executable="hdiutil" failonerror="true">
<arg value="create"/>
<arg value="-srcfolder"/>
<arg value="${macbuild}/Gallery Mage"/>
<arg value="-fs"/>
<arg value="HFS+"/>
<arg value="GalleryMage-${version}.dmg"/>
</exec>
</target>
<!-- run twice to make sure, we have the correct toc and references -->
<target name="pdf" depends="init">
<exec dir="doc" executable="pdflatex">
<arg value="gallmage.tex" />
</exec>
<exec dir="doc" executable="pdflatex">
<arg value="gallmage.tex" />
</exec>
</target>
<!-- always run latex before running latex2html (aux file) -->
<!-- latex runs in batchmode, because we don't have to care about errors here -->
<target name="html" depends="pdf">
<exec dir="doc" executable="latex">
<arg line="-interaction=batchmode gallmage.tex" />
</exec>
<exec dir="doc" executable="latex2html">
<arg line="-split 0 -info 0 -local_icons gallmage.tex" />
</exec>
<exec dir="doc" executable="latex2html">
<arg line="-split 0 -info 0 gallmage.tex" />
</exec>
</target>
</project>