Ignore:
Timestamp:
Mar 20, 2008, 8:27:01 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

References #103: Create example extensions

Made build process simpler.

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

Legend:

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

    • Property svn:ignore set to
      build
      dist
      package
      .project
      .classpath
  • extensions/net.sf.basedb.examples/trunk/README

    r636 r638  
    1717
    1818 1. Unpack the tar.gz file to a directory of your choice.
    19  2. Copy the extension-examples.jar to your BASE extensions directory, WEB-INF/extensions.
     19 2. Copy the extension-examples.jar to your BASE extensions directory: WEB-INF/extensions.
    2020 3. Run the 'Extensions -> Manual scan' command if you have disabled automatic
    2121    installation. Otherwise, just wait a bit and the automatic installation will
     
    3131 1. Ant 1.6
    3232 2. Java 1.6
    33     NOTE! Compiling may work with Java 1.5 but this is not officially supported.
    34 
    3533
    3634Follow these instructions:
     
    3937    directory (<basedir>/www/WEB-INF/lib/) to the ./lib/compile directory.
    4038
    41  2. Type 'ant' to compile the code and put everything you need into
    42     the ./dist directory.
     39 2. Type 'ant' to compile the code and generate the 'extension-example.jar' file
     40    in the project directory.
    4341
    44  3. Use 'ant package' to create a downloadable tar.gz package in the ./package
    45     directory.
     42 3. Use 'ant package' to create a downloadable tar.gz package.
  • extensions/net.sf.basedb.examples/trunk/RELEASE

    r636 r638  
    1919    ant package
    2020   
    21     will create the file 'example-extensions-A.B.tar.gz' in 
    22     the 'package' subdirectory.
     21    will create the file 'example-extensions-A.B.tar.gz' in
     22    the project directory.
    2323 
    2424 4. Make sure that the installation of the extensions works
     
    3636    http://baseplugins.thep.lu.se/wiki/net.sf.basedb.extensions
    3737
    38  8. Edit the http://baseplugins.thep.lu.se/wiki/net.sf.basedb.extensions
     38 8. Edit the http://baseplugins.thep.lu.se/wiki/net.sf.basedb.examples.extensions
    3939    page:
    4040   
    4141    * Add a new entry to the Download table
    42     * Change the INSTALL and README links to point to
    43       the tagged release
     42    * Change the README link to point to the tagged release. Use
     43      the following wiki code:
     44      [source:/extensions/net.sf.basedb.examples/tags/A.B/README README]
    4445
    4546 9. Create a new milestone: 'Extensions examples vA.B+1'
  • extensions/net.sf.basedb.examples/trunk/build.xml

    r637 r638  
    22<project
    33  name="ExtensionExamples"
    4   default="dist"
     4  default="build"
    55  basedir=".">
    66
     
    1111  <property name="build" location="build" description="Location of compiled files" />
    1212  <property name="dist" location="dist" description="Directory where distribution should be created" />
    13   <property name="package" location="package" description="Directory where packaged distribution files are created"/>
     13  <property name="jar.name" value="${name}.jar" description="Name of JAR file with the extensions." />
     14  <property name="tar.prefix" value="${name}-${version}" description="Prefix of .tar.gz file for download." />
     15  <property name="tar.name" value="${tar.prefix}.tar.gz" description="Full name of .tar.gz file for download." />
    1416  <property name="javac.arg" value="-Xlint:unchecked" />
    1517  <property name="javac.source" value="1.5" />
     
    3335      <fileset dir="${build}" defaultexcludes="no" />
    3436      <fileset dir="${dist}" defaultexcludes="no" />
    35       <fileset dir="${package}" defaultexcludes="no" />
     37      <fileset file="${jar.name}" />
     38      <fileset file="${tar.name}" />
    3639    </delete>
    3740  </target>
     
    4548      <fileset dir="." includes="src/**,resources/**,META-INF/**" />
    4649      <fileset dir="." includes="lib/compile/readme.txt" />
     50      <fileset file="${jar}" />
    4751    </copy>
    4852  </target>
     
    5357    description="Create binary distribution package"
    5458    >
    55     <property name="tar.prefix" value="${name}-${version}" />
    56     <mkdir dir="${package}" />
    5759    <tar
    58       destfile="${package}/${tar.prefix}.tar.gz"
     60      destfile="${tar.name}"
    5961      longfile="gnu"
    6062      compression="gzip"
     
    8385    description="Compiles the plugin and put in jar"
    8486    >
    85     <property name="jar" value="${name}.jar" />
    8687    <mkdir dir="${build}" />
    8788    <javac
     
    101102    </copy>
    102103    <jar
    103       jarfile="${dist}/${jar}"
     104      jarfile="${jar.name}"
    104105      basedir="${build}"
    105106      >
  • extensions/net.sf.basedb.examples/trunk/lib/compile

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