Ignore:
Timestamp:
Oct 18, 2011, 2:50:36 PM (10 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #327: Update web service examples to BASE 3

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

Legend:

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

    • Property svn:ignore
      •  

        old new  
        33build
        44dist
         5build.properties
         6.settings
  • webservices/net.sf.basedb.examples/trunk/build.xml

    r1296 r1407  
    55  basedir=".">
    66 
     7  <!--create this file if you need to override values from properties below -->
     8  <property file="build.properties" />
     9
    710  <!-- settings for the BASE webservices server -->
    811  <!-- modify the values as needed              -->
     
    1518  <!-- variables used -->
    1619  <property name="name" value="example-webservices" />
    17   <property name="version" value="2.6" />
     20  <property name="version" value="3.0-beta" />
    1821  <property name="src" location="src" description="Location of source files" />
    1922  <property name="build" location="build" description="Location of compiled files" />
     
    2629  <property name="javac.target" value="1.6" />
    2730  <property name="javac.encoding" value="UTF-8" />
     31  <property name="depend.base-version"
     32    value="3.0.0"
     33    description="The BASE version that this project depends on."
     34  />
    2835  <property name="depend.jars"
    29     value="http://base2.thep.lu.se/base/jars/2.17.0"
    30     description="The location of the BASE core JARs that we depend on"
     36    value="http://base2.thep.lu.se/base/jars/${depend.base-version}"
     37    description="The location of the BASE core JARs that this project depends on."
    3138  />
    3239
     
    138145  <target
    139146    name="checkjar"
    140     description="Checks that the BASE2WSClient.jar exists."
     147    description="Checks that the BASE JAR files exists."
    141148    >
    142149    <available classname="net.sf.basedb.ws.client.SessionClient"
    143       classpathref="classpath" property="base2wsclient" />
    144     <fail unless="base2wsclient" message="Can't find BASE2WSClient.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." />
    145     <echo>Found BASE2WSClient.jar.</echo>
     150      classpathref="classpath" property="base-wsclient" />
     151    <fail unless="base-wsclient" message="Can't find base-webservices-client-${depend.base-version}.jar in ./lib. Try 'ant download-lib' to download the missing file." />
     152    <echo>Found base-webservices-client-${depend.base-version}.jar</echo>
    146153  </target>
    147154
    148155  <target
    149156    name="download-lib"
    150     description="Download BASE2WSClient.jar."
     157    description="Download BASE JAR Files"
    151158    >
    152159    <echo>
     
    157164-------------------------------------------------------
    158165    </echo>
    159     <download-lib file="BASE2WSClient.jar" />
     166    <download-lib file="base-webservices-client-${depend.base-version}.jar" />
    160167  </target>
    161168 
    162   <macrodef name="download-lib" description="Download BASE core JAR files">
     169  <macrodef name="download-lib" description="Download BASE JAR files">
    163170    <attribute name="file" />
    164171    <sequential>
Note: See TracChangeset for help on using the changeset viewer.