The Downloader can be run in two ways:
- Running the Downloader from the command line:
- From the EJBServer folder call
./components/DynamicEvidence/script/downloadDynamicEvidenceMetadata.bat
file passing all input parameters using the -D option, for example:
./components/DynamicEvidence/script/downloadDynamicEvidenceMetadata
-Dlocation="DirectoryLocation" -DevidenceType="etLogicalName"
-DeffectiveDate="etvEffectiveDate"
- Alternatively from the 'EJBServer' folder call
components/DynamicEvidence/script/downloadDynamicEvidenceMetadata.xml
ant script using the -D option to pass input parameters, for
example:
ant -f
./components/DynamicEvidence/script/downloadDynamicEvidenceMetadata.xml
-Dlocation="DirectoryLocation" -DevidenceType="etLogicalName"
-DeffectiveDate="etvEffectiveDate"
- Running the Downloader from the Eclipse development environment:
- In Eclipse create a new Java Application Run Configuration.
- Specify the main class to be
curam.util.impl.BatchLauncher.
- Two program arguments must be specified (in the
'Arguments' tab of the run configuration set
up): the first argument is the batch operation to be run by the
batch launcher, the second argument is the list of all input
parameters to the extractor:
curam.dynamicevidence.sl.util.metadataloader.intf.DynamicEvidenceMetadataDownloader.downloadMetadata
location=DirectoryLocation,evidenceType=etLogicalName,effectiveDate=etvEffectiveDate
The class path will have to be set to include all referenced
libraries (depending on the project setup).