<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project>
<project name="com.ibm.wala.shrike" default="build.update.jar" basedir=".">
	<import file="../org.eclipse.imp.runtime.feature/buildCommon.xml"/>
	<import file="../org.eclipse.imp.update/buildPluginCommon.xml"/>

	<!-- ================================================================================= -->

	<target name="plugin.jar" depends="init,javaInit" unless="${plugin.jar.name}" description="Create jar: ${plugin.jar.name}.">
		<delete dir="${temp.folder}/${plugin.jar.name}.bin"/>
		<mkdir dir="${temp.folder}/${plugin.jar.name}.bin"/>
		<!-- compile the source code -->
		<javac destdir="${temp.folder}/${plugin.jar.name}.bin" failonerror="${javacFailOnError}"
			   verbose="${javacVerbose}" debug="${javacDebugInfo}"
			   includeAntRuntime="no" bootclasspath="${bootclasspath}"
			   source="${javacSource}" target="${javacTarget}">
			<compilerarg line="${compilerArg}"/>
			<classpath>
				<pathelement path="${eclipse.build.path}"/>
			</classpath>
			<src path="src/"/>
		</javac>
		<!-- Copy necessary resources -->
		<copy todir="${temp.folder}/${plugin.jar.name}.bin" failonerror="true" overwrite="false">
			<fileset dir="src/" excludes="**/*.java,**/package.htm*"/>
		</copy>
		<mkdir dir="${build.result.folder}"/>
		<jar destfile="${build.result.folder}/${plugin.jar.name}" basedir="${temp.folder}/${plugin.jar.name}.bin"
			manifest="META-INF/MANIFEST.MF"/>
		<delete dir="${temp.folder}/${plugin.jar.name}.bin"/>
	</target>
</project>
