A simple Game of Life implementation in Java
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.0 KiB

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <project basedir="." default="build" name="Goldfish">
  3. <property environment="env"/>
  4. <property name="debuglevel" value="source,lines,vars"/>
  5. <property name="target" value="1.6"/>
  6. <property name="source" value="1.6"/>
  7. <path id="Goldfish.classpath">
  8. <pathelement location="bin"/>
  9. </path>
  10. <manifestclasspath property="manifest_cp" jarfile="bin/Goldfish.jar">
  11. <classpath refid="Goldfish.classpath" />
  12. </manifestclasspath>
  13. <manifest file="bin/MANIFEST.MF">
  14. <attribute name="Main-Class"
  15. value="edu.stuy.goldfish.Goldfish" />
  16. <attribute name="Created-By"
  17. value="Ben Kurtovic, Josh Hofing, and Kevin Li" />
  18. <attribute name="Class-Path"
  19. value="${manifest_cp}" />
  20. </manifest>
  21. <target name="init">
  22. <mkdir dir="bin"/>
  23. <mkdir dir="src"/>
  24. <mkdir dir="src/rules" />
  25. <copy includeemptydirs="false" todir="bin">
  26. <fileset dir="src">
  27. <exclude name="**/*.java"/>
  28. </fileset>
  29. </copy>
  30. </target>
  31. <target name="clean">
  32. <delete dir="bin"/>
  33. </target>
  34. <target depends="clean" name="cleanall"/>
  35. <target depends="build-project" name="build"/>
  36. <target depends="init" name="build-project">
  37. <echo message="${ant.project.name}: ${ant.file}"/>
  38. <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}" includeantruntime="false" >
  39. <src path="src"/>
  40. <classpath refid="Goldfish.classpath"/>
  41. </javac>
  42. <jar file="bin/Goldfish.jar"
  43. manifest="bin/MANIFEST.MF" >
  44. <fileset dir="bin">
  45. <include name="**/*.class"/>
  46. </fileset>
  47. </jar>
  48. </target>
  49. <target depends="build-project" name="run">
  50. <java jar="bin/${ant.project.name}.jar" fork="true" />
  51. </target>
  52. </project>