Changeset 1296


Ignore:
Timestamp:
Feb 24, 2011, 1:45:29 PM (13 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #290: Add 'download-lib' target to ant buildfile and remove checked in BASE jar file

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

Legend:

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

    r1279 r1296  
    2626  <property name="javac.target" value="1.6" />
    2727  <property name="javac.encoding" value="UTF-8" />
     28  <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"
     31  />
    2832
    2933  <!-- set up classpath for compiling -->
     
    109113  <target
    110114    name="build"
    111     depends="init"
     115    depends="init,checkjar"
    112116    description="Compiles the plugin and put in jar"
    113117    >
     
    131135    </jar>
    132136  </target>
     137 
     138  <target
     139    name="checkjar"
     140    description="Checks that the BASE2WSClient.jar exists."
     141    >
     142    <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>
     146  </target>
     147
     148  <target
     149    name="download-lib"
     150    description="Download BASE2WSClient.jar."
     151    >
     152    <echo>
     153-------------------------------------------------------   
     154NOTE! You may specifiy a different download location by
     155creating the file './build.properties' and
     156setting 'depend.jars' to the URL to download from.
     157-------------------------------------------------------
     158    </echo>
     159    <download-lib file="BASE2WSClient.jar" />
     160  </target>
     161 
     162  <macrodef name="download-lib" description="Download BASE core JAR files">
     163    <attribute name="file" />
     164    <sequential>
     165      <get
     166        dest="lib/@{file}"
     167        src="${depend.jars}/@{file}"
     168        usetimestamp="true"
     169        verbose="true"
     170        ignoreerrors="true"
     171      />
     172    </sequential>
     173  </macrodef>
    133174</project>
  • webservices/net.sf.basedb.examples/trunk/lib

    • Property svn:ignore set to
      BASE2WSClient.jar
Note: See TracChangeset for help on using the changeset viewer.