Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For the purposes of this example the remote system is named "sftpremote.example.com". The files that will be retrieved are in a directory named */data/source/fires" and

Key Concepts

Source Code

pom.xml Project

...

File

This example uses Maven2. There is a* pom.xml* to define the project

No Format
}}}


== SourceCode CodeListing ==
Content of '''{{{src/main/java/gov/noaa/eds/byExample/tryVfstrySimpleVfsSftp/ExtractFromGzipInTarApp.java

*. Be sure to customize the variables near the top of the listing to match your environment if you intend to run this code. The variable to modifiy are host, user, password, remoteDir, filePatternString and localDir.

No Format
/*
 * App.java
 */

...

No Format
java -jar target/tryVfstrySimpleVfsSftp-1.0-SNAPSHOT-jar-with-dependencies.jar

...

No Format

}}}
There should now be data files matching the {{{filePatternString

...