| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Version 1.0 | Home | SourceForge | Forums | Contact | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
UsageWeb-Harvest can be used in three modes: as standalone GUI application (typical for development and testing phase), as command line utility, and from the Java code. The only requirement is Java 2 runtime environment, version 1.4 or higher. Development IDE usage
Web-Harvest IDE eases creating and testing XML configurations. It represents
multiple document interface (MDI) with auto-completion enabled XML editor,
hierarchical view of configuration processors, property-viewer of each executing
processor and log area.
To start the IDE, simply double-click the
webharvest_all_xx.jar or
start if from command line as
java -jar webharvest_all_xx.jarwithout any additional parameters. Bellow is an screenshot of the IDE:
Command line usage
Syntax for command line use is the following:
java -jar webharvest_all_XX.jar [-h] config=<path> [workdir=<path>] [debug=yes|no]
[proxyhost=<proxy server> [proxyport=<proxy server port>]]
[proxyuser=<proxy username> [proxypassword=<proxy password>]]
[proxynthost=<NT host name>]
[proxyntdomain=<NT domain name>]
[loglevel=<level>]
[logpropsfile=<path>]
[#var1=<value1> [#var2=<value2>...]]
where the parameters have the following meaning:
Java code usageFirst, it is required to include few Web-Harvest classes at the beginning of the Java file:
In the code create instance of
Optionally add custom user object instances to the variable context:
Optionally set debugging (by default it isn't):
Optionally specify proxy server:
Optionally specify proxy server details:
myNTHost and myNTDomain can be null and are used only for NTLM authentication scheme.
Start configuration execution:
Here is the full example of Web-Harvest usage from Java code:
Check Web-Harvest API for more details about code usage. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Copyright © 2006 by vnikic at users.sourceforge.net |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||