/build.xml

http://github.com/nddrylliog/ooc · XML · 54 lines · 42 code · 5 blank · 7 comment · 0 complexity · 96dfdf09cf86e7db25f2dad493cae495 MD5 · raw file

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <project default="create_run_jar" name="Create Runnable Jar for Project ooc-frontend">
  3. <!-- set global properties for this build -->
  4. <property name="build" location="build/javac-classes"/>
  5. <property name="bin" location="bin"/>
  6. <loadfile property="version-codename" srcFile="utils/version.txt">
  7. <filterchain>
  8. <tokenfilter>
  9. <trim/>
  10. <ignoreblank/>
  11. </tokenfilter>
  12. </filterchain>
  13. </loadfile>
  14. <target name="init">
  15. <!-- Create the time stamp -->
  16. <tstamp>
  17. <format property="date" pattern="yyyy-MM-dd"/>
  18. <format property="time" pattern="HH:mm"/>
  19. </tstamp>
  20. <!-- Create the build directory structure used by compile -->
  21. <mkdir dir="${build}"/>
  22. <mkdir dir="${bin}"/>
  23. </target>
  24. <target name="compile" depends="init"
  25. description="compile the source " >
  26. <!-- Compile the java code from ${src} into ${build} -->
  27. <javac destdir="${build}" debug="true">
  28. <src path="src"/>
  29. </javac>
  30. </target>
  31. <!--this file was created by Eclipse Runnable JAR Export Wizard-->
  32. <!--ANT 1.7 is required -->
  33. <target name="create_run_jar" depends="compile">
  34. <jar destfile="bin/ooc.jar" filesetmanifest="mergewithoutmain">
  35. <manifest>
  36. <attribute name="Built-By" value="${user.name}"/>
  37. <attribute name="Main-Class" value="org.ooc.frontend.CommandLine"/>
  38. <attribute name="Class-Path" value="."/>
  39. <attribute name="Implementation-Version" value="${version-codename}, built on ${date} at ${time}"/>
  40. </manifest>
  41. <fileset dir="${build}"/>
  42. </jar>
  43. </target>
  44. <target name="clean"
  45. description="clean up" >
  46. <!-- Delete the ${build} directory trees -->
  47. <delete dir="${build}"/>
  48. </target>
  49. </project>