<?xml version="1.0"?>

<project name="ext-service-parent">
	<import file="../build-common.xml" />

	<property name="deploy.dir" value="${app.server.lib.global.dir}" />
	<property name="jar.file" value="${ant.project.name}" />

	<target name="clean">
		<delete dir="classes" />
		<delete file="${jar.file}.jar" failonerror="false" />
	</target>

	<target name="compile">
		<mkdir dir="classes" />

		<path id="web-lib.classpath">
		</path>

		<javac
			classpathref="web.classpath"
			compiler="${javac.compiler}"
			debug="${javac.debug}"
			deprecation="${javac.deprecation}"
			destdir="classes"
			nowarn="${javac.nowarn}"
			srcdir="src"
		/>
	</target>

	<target name="jar" depends="compile">
		<jar
			basedir="classes"
			jarfile="${jar.file}.jar"
		/>
	</target>

	<target name="deploy" depends="jar">
		<copy file="${jar.file}.jar" todir="${deploy.dir}" />
	</target>
</project>