Table of Contents |
---|
Scope
- The following samples have been created by use of the XML EditorEach sample file references the XSD scheme from the JADE - Reference Documentation - XSD Schema Referenceexamples have been created by use of the XML Editor
- Each sample file references the XSD schema from the JADE - Reference Documentation - XSD Schema Reference
- The XML Editor can be configured to
Configuring the XML Editor for use with JADE configuration files up to release 1.10
Activating the JADE Xml2Ini Converter Plugin
The XML Editor comes with a sub-folder plugins
in the installation directory.
- By default all Plugins that are deployed with this folder are available with the XML Editor. Therefore the Xml2Ini Converter is active by default.
- Should the sub-folder
plugins
not be available, e.g. should this folder have been renamed, then you cannot use the conversion feature. - If the Xml2Ini Converter is available then you can use the respective operation from the main menu and from the tab context menu.
- The XML Editor shows a file dialog and suggests an .ini export file with the same basename as the current .xml configuration file.
Configuring the XML Editor for automatedCconversion
The XML Editor comes with the feature to auto-save configuration files in the .ini format when saving to the .xml format, i.e. doing the conversion automatically.
- To activate this feature adjust the check-box "Autosave ini file" to be checked.
- In addition you can enable desktop notifications to be created if a .ini file is being saved.
x
Examples
All examples are used for for the JADE Configuration XSD schema http://www.sos-berlin.com/schema/jade/JADE_configuration_v1.0.xsd
Getting Started
See tutorial The JADE Client Command Line Interface - Tutorial 1 - Getting Started
XML Configuration: getting_started.xml
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[protocol_fragment_ftp@ftp_server_2_local] protocol = ftp host = test.sos-berlin.com port = 21 user = demo password = demo passive_mode = true [protocol_fragment_sftp@sftp_server_2_local_pass] protocol = sftp host = test.sos-berlin.com port = 22 user = demo ssh_auth_method = password password = demo [profile@ftp_server_2_local] operation = copy source_include = protocol_fragment_ftp@ftp_server_2_local file_spec = .* source_dir = / target_protocol = local target_host = localhost target_dir = ${USERPROFILE}\jade_demo\a overwrite_files = true transactional = true [profile@sftp_server_2_local_pass] operation = copy source_include = protocol_fragment_sftp@sftp_server_2_local_pass file_spec = .* source_dir = / target_protocol = local target_host = localhost target_dir = ${USERPROFILE}\jade_demo\a overwrite_files = false transactional = true |
Simple File Selection
- See tutorial The JADE Client Command Line Interface - Tutorial 2 - Simple File Selection
- XML Configuration: simple_file_selection.xml
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[protocol_fragment_sftp@sftp_server_2_local_select_recursive] protocol = sftp host = test.sos-berlin.com port = 22 user = demo ssh_auth_method = password password = demo [protocol_fragment_sftp@sftp_server_2_local_zero_byte] protocol = sftp host = test.sos-berlin.com port = 22 user = demo ssh_auth_method = password password = demo [profile@sftp_server_2_local_select_recursive] operation = copy source_include = protocol_fragment_sftp@sftp_server_2_local_select_recursive file_spec = ^test_.\.txt$ source_dir = /rec recursive = true target_protocol = local target_host = localhost target_dir = ${USERPROFILE}\jade_demo\a overwrite_files = false [profile@sftp_server_2_local_zero_byte] operation = copy source_include = protocol_fragment_sftp@sftp_server_2_local_zero_byte file_spec = ^test_[0-9]\.txt$ source_dir = / zero_byte_transfer = relaxed target_protocol = local target_host = localhost target_dir = ${USERPROFILE}\jade_demo\a |
More Advanced File Selection
- See tutorial The JADE Client Command Line Interface - Tutorial 3 - More Advanced File Selection
- XML Configuration: more_advanced_file_selection.xml
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[protocol_fragment_sftp@sftp_server_2_local_poll_minfiles] protocol = sftp host = test.sos-berlin.com port = 22 user = demo ssh_auth_method = password password = demo [profile@sftp_server_2_local_poll_minfiles] operation = copy source_include = protocol_fragment_sftp@sftp_server_2_local_poll_minfiles file_spec = ^test_[0-9]\.txt$ source_dir = / poll_interval = 20 poll_timeout = 1 poll_minfiles = 5 polling_server = false polling_server_poll_forever = false target_protocol = local target_host = localhost target_dir = ${USERPROFILE}\jade_demo\a |
File Transfer
- see tutorial The JADE Client Command Line Interface - Tutorial 4 - File Transfer
- XML Configuration: file_transfer.xml
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[protocol_fragment_sftp@sftp_server_2_local_cumulate] protocol = sftp host = test.sos-berlin.com port = 22 user = demo ssh_auth_method = password password = demo [profile@replace_local_datestamp] operation = copy source_protocol = local source_host = localhost replacing = ^(test)(_)[0-9]\.txt replacement = file_;[date:yyyy-MM-dd]_ file_spec = ^test_[0-9]\.txt$ source_dir = ${USERPROFILE}\jade_demo\a target_protocol = local target_host = localhost target_dir = ${USERPROFILE}\jade_demo\b [profile@sftp_server_2_local_cumulate] operation = copy source_include = protocol_fragment_sftp@sftp_server_2_local_cumulate file_spec = ^test_.\.txt$ source_dir = / target_protocol = local target_host = localhost target_dir = ${USERPROFILE}\jade_demo\a cumulate_files = true cumulative_file_separator = --- File: %{SourceFileName} --- cumulative_file_name = text-files.txt |
Checking Files for Completenss
- See tutorial The JADE Client Command Line Interface - Tutorial 5 - Checking files for completeness
- XML Configuration: checking_files_for_completeness.xml
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[protocol_fragment_sftp@sftp_server_2_local_atomic] protocol = sftp host = test.sos-berlin.com port = 22 user = demo ssh_auth_method = password password = demo [profile@local_2_local_create_md5] operation = copy source_protocol = local source_host = localhost file_spec = ^test_[0-9]\.txt$ source_dir = ${USERPROFILE}\jade_demo\a target_protocol = local target_host = localhost target_dir = ${USERPROFILE}\jade_demo\b check_security_hash = true create_security_hash_file = true [profile@local_2_local_check_md5] operation = copy source_protocol = local source_host = localhost file_spec = ^test_[0-9]\.txt$ source_dir = ${USERPROFILE}\jade_demo\a target_protocol = local target_host = localhost target_dir = ${USERPROFILE}\jade_demo\b check_security_hash = true [profile@sftp_server_2_local_atomic] operation = copy source_include = protocol_fragment_sftp@sftp_server_2_local_atomic file_spec = ^test_large_1\.txt$ source_dir = /large/ target_protocol = local target_host = localhost target_dir = ${USERPROFILE}\jade_demo\a atomic_prefix = ~ atomic_suffix = ~ [profile@local_2_local_check_steady_state] operation = copy source_protocol = local source_host = localhost file_spec = ^test_large_1\.txt$ source_dir = ${USERPROFILE}\jade_demo\a check_steady_state_of_files = true check_steady_state_interval = 2 steady_state_count = 10 target_protocol = local target_host = localhost target_dir = ${USERPROFILE}\jade_demo\b |
...