Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Commons Wiki" for 
change notification.

The "VfsExampleShell" page has been changed by BerndEckenfels:
https://wiki.apache.org/commons/VfsExampleShell

Comment:
some VFS Example Shell examples

New page:
= Commons VFS Example Shell =

This page shows some examples to configure the classpath and use the VFS 
Example Shell.

All examples expect to be started from within the Apache Commons VFS source 
directory (refering to build artifacts as well as external dependencies in a 
local maven repository). Linux/Unix commands are marked with `$` prompt, for 
sample Windows command you see a `C:vfs>` prompt.

Enabling the SMB provider from the sandbox:

{{{
$ REP=~/.m2/repository
$ LIBS=$REP/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
$ LIBS=$LIBS:$REP/jcifs/jcifs/0.8.3/jcifs-0.8.3.jar
$ 
LIBS=$LIBS:core/target/commons-vfs2-2.1.jar:examples/target/commons-vfs2-examples-2.1.jar:sandbox/target/commons-VFS2-sandbox-2.1.jar
$ java -cp $LIBS org.apache.commons.vfs2.example.Shell
VFS Shell 2.1
> info
Info about default manager 
"org.apache.commons.vfs2.impl.StandardFileSystemManager":
  Provider Schemes: [res, ram, file, tmp, smb]
   Virtual Schemes: [gz, zip, war, par, ear, jar, sar, ejb3]
}}}

Using the ftp(s) provider:

{{{
C:vfs> set REP=\Users\USERNAME\.m2\repository
C:vfs> set 
LIBS=%REP%\commons-logging\commons-logging\1.2\commons-logging-1.2.jar
C:vfs> set LIBS=%LIBS%;%REP%\commons-net\commons-net\2.2\commons-net-2.2.jar
C:vfs> set 
LIBS=%LIBS%;core\target\commons-vfs2-2.1.jar;examples/target/commons-vfs2-examples-2.1.jar
C:vfs> java -cp $LIBS org.apache.commons.vfs2.example.Shell
VFS Shell 2.1
> info
Info about default manager 
"org.apache.commons.vfs2.impl.StandardFileSystemManager":
  Provider Schemes: [res, ram, ftps, file, ftp, tmp]
   Virtual Schemes: [gz, zip, war, par, ear, jar, sar, ejb3]
> ls ftp://ftp.fau.de/apache/commons/vfs/
Contents of ftp://ftp.fau.de/apache/commons/vfs
HEADER.html
README.html
RELEASE_NOTES.txt
binaries/
source/}}}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to