File isorelax-build.xml of Package isorelax

<?xml version="1.0"?>
<project name="ISORELAX" basedir="." default="release">

	<!-- create a distribution package -->
	<target name="release">
		<tstamp />
		
		<!-- compile files -->
		<mkdir	dir="temp" />
		<javac	srcdir="src" debug="true"
				destdir="temp">
			<include name="**/*.java" />
		</javac>
		
      		<mkdir dir="apidocs"/>
      		<javadoc packagenames="org.*"
               		sourcepath="src"
               		destdir="apidocs"
               		windowtitle="ISORELAX"
               		doctitle="ISORELAX"
               		public="true"
               		version="true"
               		author="true"
               		splitindex="false"
               		nodeprecated="true"
               		nodeprecatedlist="true"
               		notree="true"
               		noindex="false"
               		nohelp="true"
               		nonavbar="false"
               		serialwarn="false">
      		</javadoc>

		<!-- create a time stamp file -->
		<echo file="temp/version.properties">version=${DSTAMP}</echo>
		
		<!-- creates binary jar -->
		<delete file="isorelax.jar"/>
		<jar	jarfile="isorelax.jar"
				compress="true">
			<fileset dir="temp" />
			<fileset dir="" includes="COPYING.txt"/>
			<!-- resource files -->
			<fileset dir="src">
				<patternset>
					<include name="**/*.properties" />
					<include name="**/*.rxm"/>
					<include name="**/*.dtd"/>
					<include name="**/*.rng"/>
					<include name="**/*.mod"/>
				</patternset>
			</fileset>
		</jar>
		<delete dir="temp" />
		
	</target>
	
	
	<!-- ant task test -->
	<target name="ant-task-test">
		<taskdef name="jarv" classname="org.iso_relax.ant.JARVTask">
			<classpath path="isorelax.jar"/>
			<classpath path="xercesjarv.jar"/>
		</taskdef>
		
		<!-- use xercesjarv instead of swift verifier for test -->
		<!-- test files borrowed from maven project -->
		<jarv
			schemaLanguage="http://www.w3.org/2001/XMLSchema"
			schema="test/isorelax-maven-project.xsd"
			file="test/isorelax-maven-project.xml" />

	</target>
</project>