mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +08:00
Allow override by specifying "provided_metadata_style=" attribute on outputs in tool XML - this should allow newer profile tools to use the older style JSON providing a clear path for upgrades.
32 lines
1.2 KiB
XML
32 lines
1.2 KiB
XML
<tool id="tool_provided_metadata_8" name="tool_provided_metadata_8" version="1.0.0" profile="17.09">
|
|
<!-- Demonstrate reverting tools with new profiles to older galaxy.json style
|
|
using provided_metadata_style attribute on outputs. -->
|
|
<command>
|
|
echo "This is a line of text." > $out1;
|
|
cp $c1 galaxy.json;
|
|
</command>
|
|
<configfiles>
|
|
<configfile name="c1">{"type": "dataset", "dataset_id": $out1.dataset.dataset.id, "name": "my dynamic name", "ext": "txt", "info": "my dynamic info", "dbkey": "cust1"}</configfile>
|
|
</configfiles>
|
|
<inputs>
|
|
<param name="input1" type="data" label="Input Dataset"/>
|
|
</inputs>
|
|
<outputs provided_metadata_style="legacy">
|
|
<!-- Set format="auto" to read from galaxy.json, use auto_format="true"
|
|
to sniff. -->
|
|
<data name="out1" format="auto" />
|
|
</outputs>
|
|
<help>
|
|
</help>
|
|
<tests>
|
|
<test>
|
|
<param name="input1" value="simple_line.txt" />
|
|
<output name="out1" file="simple_line.txt" ftype="txt">
|
|
<metadata name="name" value="my dynamic name" />
|
|
<metadata name="info" value="my dynamic info" />
|
|
<metadata name="dbkey" value="cust1" />
|
|
</output>
|
|
</test>
|
|
</tests>
|
|
</tool>
|