Changeset 1346


Ignore:
Timestamp:
Apr 18, 2011, 2:37:44 PM (10 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #310: Update extension examples to BASE 3

There are no code changes. It is minor changes in packaging, file names, etc.

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

Legend:

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

    • Property svn:ignore
      •  

        old new  
        44.project
        55.classpath
        6 extension-examples.jar
        7 extension-examples*.tar.gz
         6base-examples.jar
         7base-examples*.tar.gz
        88build.properties
  • extensions/net.sf.basedb.examples/trunk/META-INF/extensions.xml

    r1273 r1346  
    99      code example.
    1010    </description>
    11     <version>1.2</version>
     11    <version>1.3pre</version>
     12    <min-base-version>3.0</min-base-version>
     13    <copyright>BASE development team</copyright>
    1214    <url>http://baseplugins.thep.lu.se/wiki/net.sf.basedb.examples.extensions</url>
     15    <email>basedb-users@lists.sourceforge.net</email>
    1316  </about>
    1417  <extension
  • extensions/net.sf.basedb.examples/trunk/README

    r1271 r1346  
    11== Requirements ==
    22
    3  1. BASE 2.17 or later.
     3 1. BASE 3.0 or later.
    44 
    55== Introduction ==
     
    3737
    3838 1. Unpack the tar.gz file to a directory of your choice.
    39  2. Copy the extension-examples.jar to your BASE extensions directory: WEB-INF/extensions.
    40  3. Run the ''Extensions -> Manual scan'' command if you have disabled automatic
    41     installation. Otherwise, just wait a bit and the automatic installation will
    42     find and install the new extensions.
     39 2. Copy the extension-examples.jar to your BASE plug-ins directory as
     40    configured in base.config[plugins.dir] setting.
     41 3. Run the ''Extensions -> Manual scan'' command and click the 'Start'
     42    button. If all goes well several new extensions and more should
     43    now be installed.
    4344 4. If you are logged in, you may have to logout and then login again to see
    4445    the new menu items, or use the ''File -> Reload permissions'' menu.
     
    5960 1. Type `ant download-lib` to automatically download the BASE core JAR file that
    6061    are neeed for compilation. You can also do this manually by copying the
    61     BASE2Core.jar and BASE2Webclient.jar files from the BASE installation directory
    62     (<basedir>/www/WEB-INF/lib/) to the ./lib/compile directory.
     62    base-core-3.0.0.jar and base-webclient-3.0.0.jar files from the BASE installation
     63    directory (<basedir>/www/WEB-INF/lib/) to the ./lib/compile directory.
    6364
    6465 2. Type 'ant' to compile the code and generate the 'extension-examples.jar'
     
    6667    the intructions above.
    6768
    68  3. Use 'ant package' to create a downloadable tar.gz package.
     69 3. Use 'ant package' to create a downloadable tar.gz.
     70 
     71 4. If you create a file called 'build.properties' and enter a the path to the
     72    plug-ins directory under the key 'base.plugins', you can simply type
     73    'ant install' to copy the examples to the BASE plug-ins directory.
  • extensions/net.sf.basedb.examples/trunk/RELEASE

    r1096 r1346  
    1313 2. Update the version number.
    1414   
    15     * In build.xml: <property name="version" value="A.B" />
    16     * In META-INF/extensions.xml: <version>A.B</version>
    17 
     15    In build.xml:
     16      <property name="version" value="A.B" />
     17     
     18    Run `ant update-version`. This should put the version
     19    numbers in a lot of files, including,
     20    META-INF/extensions.xml.
     21   
     22    Check (and update if needed) the README file and
     23    and the wiki pages (see also step 8 and 9 below):
     24   
     25      http://baseplugins.thep.lu.se/wiki/net.sf.basedb.examples
     26      http://baseplugins.thep.lu.se/wiki/PluginDownload
     27   
    1828 3. Make sure that the code compiles and can be packaged.
    1929 
    2030    ant package
    2131   
    22     will create the file 'example-extensions-A.B.tar.gz' in
     32    will create the file 'base-examples-A.B.tar.gz' in
    2333    the project directory.
    2434 
  • extensions/net.sf.basedb.examples/trunk/build.xml

    r1274 r1346  
    99
    1010  <!-- variables used -->
    11   <property name="name" value="extension-examples" />
     11  <property name="name" value="base-examples" />
    1212  <property name="version" value="1.3pre" />
    1313  <property name="src" location="src" description="Location of source files" />
     
    2121  <property name="javac.target" value="1.6" />
    2222  <property name="javac.encoding" value="UTF-8" />
     23  <property name="depend.base-version"
     24    value="3.0.0"
     25    description="The BASE version that this project depends on."
     26  />
    2327  <property name="depend.jars"
    24     value="http://base2.thep.lu.se/base/jars/2.17.0"
    25     description="The location of the BASE core JARs that we depend on"
     28    value="http://base2.thep.lu.se/base/jars/${depend.base-version}"
     29    description="The location of the BASE core JARs that this project depends on."
    2630  />
    2731
     
    118122  <target
    119123    name="checkjar"
    120     description="Checks that the BASE2Core.jar and BASE2Webclient.jar exists."
     124    description="Checks that the base-core-${depend.base-version}.jar and base-webclient-${depend.base-version}.jar exists."
    121125    >
    122126    <available classname="net.sf.basedb.core.Application"
     
    124128    <available classname="net.sf.basedb.clients.web.Base"
    125129      classpathref="classpath" property="base2web" />
    126     <fail unless="base2core" message="Can't find BASE2Core.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." />
    127     <fail unless="base2web" message="Can't find BASE2Webclient.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." />
    128     <echo>Found BASE2Core.jar and BASE2Webclient.jar.</echo>
     130    <fail unless="base2core" message="Can't find base-core-${depend.base-version}.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." />
     131    <fail unless="base2web" message="Can't find base-webclient-${depend.base-version}.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." />
     132    <echo>Found all requried BASE core JAR files.</echo>
    129133  </target>
    130134 
    131135  <target
     136    name="install"
     137    depends="build"
     138    >
     139    <fail unless="base.plugins" message="base.plugins is not set to the path of BASE plug-ins directory." />
     140    <copy todir="${base.plugins}">
     141      <fileset file="${jar.name}" />
     142    </copy>
     143    <echo>Copied '${jar.name}' to '${base.plugins}'.</echo>
     144  </target>
     145 
     146  <target name="update-version">
     147    <echo>Setting version to: ${version}</echo>
     148   
     149    <echo>extensions.xml</echo>
     150    <replaceregexp
     151      file="META-INF/extensions.xml"
     152      match="&lt;version&gt;.*&lt;/version&gt;"
     153      replace="&lt;version&gt;${version}&lt;/version&gt;"
     154      encoding="UTF-8"
     155    />
     156
     157    <echo>Don't forget to commit the changes to the subversion repository!</echo>
     158  </target>
     159
     160 
     161  <target
    132162    name="download-lib"
    133     description="Download BASE2Core.jar, BASE2Webclient.jar and BASE2CorePlugins.jar."
     163    description="Download base-core-3.x.jar and base-webclient-3.x.jar."
    134164    >
    135165    <echo>
     
    140170-------------------------------------------------------
    141171    </echo>
    142     <download-lib file="BASE2Core.jar" />
    143     <download-lib file="BASE2Webclient.jar" />
     172    <download-lib file="base-core-${depend.base-version}.jar" />
     173    <download-lib file="base-webclient-${depend.base-version}.jar" />
    144174  </target>
    145175 
  • extensions/net.sf.basedb.examples/trunk/lib/compile

    • Property svn:ignore
      •  

        old new  
        1 BASE2Core.jar
        2 BASE2Webclient.jar
         1base-*.jar
  • extensions/net.sf.basedb.examples/trunk/lib/compile/readme.txt

    r691 r1346  
    44root directory to download those files automatically.
    55
    6  * BASE2Core.jar
    7  * BASE2Webclient.jar
     6 * base-core-3.0.0.jar
     7 * base-webclient-3.0.0.jar
Note: See TracChangeset for help on using the changeset viewer.