Subversion Repositories wimsdev

Rev

Rev 13456 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2.  
  3. <!--
  4.  
  5.         This is the Ant build script for InvulGrid.jar.
  6.         Just type:
  7.         ant -v
  8.         ant -v clean
  9.        
  10. -->
  11.  
  12.  
  13. <project name="InvulGrid" default="make-jar" basedir=".">
  14.  
  15.         <description>InvulGrid build file</description>
  16.  
  17.         <!-- Set global properties for this build. -->
  18.         <property name="version"          value="0.1"/>
  19.         <property name="source-dir"       location="./src"/>
  20.         <property name="build"        location="./build"/>
  21.         <property name="dist"         location="./dist"/>
  22.         <property name="debug"            value="true"/>
  23.         <property name="debuglevel"       value="lines,var,source"/>
  24.         <property name="java-level"       value="1.4"/>
  25.        
  26.         <!-- Compiles the classes.  -->
  27.         <target name="compile" description="Compile the source">
  28.                 <delete includeEmptyDirs="true" quiet="true" dir="${build}"/>
  29.                 <mkdir dir="${build}"/>
  30.                 <javac srcdir="${source-dir}" destdir="${build}"
  31.                         deprecation="yes" debug="${debug}" debuglevel="${debuglevel}"
  32.                         source="${java-level}" target="${java-level}"/>
  33.         </target>
  34.  
  35.  
  36.         <!-- Creates the jar file. -->
  37.  
  38.         <target name="make-jar" depends="compile" description="Create InvulGrid jar">
  39.                 <mkdir dir="${dist}"/> 
  40.                 <jar destfile="${dist}/InvulGrid.jar">
  41.                         <fileset dir="${build}"/>
  42.                         <manifest>
  43.                                 <attribute name="Specification-Title" value="InvulGrid"/>
  44.                                 <attribute name="Specification-Version" value="${version}"/>
  45.                                 <attribute name="Implementation-Title" value="InvulGrid"/>
  46.                                 <attribute name="Implementation-Version" value="${version}"/>
  47.                                 <section name="InvulGrid">
  48.                                         <attribute name="Specification-Title" value="InvulGrid"/>
  49.                                         <attribute name="Specification-Version" value="${version}"/>
  50.                                         <attribute name="Implementation-Title" value="InvulGrid"/>
  51.                                         <attribute name="Implementation-Version" value="${version}"/>
  52.                                 </section>
  53.                         </manifest>
  54.                 </jar>
  55.         </target>
  56.  
  57.         <target name="clean" description="clean up">
  58.             <!-- Delete the ${build} and ${dist} directory trees -->
  59.             <delete dir="./build"/>
  60.             <delete dir="./dist"/>
  61.         </target>
  62.  
  63. </project>
  64.