Subversion Repositories wimsdev

Rev

Rev 6293 | 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 VrijeInvulVeld.jar.
  6.         to build ,type:
  7.         ant -v
  8.         to clean , type
  9.         ant -v clean
  10.        
  11. -->
  12.  
  13.  
  14. <project name="VrijeInvulVeld" default="jar" basedir=".">
  15.  
  16.         <description>VrijeInvulVeld build file</description>
  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="false"/>
  23.         <property name="debuglevel"       value="lines,var,source"/>
  24.         <property name="java-level"       value="1.6"/>
  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.  
  34.         </target>
  35.  
  36.  
  37.         <!-- Creates the jar file. -->
  38.  
  39.         <target name="jar" depends="compile" description="Create VrijeInvulVeld jar">
  40.                 <mkdir dir="${dist}"/> 
  41.                 <jar destfile="${dist}/VrijeInvulVeld.jar">
  42.                         <fileset dir="${build}"/>
  43.                         <manifest>
  44.                                 <attribute name="Specification-Title" value="VrijeInvulVeld"/>
  45.                                 <attribute name="Specification-Version" value="${version}"/>
  46.                                 <attribute name="Implementation-Title" value="VrijeInvulVeld"/>
  47.                                 <attribute name="Implementation-Version" value="${version}"/>
  48.                                 <section name="VrijeInvulVeld">
  49.                                         <attribute name="Specification-Title" value="VrijeInvulVeld"/>
  50.                                         <attribute name="Specification-Version" value="${version}"/>
  51.                                         <attribute name="Implementation-Title" value="VrijeInvulVeld"/>
  52.                                         <attribute name="Implementation-Version" value="${version}"/>
  53.                                 </section>
  54.                         </manifest>
  55.  
  56.                 </jar>
  57.         </target>
  58.         <target name="clean" description="clean up">
  59.         <!-- Delete the ${build} and ${dist} directory trees -->
  60.             <delete dir="./build"/>
  61.             <delete dir="./dist"/>
  62.         </target>
  63.  
  64.  
  65. </project>
  66.