<project default="jar">

    <target name="clean">
        <delete dir="build"/>
    </target>

    <target name="compile">
        <mkdir dir="build/classes"/>
        <javac destdir="build/classes" classpath="lib/junit.jar:lib/annotations.jar">
		<src path="src"/>
	</javac>
    </target>

    <target name="jar" depends="compile">
        <mkdir dir="build/jar"/>
        <jar destfile="../pcb_sync.jar" basedir="build/classes">
            <manifest>
                <attribute name="Main-Class" value="com.rusefi.Main"/>
            </manifest>
		<zipfileset dir="build/classes" includes="**/*.class"/>
        </jar>
    </target>

</project>