Table of Contents |
---|
...
Scenario
YADE provides an API that allows
...
JADE has an API which makes it possible to use the JADE YADE Engine in any Application which application that can execute Java .jar files, e.g. Scala, GroovyJava, ....etc.
Using YADE with options from a settings file
An example how to include JADE YADE as a component in your Applicationapplication, using the configuration form a YADE settings file:
Code Block | ||
---|---|---|
| ||
JadeEngine objJadeEngine = new JadeEngine(); JADEOptions objOptions = objJadeEngine.Options() objOptions.settings.Value(strSettingsFile); // settings file name objOptions.profile.Value(pstrProfileName); // name of transfer profile objOptions.ReadSettingsFile(); objJadeEngine.Execute(); // start transfer objJadeEngine.Logout(); // logout and disconnect |
Using YADE with options programmatically
A different example that configures YADE options programmaticalyAnother example with accessing the options directly:
Code Block | ||
---|---|---|
| ||
public void testRenameMultipleFilesLocal() throws Exception \{ JadeEngine objJadeEngine = new JadeEngine(); JADEOptions objOptions = objJadeEngine.Options() objOptions.getConnectionOptions().Source().protocol.Value("local"); objOptions.file_spec.Value("^.*\\.txt$"); objOptions.local_dir.Value(strTestPathName + "/JADE/"); objOptions.operation.Value("rename"); objOptions.replacing.Value("(.*)(.txt)"); objOptions.replacement.Value("\\1_[date:yyyyMMddHHmm];\\2"); objJadeEngine.Execute(); objJadeEngine.Logout(); \} |
See also
- More Information on how to use the API is available at YADE API Reference Documentation
- For information about the YADE parameters see the YADE Parameter Reference Documentation
you can find here:[JADE API ReferenceJADE%20API%20Reference.pdf]