The Uploader can be run in two ways:
- Running the Uploader from the command line:
- From the EJBServer folder call
./components/DynamicEvidence/script/uploadDynamicEvidenceMetadata.bat
file passing all input parameters using the -D option, for example:
./components/DynamicEvidence/script/uploadDynamicEvidenceMetadata
-Dlocation="XML File Location" -DevidenceType="etLogicalName"
-DeffectiveDate="etvEffectiveDate"
- Alternatively from the 'EJBServer' folder call
components/DynamicEvidence/script/uploadDynamicEvidenceMetadata.xml
ant script using the -D option to pass input parameters, for
example:
ant -f
./components/DynamicEvidence/script/uploadDynamicEvidenceMetadata.xml
-Dlocation="XML File Location" -DevidenceType="etLogicalName"
-DeffectiveDate="etvEffectiveDate"
- Running the upload 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.DynamicEvidenceMetadataUploader.uploadMetadata
location=XML File
Location,evidenceType=etLogicalName,effectiveDate=etvEffectiveDate
The class path will have to be set to include all referenced
libraries (depending on the project setup).