|
VFS Transport Installation Instructions
Prerequisites
| Pre-Requisite |
Version |
Notes |
JDK |
1.4.x |
$JAVA_HOME environment set
$PATH includes $JAVA_HOME/bin
1.5.x needed for buiding from source |
Mule |
1.3.3 distribution |
will not work with latest snapshots (1.4+) . See Road Map for details. |
Subversion |
any |
only needed for building from source |
Maven |
2.0.5+ |
only needed for building from source |
Winzip/Gzip |
any |
|
Installing the Binary
- Install Mule 1.3.3 to your machine, if not already installed. When done, set your $MULE_HOME environment variable to where you installed Mule, for example c:/mule/mule-1.3.3. Also, add $MULE_HOME/bin to your $PATH.
- Download the VFS Connector zip and unpack it to a directory, say $VFS_DIST. From $VFS_DIST, copy mule-transport-vfs-*.jar and mule-examples-vfs-*.jar to $MULE_HOME/lib/user.
- Copy $VFS_DIST/lib/*.jar directory to $MULE_HOME/lib/user.
- Proceed to Running the VFS Connector Examples.
Installing from Source
- Install Mule 1.3.3 to your machine, if not already installed. When done, set your $MULE_HOME environment variable to where you installed Mule, for example c:/mule/mule-1.3.3. Also, add $MULE_HOME/bin to your $PATH.
- Download Maven 2.0.5 or higher and add the $MAVEN_HOME/bin to your $PATH
- Check out the latest VFS connector code from Subversion at: https://svn.codehaus.org/mule-contrib/transports/vfs
For this example, let's say your Subversion workspace is $WS.
- cd to $WS
- Run "mvn -Dmaven.test.skip=true install" at the command prompt. This builds the VFS connector. Running unit tests is not recommended unless you update the $WS/src/test/resources/mule-vfs-test-sftp-config.xml with your sftp service settings.
- Deploy the VFS connector by copying $WS/target/mule-transports-vfs-*.jar to $MULE_HOME/lib/user.
- cd to $WS/examples, and run "mvn install" at the command prompt. This builds the VFS connector examples.
- Deploy the VFS connector examples by copying $WS/examples/target/mule-examples-vfs-*.jar to $MULE_HOME/lib/user.
- There are 3rd party libraries needed by the VFS library. Copy the jars in the "VFS Library Dependencies" section below to $MULE_HOME/lib/user
- Proceed to Running the VFS Connector Examples.
Note on VFS Library Dependencies
The following libraries are needed by VFS. They are copied to you M2_REPO location during the build:
$M2_REPO/com/jcraft/jsch/0.1.25/jsch-0.1.25.jar
$M2_REPO/commons-vfs/commons-vfs/1.0/commons-vfs-1.0.jar
$M2_REPO/jcifs/jcifs/0.8.3/jcifs-0.8.3.jar
$M2_REPO/oro/oro/2.0.7/oro-2.0.7.jar
$M2_REPO/slide/webdavlib/2.0/webdavlib-2.0.jar
Note: The $M2_REPO location on Linux/Unix the location is ~/.m2 by default. On Windows it's usually c:/Documents and Settings/<user>/.m2.
|
|
|