Changeset 691


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

Fixes #103: Create example extensions

Location:
extensions/net.sf.basedb.examples/trunk
Files:
5 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/README

    r683 r691  
    3939Follow these instructions:
    4040
    41  1. Copy the BASE2Core.jar and BASE2Webclient.jar from the BASE installation
    42     directory (<basedir>/www/WEB-INF/lib/) to the ./lib/compile directory.
    43 
    44  2. Type 'ant' to compile the code and generate the 'extension-example.jar' file
     41 1. Type `ant download-lib` to automatically download the BASE core JAR file that
     42    are neeed for compilation. You can also do this manually by copying the
     43    BASE2Core.jar and BASE2Webclient.jar files from the BASE installation directory
     44    (<basedir>/www/WEB-INF/lib/) to the ./lib/compile directory.
     45 
     46 2. Type 'ant' to compile the code and generate the 'extension-examples.jar' file
    4547    in the project directory.
    4648
  • extensions/net.sf.basedb.examples/trunk/RELEASE

    r638 r691  
    5454     
    5555    Commit the change to subversion:
     56   
     57    svn commit -m "Preparing for future release A.B+1"
    5658     
    57     'Preparing for future release A.B+1'.
    58      
  • 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>
  • extensions/net.sf.basedb.examples/trunk/lib/compile/readme.txt

    r636 r691  
    1 NOTE!
     1NOTE! Before compiling this code, you need to place a
     2copy of the following files in this directory. You may
     3issue the command 'ant download-lib' from the project
     4root directory to download those files automatically.
    25
    3 Before compiling this code, you need to put a copy of the
    4 BASE2Core.jar in this directory.
     6 * BASE2Core.jar
     7 * BASE2Webclient.jar
Note: See TracChangeset for help on using the changeset viewer.