Changeset 1382


Ignore:
Timestamp:
Aug 19, 2011, 3:39:57 PM (10 years ago)
Author:
Martin Svensson
Message:

Fixes #313 Updates required for BASE 3 support

Location:
extensions/net.sf.basedb.ftp/trunk
Files:
1 added
1 deleted
5 edited
7 copied

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.ftp/trunk/META-INF/MANIFEST.MF

    r1256 r1382  
    11Manifest-Version: 1.0
    2 Class-Path: lib/ftpserver/ftplet-api-1.0.5.jar
    3  lib/ftpserver/ftpserver-core-1.0.5.jar
    4  lib/ftpserver/mina-core-2.0.0-RC1.jar
    5  lib/ftpserver/spring-core-2.5.5.jar
    6  lib/ftpserver/spring-beans-2.5.5.jar
    7  lib/ftpserver/spring-context-2.5.5.jar
    8  lib/ftpserver/aopalliance-1.0.jar
     2Class-Path: lib/ftplet-api-1.0.5.jar
     3 lib/ftpserver-core-1.0.5.jar
     4 lib/mina-core-2.0.0-RC1.jar
     5 lib/spring-core-2.5.5.jar
     6 lib/spring-beans-2.5.5.jar
     7 lib/spring-context-2.5.5.jar
     8 lib/aopalliance-1.0.jar
  • extensions/net.sf.basedb.ftp/trunk/META-INF/extensions.xml

    r1381 r1382  
    88  Available at http://baseplugins.thep.lu.se/
    99  BASE main site: http://base.thep.lu.se/
    10   -----------------------------------------------------------
     10 
    1111 
    1212  This is free software; you can redistribute it and/or
  • extensions/net.sf.basedb.ftp/trunk/README

    r1225 r1382  
    11== Requirements ==
    22
    3  1. BASE 2.16.0 or later.
     3 1. BASE 3.0 or later.
    44 
    55== Introduction ==
     
    77This package is an extension package to BASE that installs a small FTP
    88server as part of the web server. It uses the Apache FTP Server library
    9 for the actual handling of the FTP protcol.
     9for the actual handling of the FTP protocol.
    1010
    1111 * The homepage for this extension:
     
    2323    SSL-enabled configuration. For more information about configuration
    2424    options see: http://mina.apache.org/ftpserver/documentation.html 
    25  5. Copy the `base-ftpserver.jar` file and the `lib` directory, including sub-
    26     directories and files, to your BASE extensions directory, `WEB-INF/extensions`.
    27  6. Run the `Extensions -> Manual scan` command to install the extension. If you
    28     have enabled automatic installation, just sit back and wait for it to find
    29     the FTP server extension.
    30  7. The FTP Server should now be running, but it only allows the root user to
     25 5. Copy the 'base-ftpserver.jar' file to your BASE plug-ins directory.
     26  Look in your 'base.config' file if you don't know where this is.
     27 6. Go to 'Administrate->Plug-ins & Extensions->Overview' page.
     28 7. Run the installation wizard and select to install 'base-ftpserver.jar'.
     29 8. The FTP Server should now be running, but it only allows the root user to
    3130    login. To enable other users to login you have to start an FTP client, connect
    3231    to your BASE FTP server and login as root. This will register the FTP server
    3332    as a new client application that is shared to `Everyone`. To limit which users
    34     that can access the FTP server go to `Adminstrate -> Clients` and change the
     33    that can access the FTP server go to `Administrate -> Clients` and change the
    3534    sharing options for the FTP Server.
    36  8. Done.
     35 9. Done.
    3736
    3837== Known issues ==
     
    4140   FTP clients since that is normally not allowed. The result for certain
    4241   operations is undefined for files and directories that has the same name.
    43  * BASE 2.16 introduced an option to register files as a link to an external URL.
    44    Such files-will show up as read-only in the FTP server. If the file size of an
    45    external file is not known it is shown as 0 in the FTP server.
     42 * BASE-files that are a link to an external URL will show up as read-only in
     43   the FTP-server. If the file size of an external file is not known it is
     44   shown as 0 in the FTP server.
    4645 
    4746== Tips and tricks ==
     
    6665 2. Type `ant download-lib` to automatically download the BASE core JAR file that
    6766    are neeed for compilation. You can also do this manually by copying the
    68     BASE2Core.jar and BASE2Webclient.jar from the BASE installation directory
     67    base-core-3.0.0.jar and base-webclient-3.0.0.jar from the BASE installation directory
    6968    (`<basedir>/www/WEB-INF/lib/`) to the `./lib/compile` directory.
    7069
  • extensions/net.sf.basedb.ftp/trunk/build.xml

    r1381 r1382  
    4545  <property name="javac.target" value="1.6" />
    4646  <property name="javac.encoding" value="UTF-8" />
    47   <property name="depend.jars" value="http://base2.thep.lu.se/base/jars/2.16.0" />
     47  <property name="depend.jars.directory" value="http://base2.thep.lu.se/base/jars/" />
     48  <property name="depend.jars.core" value="base-core-3.0.0.jar" />
     49  <property name="depend.jars.webclient" value="base-webclient-3.0.0.jar" />
    4850
    4951  <!-- set up classpath for compiling -->
    5052  <path id="classpath">
    5153    <fileset dir="lib">
     54      <include name="**/*.jar" />
     55    </fileset>
     56    <fileset dir="META-INF/lib">
    5257      <include name="**/*.jar" />
    5358    </fileset>
     
    8085        prefix="${tar.prefix}"
    8186        preserveLeadingSlashes="true"
    82         includes="${jar.name},README,LICENSE*,ftp-config.xml,lib/ftpserver/*"
     87        includes="${jar.name},README,LICENSE*,ftp-config.xml"
    8388      />
    8489    </tar>
     
    9095    description="Creates the extension JAR file"
    9196    >
     97   
    9298    <jar
    9399      jarfile="${jar.name}"
    94100      manifest="META-INF/MANIFEST.MF"
    95       >
     101      >     
    96102      <fileset dir="${build}" />
    97103      <fileset dir="." includes="META-INF/**" />
     
    134140  <target
    135141    name="checkjar"
    136     description="Checks that the BASE2Core.jar and BASE2CorePlugins.jar exists."
     142    description="Checks that the ${depend.jars.core} and ${depend.jars.webclient} exists."
    137143    >
    138144    <available classname="net.sf.basedb.core.Application"
    139       classpathref="classpath" property="base2core" />
     145      classpathref="classpath" property="basecore" />
    140146    <available classname="net.sf.basedb.clients.web.extensions.menu.FixedMenuItemFactory"
    141       classpathref="classpath" property="base2web" />
    142     <fail unless="base2core" message="Can't find BASE2Core.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." />
    143     <fail unless="base2web" message="Can't find BASE2Webclient.jar in ./lib/compile. Try 'ant download-lib' to download the missing file." />
    144     <echo>Found BASE2Core.jar and BASE2Webclient.jar.</echo>
     147      classpathref="classpath" property="baseweb" />
     148    <fail unless="basecore" message="Can't find ${depend.jars.core} in ./lib/compile. Try 'ant download-lib' to download the missing file." />
     149    <fail unless="baseweb" message="Can't find ${depend.jars.webclient} in ./lib/compile. Try 'ant download-lib' to download the missing file." />
     150    <echo>Found ${depend.jars.core} and ${depend.jars.webclient}.</echo>
    145151  </target>
    146152 
    147153  <target
    148154    name="download-lib"
    149     description="Download BASE2Core.jar and BASE2Webclient.jar."
     155    description="Download ${depend.jars.core} and ${depend.jars.webclient}"
    150156    >
    151157    <echo>
     
    156162-------------------------------------------------------
    157163    </echo>
    158     <download-lib file="BASE2Core.jar" />
    159     <download-lib file="BASE2Webclient.jar" />
     164    <download-lib file="${depend.jars.core}" />
     165    <download-lib file="${depend.jars.webclient}" />
    160166  </target>
    161167 
     
    165171      <get
    166172        dest="lib/compile/@{file}"
    167         src="${depend.jars}/@{file}"
     173        src="${depend.jars.directory}/@{file}"
    168174        usetimestamp="true"
    169175        verbose="true"
  • extensions/net.sf.basedb.ftp/trunk/lib/compile/readme.txt

    r714 r1382  
    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.