mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
An ``<environment_variables>`` top-level XML block can be used to define these.
```
<environment_variables>
<environment_variable name="FOO">$bar</environment_variable>
<environment_variable name="FOO2">$bar2</environment_variable
</environment_variables>
```
The expressions are contained in the text of the block.
Implementation Detials:
In order to avoid odd shell expression stuff - the evaluated expressions are written to files and environment variables are read from these files at runtime.
Testing:
A demo tool ``test/functional/tools/environment_variables.xml`` with a test case that can be executed with the following expression.
```
./run_tests.sh -framework -id environment_variables
```
79 lines
2.9 KiB
XML
79 lines
2.9 KiB
XML
<?xml version="1.0"?>
|
|
<toolbox tool_path="${tool_conf_dir}">
|
|
<tool file="upload.xml"/>
|
|
<tool file="simple_constructs.xml" />
|
|
<tool file="inheritance_simple.xml" />
|
|
<tool file="boolean_conditional.xml" />
|
|
<tool file="composite.xml" />
|
|
<tool file="environment_variables.xml" />
|
|
<tool file="compare_bam_as_sam.xml" />
|
|
<tool file="code_file.xml" />
|
|
<tool file="disambiguate_cond.xml" />
|
|
<tool file="multi_repeats.xml"/>
|
|
<tool file="multi_page.xml"/>
|
|
<tool file="library_data.xml"/>
|
|
<tool file="multi_select.xml" />
|
|
<tool file="multi_output.xml" />
|
|
<tool file="multi_output_configured.xml" />
|
|
<tool file="multi_output_assign_primary.xml" />
|
|
<tool file="composite_output.xml" />
|
|
<tool file="metadata.xml" />
|
|
<tool file="metadata_bam.xml" />
|
|
<tool file="metadata_bcf.xml" />
|
|
<tool file="detect_errors_aggressive.xml" />
|
|
<tool file="md5sum.xml" />
|
|
<tool file="job_properties.xml" />
|
|
<tool file="gzipped_inputs.xml" />
|
|
<tool file="output_order.xml" />
|
|
<tool file="output_format.xml" />
|
|
<tool file="output_filter.xml" />
|
|
<tool file="output_auto_format.xml" />
|
|
<tool file="disambiguate_repeats.xml" />
|
|
<tool file="min_repeat.xml" />
|
|
<tool file="parallelism.xml" />
|
|
<tool file="parallelism_optional.xml" />
|
|
<tool file="implicit_default_conds.xml" />
|
|
<tool file="multi_data_param.xml" />
|
|
<tool file="column_param.xml" />
|
|
<tool file="column_multi_param.xml" />
|
|
<tool file="special_params.xml" />
|
|
<tool file="section.xml" />
|
|
<tool file="top_level_data.xml" />
|
|
<tool file="validation_default.xml" />
|
|
<tool file="validation_sanitizer.xml" />
|
|
<tool file="validation_repeat.xml" />
|
|
<tool file="identifier_single.xml" />
|
|
<tool file="identifier_multiple.xml" />
|
|
<tool file="tool_directory.xml" />
|
|
<tool file="output_action_change_format.xml" />
|
|
<tool file="collection_paired_test.xml" />
|
|
<tool file="collection_nested_test.xml" />
|
|
<tool file="collection_mixed_param.xml" />
|
|
<tool file="collection_two_paired.xml" />
|
|
<tool file="collection_creates_pair.xml" />
|
|
<tool file="collection_creates_pair_from_type.xml" />
|
|
<tool file="collection_creates_list.xml" />
|
|
<tool file="collection_creates_list_2.xml" />
|
|
<tool file="collection_optional_param.xml" />
|
|
<tool file="collection_split_on_column.xml" />
|
|
|
|
<tool file="cheetah_casting.xml" />
|
|
|
|
<tool file="multiple_versions_v01.xml" />
|
|
<tool file="multiple_versions_v02.xml" />
|
|
|
|
<!-- Tools interesting only for building up test workflows. -->
|
|
|
|
<!-- Next three tools demonstrate concatenating multiple datasets
|
|
with a repeat, multiple datasets with a multiple input data
|
|
parameter, and multiple datasets from a collection. -->
|
|
<tool file="for_workflows/cat.xml" />
|
|
<tool file="for_workflows/cat_list.xml" />
|
|
<tool file="for_workflows/cat_collection.xml" />
|
|
<tool file="for_workflows/head.xml" />
|
|
<tool file="for_workflows/cat_interleave.xml" />
|
|
|
|
<tool file="simple_constructs.yml" />
|
|
|
|
</toolbox>
|