Commit 1fcab8e1 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

Introduced remove for setting release number correctly

parent c3772f06
<!-- $Id: build.xml,v 1.34 2002-10-13 19:20:21 jerome Exp $ -->
<!-- $Id: build.xml,v 1.35 2002-10-16 07:13:23 jerome Exp $ -->
<project name="transmo" default="compile" basedir="..">
......@@ -45,7 +45,7 @@
<filter token="DATE" value="${date}"/>
<filter token="VERS" value="${version}"/>
<echo message="Transmorpher build for version ${version} of ${TODAY}"/>
<echo message="Transmorpher build for version ${version} of ${date}"/>
<path id="classpath">
<fileset dir="./lib">
......@@ -146,27 +146,24 @@
<!-- tested -->
<target name="compile" depends="init,optional-tests, optional-warnings">
<echo message="Compiling..."/>
<javac srcdir="src" destdir="classes">
<classpath refid="classpath"/>
<exclude name="**/PDF*" unless="fop.present"/>
<exclude name="**/tidy*" unless="tidy.present"/>
<exclude name="**/RTF*" unless="jfor.present"/>
<exclude name="**/*vcs*" unless="mail.present"/>
</javac>
</target>
<target name="compile" depends="init,optional-tests, optional-warnings">
<echo message="Compiling..."/>
<javac srcdir="src" destdir="classes">
<classpath refid="classpath"/>
<exclude name="**/PDF*" unless="fop.present"/>
<exclude name="**/tidy*" unless="tidy.present"/>
<exclude name="**/RTF*" unless="jfor.present"/>
<exclude name="**/*vcs*" unless="mail.present"/>
</javac>
</target>
<target name="compileall" depends="init">
<echo message="Erasing..."/>
<delete>
<fileset dir="classes" includes="**/*.class"/>
</delete>
<antcall target="compile"/>
</target>
<target name="compileall" depends="init">
<echo message="Erasing..."/>
<delete>
<fileset dir="classes" includes="**/*.class"/>
</delete>
<antcall target="compile"/>
</target>
<!-- tested -->
<target name="jar" depends="compile">
......@@ -269,12 +266,21 @@
<target name="prepare" depends="init">
<echo message="Preparing release... assume that all is updated and test have been run"/>
<copy file="src/fr/fluxmedia/transmorpher/Utils/Version.java" tofile="Version.java"/>
<copy file="Version.java" tofile="src/fr/fluxmedia/transmorpher/Utils/Version.java" filtering="true"/>
<copy file="Version.java"
tofile="src/fr/fluxmedia/transmorpher/Utils/Version.java"
filtering="true" overwrite="true"/>
<!-- This force recompiling of these dependent files -->
<delete file="classes/fr/fluxmedia/transmorpher/Application/CommandLineArgument.class"/>
<delete file="classes/fr/fluxmedia/transmorpher/Graph/MainProcess.class"/>
<!-- depends on compile -->
<antcall target="jar"/>
<antcall target="javadoc"/>
<move file="Version.java" tofile="src/fr/fluxmedia/transmorpher/Utils/Version.java"/>
<move file="Version.java"
tofile="src/fr/fluxmedia/transmorpher/Utils/Version.java"
overwrite="true"/>
<touch file="src/fr/fluxmedia/transmorpher/Utils/Version.java"/>
<delete file="classes/fr/fluxmedia/transmorpher/Application/CommandLineArgument.class"/>
<delete file="classes/fr/fluxmedia/transmorpher/Graph/MainProcess.class"/>
</target>
<target name="mark" depends="prepare">
......@@ -382,32 +388,35 @@
<copy todir="cdrom/www/transmo">
<fileset dir="refman" includes="**/*.html,**/*.gif,**/*.jpg,**/*.png"/>
</copy>
<!-- copy the special purpose HTML pages --> <copy
file="cdrom/www/transmo/index.html"
tofile="cdrom/www/transmo/fra.htm" filtering="true"/> <copy
file="cdrom/www/transmo/index.html"
tofile="cdrom/www/transmo/eng.htm" filtering="true"/> <copy
file="distrib/transmo-fra.htm"
tofile="cdrom/prog/pc/transmo/fra.htm" filtering="true"/> <copy
file="distrib/transmo-eng.htm"
tofile="cdrom/prog/pc/transmo/eng.htm" filtering="true"/> <copy
file="distrib/transmo-fra.htm"
tofile="cdrom/prog/mac/transmo/fra.htm" filtering="true"/> <copy
file="distrib/transmo-eng.htm"
tofile="cdrom/prog/mac/transmo/eng.htm" filtering="true"/> <copy
file="distrib/transmo-fra.htm"
tofile="cdrom/prog/unix/transmo/fra.htm" filtering="true"/> <copy
file="distrib/transmo-eng.htm"
tofile="cdrom/prog/unix/transmo/eng.htm" filtering="true"/> <copy
file="distrib/exmo-fra.htm" tofile="cdrom/projs/exmo/fra.htm"
filtering="true"/> <copy file="distrib/exmo-eng.htm"
tofile="cdrom/projs/exmo/eng.htm" filtering="true"/> <!-- set the
right for reading --> <chmod perm="a+rx" dir="cdrom"
includes="**/*"/> <!-- package an deliver --> <tar
tarfile="cdrom.tar" basedir="cdrom"/> <gzip src="cdrom.tar"
zipfile="cdrom.tar.gz" /> <delete file="cdrom.tar"/> <!-- delete
the directory, move the file --> <echo message="You must do: $ cd
..; mv cdrom.tar.gz /ftpexmo/tmp/; rm -rf cdrom"/>
<!-- copy the special purpose HTML pages -->
<copy file="cdrom/www/transmo/index.html"
tofile="cdrom/www/transmo/fra.htm" filtering="true"/>
<copy file="cdrom/www/transmo/index.html"
tofile="cdrom/www/transmo/eng.htm" filtering="true"/>
<copy file="distrib/transmo-fra.htm"
tofile="cdrom/prog/pc/transmo/fra.htm" filtering="true"/>
<copy file="distrib/transmo-eng.htm"
tofile="cdrom/prog/pc/transmo/eng.htm" filtering="true"/>
<copy file="distrib/transmo-fra.htm"
tofile="cdrom/prog/mac/transmo/fra.htm" filtering="true"/>
<copy file="distrib/transmo-eng.htm"
tofile="cdrom/prog/mac/transmo/eng.htm" filtering="true"/>
<copy file="distrib/transmo-fra.htm"
tofile="cdrom/prog/unix/transmo/fra.htm" filtering="true"/>
<copy file="distrib/transmo-eng.htm"
tofile="cdrom/prog/unix/transmo/eng.htm" filtering="true"/>
<copy file="distrib/exmo-fra.htm" tofile="cdrom/projs/exmo/fra.htm"
filtering="true"/>
<copy file="distrib/exmo-eng.htm"
tofile="cdrom/projs/exmo/eng.htm" filtering="true"/>
<!-- set the right for reading -->
<chmod perm="a+rx" dir="cdrom" includes="**/*"/>
<!-- package an deliver -->
<tar tarfile="cdrom.tar" basedir="cdrom"/>
<gzip src="cdrom.tar" zipfile="cdrom.tar.gz" />
<delete file="cdrom.tar"/>
<!-- delete the directory, move the file -->
<echo message="You must do: $ cd ..; mv cdrom.tar.gz /ftpexmo/tmp/; rm -rf cdrom"/>
</target>
<!-- tested -->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment