Advertisement
Guest User

Untitled

a guest
Sep 16th, 2012
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. <project name="Proj0" default="compile" basedir=".">
  2.  
  3. <description>
  4. Project 0 Build File
  5. </description>
  6.  
  7. <!-- global properties for this build file -->
  8. <property name="source.dir" location="src"/>
  9. <property name="build.dir" location="bin"/>
  10. <property name="doc.dir" location="doc"/>
  11. <property name="Proj0.class" value="package.names.Proj0"/>
  12.  
  13. <!-- set up some directories used by this project -->
  14. <target name="init" description="setup project directories">
  15. <mkdir dir="${build.dir}"/>
  16. <mkdir dir="${doc.dir}"/>
  17. </target>
  18.  
  19. <!-- Compile the java code in ${src.dir} into ${build.dir} -->
  20. <target name="compile" depends="init" description="compile java sources">
  21. <javac srcdir="${source.dir}" destdir="${build.dir}"/>
  22. </target>
  23.  
  24. <!-- execute the program with the fully qualified name in ${build.dir} -->
  25. <target name="run" description="run the project">
  26. <java dir="${build.dir}" classname="${Proj0.class}" fork="yes">
  27. <arg line="${args}"/>
  28. </java>
  29. </target>
  30.  
  31. <!-- Delete the build & doc directories and Emacs backup (*~) files -->
  32. <target name="clean" description="tidy up the workspace">
  33. <delete dir="${build.dir}"/>
  34. <delete dir="${doc.dir}"/>
  35. <delete>
  36. <fileset defaultexcludes="no" dir="${source.dir}" includes="**/*~"/>
  37. </delete>
  38. </target>
  39.  
  40. <!-- Generate javadocs for current project into ${doc.dir} -->
  41. <target name="doc" depends="init" description="generate documentation">
  42. <javadoc sourcepath="${source.dir}" destdir="${doc.dir}"/>
  43. </target>
  44.  
  45. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement