A simple Game of Life implementation in Java
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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>