Subversion Repositories wimsdev

Rev

Rev 4684 | 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 Input.jar.
  6.         to build ,type:
  7.         ant -v
  8.         to clean , type
  9.         ant -v clean
  10.        
  11. -->
  12.  
  13.  
  14. <project name="Input" default="jar" basedir=".">
  15.  
  16.         <description>Input build file</description>
  17.         <!-- Set global properties for this build. -->
  18.         <property name="version"          value="1.0"/>
  19.         <property name="source-dir"       location="src"/>
  20.         <property name="build"        location="build"/>
  21.         <property name="dist"         location="dist"/>
  22.         <property name="java-level"       value="1.4"/>
  23.         <!-- used for install of symlink & jar -->
  24.         <property name="WIMS_HOME"  value="../../../.."/>
  25.         <property name="APPLET_DIR" value="public_html/java"/>
  26.        
  27.         <!-- Compiles the classes.  -->
  28.         <target name="compile" description="Compile the source">
  29.                 <delete includeEmptyDirs="true" quiet="true" dir="${build}"/>
  30.                 <mkdir dir="${build}"/>
  31.                 <javac srcdir="${source-dir}" destdir="${build}" source="${java-level}" target="${java-level}"/>
  32.         </target>
  33.  
  34.  
  35.         <!-- Creates the jar file. -->
  36.  
  37.         <target name="jar" depends="compile" description="Create Input jar">
  38.                 <mkdir dir="${dist}"/> 
  39.                 <jar destfile="${dist}/input.jar">
  40.                         <fileset dir="${build}"/>
  41.                         <manifest>
  42.                                 <attribute name="Specification-Title" value="input"/>
  43.                                 <attribute name="Specification-Version" value="${version}"/>
  44.                                 <attribute name="Implementation-Title" value="input"/>
  45.                                 <attribute name="Implementation-Version" value="${version}"/>
  46.                                 <section name="Input">
  47.                                         <attribute name="Specification-Title" value="input"/>
  48.                                         <attribute name="Specification-Version" value="${version}"/>
  49.                                         <attribute name="Implementation-Title" value="Input"/>
  50.                                         <attribute name="Implementation-Version" value="${version}"/>
  51.                                 </section>
  52.                         </manifest>
  53.                 </jar>
  54.         </target>
  55.         <target name="clean" description="clean up">
  56.         <!-- Delete the ${build} and ${dist} directory trees -->
  57.             <delete dir="./build"/>
  58.             <delete dir="./dist"/>
  59.         </target>
  60.  
  61.  
  62. </project>
  63.  
  64.