build.xml 796 B

12345678910111213141516171819202122232425
  1. <project default="run">
  2. <target name="clean">
  3. <delete dir="build"/>
  4. </target>
  5. <target name="compile">
  6. <mkdir dir="build/classes"/>
  7. <javac includeantruntime="false" srcdir="src" destdir="build/classes"/>
  8. </target>
  9. <target name="jar" depends="compile">
  10. <javac includeantruntime="false" srcdir="src" destdir="build/classes"/>
  11. <jar destfile="build/SnuviScriptRecoded.jar" basedir="build/classes">
  12. <manifest>
  13. <attribute name="Main-Class" value="me.hammerle.snuviscript.SnuviScript"/>
  14. </manifest>
  15. </jar>
  16. </target>
  17. <target name="run" depends="jar">
  18. <java jar="build/SnuviScriptRecoded.jar" fork="true">
  19. <arg value="test"/>
  20. </java>
  21. </target>
  22. </project>