Subversion Repositories wimsdev

Rev

Rev 13456 | 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 ChemInput.jar.
  6.         to build ,type:
  7.         ant -v
  8.         to clean , type
  9.         ant -v clean
  10.        
  11. -->
  12.  
  13.  
  14. <project name="ChemInput" default="jar" basedir=".">
  15.  
  16.         <description>ChemInput 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.         <presetdef name="javac">
  27.             <javac encoding="UTF-8" />
  28.         </presetdef>
  29.  
  30.         <!-- Compiles the classes.  -->
  31.         <target name="compile" description="Compile the source">
  32.                 <delete includeEmptyDirs="true" quiet="true" dir="${build}"/>
  33.                 <mkdir dir="${build}"/>
  34.                 <javac srcdir="${source-dir}" destdir="${build}"
  35.                     deprecation="yes" debug="${debug}" debuglevel="${debuglevel}"
  36.                     source="${java-level}" target="${java-level}"/>
  37.  
  38.         </target>
  39.  
  40.  
  41.         <!-- Creates the jar file. -->
  42.  
  43.         <target name="jar" depends="compile" description="Create ChemInput jar">
  44.                 <mkdir dir="${dist}"/> 
  45.                 <jar destfile="${dist}/ChemInput.jar">
  46.                         <fileset dir="${build}"/>
  47.                         <manifest>
  48.                                 <attribute name="Specification-Title" value="ChemInput"/>
  49.                                 <attribute name="Specification-Version" value="${version}"/>
  50.                                 <attribute name="Implementation-Title" value="ChemInput"/>
  51.                                 <attribute name="Implementation-Version" value="${version}"/>
  52.                                 <section name="ChemInput">
  53.                                         <attribute name="Specification-Title" value="ChemInput"/>
  54.                                         <attribute name="Specification-Version" value="${version}"/>
  55.                                         <attribute name="Implementation-Title" value="ChemInput"/>
  56.                                         <attribute name="Implementation-Version" value="${version}"/>
  57.                                 </section>
  58.                         </manifest>
  59.  
  60.                 </jar>
  61.         </target>
  62.         <target name="clean" description="clean up">
  63.         <!-- Delete the ${build} and ${dist} directory trees -->
  64.             <delete dir="./build"/>
  65.             <delete dir="./dist"/>
  66.         </target>
  67.  
  68.  
  69. </project>
  70.