build.xml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!-- $OpenBSD: build.xml,v 1.1.1.1 2012/05/23 15:02:52 sthen Exp $ -->
  2. <project name="BCrypt" default="all" basedir=".">
  3. <!-- Properties -->
  4. <property name="name" value="BCrypt"/>
  5. <property name="src" value="src"/>
  6. <property name="build" value="build"/>
  7. <property name="build.classes" value="${build}/classes"/>
  8. <property name="build.lib" value="${build}/lib"/>
  9. <property name="packagenames" value="BCrypt.*"/>
  10. <target name="prepare">
  11. <mkdir dir="${src}"/>
  12. <mkdir dir="${build}"/>
  13. <mkdir dir="${build.classes}"/>
  14. <mkdir dir="${build.lib}"/>
  15. <copy todir="${src}">
  16. <fileset dir="./">
  17. <include name="BCrypt.java"/>
  18. </fileset>
  19. </copy>
  20. </target>
  21. <target name="clean">
  22. <delete dir="${build}"/>
  23. <delete dir="${src}"/>
  24. </target>
  25. <target name="classes" depends="prepare">
  26. <javac srcdir="${src}/" destdir="${build.classes}" debug="off" optimize="on"/>
  27. </target>
  28. <target name="all" depends="classes">
  29. <jar jarfile="${build.lib}/${name}.jar" basedir="${build.classes}"/>
  30. </target>
  31. </project>