A simple Game of Life implementation in Java
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

build.xml 2.0 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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/rules" />
  26. <copy includeemptydirs="false" todir="bin">
  27. <fileset dir="src">
  28. <exclude name="**/*.java"/>
  29. </fileset>
  30. </copy>
  31. </target>
  32. <target name="clean">
  33. <delete dir="bin"/>
  34. </target>
  35. <target depends="clean" name="cleanall"/>
  36. <target depends="build-project" name="build"/>
  37. <target depends="init" name="build-project">
  38. <echo message="${ant.project.name}: ${ant.file}"/>
  39. <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}" includeantruntime="false" >
  40. <src path="src"/>
  41. <classpath refid="Goldfish.classpath"/>
  42. </javac>
  43. <jar file="bin/Goldfish.jar"
  44. manifest="bin/MANIFEST.MF" >
  45. <fileset dir="bin">
  46. <include name="**/*.class"/>
  47. </fileset>
  48. </jar>
  49. </target>
  50. <target depends="build-project" name="run">
  51. <java jar="bin/${ant.project.name}.jar" fork="true" />
  52. </target>
  53. </project>