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.

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