Subversion Repositories wimsdev

Rev

Rev 13456 | 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.     <presetdef name="javac">
  39.         <javac encoding="UTF-8" />
  40.     </presetdef>
  41.     <target name="build" depends="compile" description="generate the distribution">
  42.         <!-- Create the distribution directory -->
  43.         <mkdir dir="${dist}"/>
  44.  
  45.         <jar jarfile="${dist}/SharpTools.jar" basedir="${build}">
  46.             <manifest>
  47.                 <attribute name="Main-Class" value="SharpTools.SharpTools"/>
  48.             </manifest>
  49.             <fileset dir="." includes="images/*.*" />
  50.             <fileset dir="." includes="lang/*.properties" />
  51.             <fileset dir="." includes="sharptools.ini" />
  52.            
  53.             <!-- embed any other appropriate jar files...
  54.             <zipfileset src="extern/epsgraphics.jar"/>
  55.             -->
  56.         </jar>
  57.     </target>
  58.  
  59.     <target name="clean" description="clean up">
  60.         <!-- Delete the ${build} and ${dist} directory trees -->
  61.         <delete dir="${build}"/>
  62.         <delete dir="${dist}"/>
  63.     </target>
  64.  
  65. </project>
  66.