Subversion Repositories wimsdev

Rev

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

  1. <!--
  2.  
  3.     Project buildfile for SharpTools.
  4.  
  5. -->
  6.  
  7. <project name="SharpTools" default="build" basedir=".">
  8.  
  9.     <description>SharpTools: Spreadsheet</description>
  10.  
  11.     <property name="ver" value="1.19"/>
  12.  
  13.     <property name="src" location="."/>
  14.     <!--<property name="extern" location="extern"/>-->
  15.     <property name="build" location="build"/>
  16.     <property name="dist"  location="dist"/>
  17.  
  18.     <path id="project.class.path">
  19.         <!--<pathelement location="${classpath}/rt.jar"/>-->
  20.         <!--<pathelement location="/usr/local/javalib/xerces.jar"/>-->
  21.     </path>
  22.  
  23.     <target name="init">
  24.         <!-- Create the time stamp -->
  25.         <tstamp/>
  26.         <!-- Create the build directory structure used by compile -->
  27.         <mkdir dir="${build}"/>
  28.         <mkdir dir="${dist}"/>
  29.     </target>
  30.  
  31.     <target name="compile" depends="init" description="compile the source">
  32.         <!-- Compile the java code from ${src} into ${build} -->
  33.         <javac srcdir="${src}" destdir="${build}" debug="on"
  34.                         source="1.6" target="1.6" encoding="8859_1">
  35.             <classpath refid="project.class.path" />
  36.         </javac>
  37.     </target>
  38.  
  39.     <target name="build" depends="compile" description="generate the distribution">
  40.         <!-- Create the distribution directory -->
  41.         <mkdir dir="${dist}"/>
  42.  
  43.         <jar jarfile="${dist}/SharpTools.jar" basedir="${build}">
  44.             <manifest>
  45.                 <attribute name="Main-Class" value="SharpTools.SharpTools"/>
  46.             </manifest>
  47.             <fileset dir="." includes="images/*.*" />
  48.             <fileset dir="." includes="lang/*.properties" />
  49.             <fileset dir="." includes="sharptools.ini" />
  50.            
  51.             <!-- embed any other appropriate jar files...
  52.             <zipfileset src="extern/epsgraphics.jar"/>
  53.             -->
  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.