<?xml version="1.0"?>

<project name="Duece" default="agent" basedir=".">

	<target name="agent" depends="compile">
		<jar destfile="bin/deuceAgent.jar">
			<fileset dir="classes" />
			<manifest>
				<attribute name="Implementation-Vendor" value="deuce.org" />
				<attribute name="Implementation-Version" value="1.0"/>
				<attribute name="Premain-Class" value="org.deuce.transform.asm.Agent" />
				<attribute name="Can-Redefine-Classes" value="true"/>
				<attribute name="Can-Retransform-Classes" value="true"/>
			</manifest>
		</jar>
	</target>

	<target name="Tests">
		<junit>
			<classpath>
				<pathelement location="${build.tests}"/>
				<pathelement path="bin/deuceAgent.jar"/>
			</classpath>
		</junit>
	</target>

	<target name="compile">
		<javac  fork="true" srcdir="src"  source="1.5" target="1.5"
			destdir="classes"
		 	includes="java/**"
		 	excludes="test/**"/>
	</target>
</project>

<?xml version="1.0"?>

<project name="Duece" default="agent" basedir=".">

	<target name="agent" depends="compile">
		<jar destfile="bin/deuceAgent.jar">
			<fileset dir="bin/classes"/>
			<manifest>
				<attribute name="Implementation-Vendor" value="deuce.org" />
				<attribute name="Implementation-Version" value="1.1"/>
				<attribute name="Premain-Class" value="org.deuce.transform.asm.Agent" />
				<attribute name="Main-Class" value="org.deuce.transform.asm.Agent"/>
				<attribute name="Can-Redefine-Classes" value="true"/>
				<attribute name="Can-Retransform-Classes" value="true"/>
				<attribute name="Compatible" value="1.6"/>
			</manifest>
		</jar>
	</target>

	<target name="Tests">
		<junit>
			<classpath>
				<pathelement location="${build.tests}"/>
				<pathelement path="bin/deuceAgent.jar"/>
			</classpath>
		</junit>
	</target>

	<target name="compile">
		<mkdir dir="bin/classes"/>
		<javac fork="true" srcdir="src"  source="1.6" target="1.6"
			destdir="bin/classes"
		 	includes="java/**"
		 	excludes="test/**"/>
	</target>
</project>

Add Main-Class to the manifest
Add Main-Class to the manifest
