commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Commons Wiki] Update of "SimpleSftpFileDownload" by KenTanaka
Date Tue, 25 Mar 2008 19:32:14 GMT
Dear Wiki user,

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

The following page has been changed by KenTanaka:

The comment on the change is:
Initial content

New page:
Back to the VfsCookbook

= Overview =
This is a basic example to use VFS to retrieve files from a remote system using the SFTP protocol.
Files matching a specified regular expression are retrieved.

= Example Configuration =
For the purposes of this example the remote system is named "''''''".
The files that will be retrieved are in a directory named '''/data/source/fires" and 

= Key Concepts =

= pom.xml Project file =
This example uses Maven2. There is a '''{{{pom.xml}}}''' to define the project


= Source Code =
Content of '''{{{src/main/java/gov/noaa/eds/tryVfs/}}}'''

= Compiling =
Compile the source code with
mvn assembly:assembly
This will create an executable jar file in the standard {{{target}}} directory.
= Running =
Use a command like this to run the example
java -jar target/tryVfs-1.0-SNAPSHOT-jar-with-dependencies.jar

== Sample Output ==

There should now be data files matching the {{{filePatternString}}} in the local machine directory

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message