...
Code Block |
---|
JadeEngine objJadeEngine = new JadeEngine(); JADEOptions objOptions = objJadeEngine.Options() objOptions.settings.Value(strSettingsFile); objOptions.profile.Value(pstrProfileName); objOptions.ReadSettingsFile(); objJadeEngine.Execute(); objJadeEngine.Logout(); |
Another example with accessing the options directly:
Code Block |
---|
public void testRenameMultipleFilesLocal() throws Exception \{
JadeEngine objJadeEngine = new JadeEngine();
JADEOptions objOptions = objJadeEngine.Options()
objOptions.protocol.Value("local");
objOptions.getConnectionOptions().Source().protocol.Value("local");
objOptions.getConnectionOptions().Target().protocol.Value("local");
objOptions.file_spec.Value("^.*\\.txt$");
objOptions.local_dir.Value(strTestPathName + "/JADE/");
objOptions.remote_dir.Value(strTestPathName + "/JADE/");
objOptions.operation.Value("rename");
objOptions.replacing.Value("(.*)(.txt)");
objOptions.replacement.Value("\\1_[date:yyyyMMddHHmm];\\2");
objJadeEngine.Execute();
objJadeEngine.Logout();
\}
|
More Information on how to use the API you can find here:
...