<?xml version="1.0"?>
<project name="runtime" default="all" basedir=".">
	<property name="src" location="src" />
	<property name="lib" location="lib" />
	<property name="build" location="build" />
	<property name="classes" location="classes" />
	<property name="jarbuild" location="${build}/Exp_model.jar" />

	<target name="init">
		<tstamp />
	</target>

	<target name="compile" depends="init">
		<mkdir dir="${classes}" />
		<javac srcdir="${src}" destdir="${classes}" classpath="${lib}/ocelet-runtime.jar" />
	</target>

	<target name="all" depends="compile">
		<mkdir dir="build" />
		<jar jarfile="${jarbuild}" basedir="${classes}">
			<zipgroupfileset dir="${lib}" includes="*.jar" />
			<manifest>
				<attribute name="Main-Class" value="fr.ocelet.models.exp_model.Exp_model" />
				<attribute name="Built-By" value="Ocelet developpers team" />
				<attribute name="Implementation-Vendor" value="CIRAD" />
				<attribute name="Implementation-Title" value="Experimental Model for Ocelet" />
				<attribute name="Implementation-Version" value="1.0" />
			</manifest>
		</jar>
	</target>

	<target name="run" depends="all">
		<java jar="${jarbuild}" fork="true" failonerror="true" maxmemory="128m" />
	</target>

	<target name="clean">
		<delete dir="${build}" />
		<delete dir="${classes}" />
	</target>

</project>

