Ignore:
Timestamp:
May 12, 2008, 1:54:21 PM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #103: Create example extensions

Location:
extensions/net.sf.basedb.examples/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.examples/trunk

    • Property svn:ignore
      •  

        old new  
        66extension-examples.jar
        77extension-examples*.tar.gz
         8build.properties
  • extensions/net.sf.basedb.examples/trunk/build.xml

    r638 r691  
    55  basedir=".">
    66
     7  <!--create this file if you need to override values from properties below -->
     8  <property file="build.properties" />
     9
    710  <!-- variables used -->
    811  <property name="name" value="extension-examples" />
    9   <property name="version" value="1.0" />
     12  <property name="version" value="1.0pre" />
    1013  <property name="src" location="src" description="Location of source files" />
    1114  <property name="build" location="build" description="Location of compiled files" />
     
    1821  <property name="javac.target" value="1.5" />
    1922  <property name="javac.encoding" value="ISO-8859-1" />
     23  <property name="depend.jars"
     24    value="http://base2.thep.lu.se/base/jars/2.7.0"
     25    description="The location of the BASE core JARs that we depend on"
     26  />
    2027
    2128  <!-- set up classpath for compiling -->
     
    116123    <available classname="net.sf.basedb.clients.web.Base"
    117124      classpathref="classpath" property="base2web" />
    118     <fail unless="base2core" message="Can't find BASE2Core.jar in ./lib/compile" />
    119     <fail unless="base2web" message="Can't find BASE2Webclient.jar in ./lib/compile" />
     125    <fail unless="base2core" message="Can't find BASE2Core.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." />
     126    <fail unless="base2web" message="Can't find BASE2Webclient.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." />
    120127    <echo>Found BASE2Core.jar and BASE2Webclient.jar.</echo>
    121128  </target>
     129 
     130  <target
     131    name="download-lib"
     132    description="Download BASE2Core.jar, BASE2Webclient.jar and BASE2CorePlugins.jar."
     133    >
     134    <echo>
     135-------------------------------------------------------   
     136NOTE! You may specifiy a different download location by
     137creating the file './build.properties' and
     138setting 'depend.jars' to the URL to download from.
     139-------------------------------------------------------
     140    </echo>
     141    <download-lib file="BASE2Core.jar" />
     142    <download-lib file="BASE2Webclient.jar" />
     143  </target>
     144 
     145  <macrodef name="download-lib" description="Download BASE core JAR files">
     146    <attribute name="file" />
     147    <sequential>
     148      <get
     149        dest="lib/compile/@{file}"
     150        src="${depend.jars}/@{file}"
     151        usetimestamp="true"
     152        verbose="true"
     153        ignoreerrors="true"
     154      />
     155    </sequential>
     156  </macrodef>
    122157</project>
Note: See TracChangeset for help on using the changeset viewer.