mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Repeatedly one wants to do things like create symbolic links and then call a helper script - the 'interpreter' tag doesn't allow shell commands before calling a helper script so they could not be used in this fashion. The previous pattern for doing this was then to use the ToolShed only 'set_environment' requirement tag. These were onerous to setup and the resulting tools were no longer portable to non-ToolShed installed contexts - I believe this variant is more robust and elegant. More information https://trello.com/c/0pgF5PBQ and here https://trello.com/c/XK5SqE1i.
21 lines
496 B
XML
21 lines
496 B
XML
<tool id="tool_directory" name="tool_directory">
|
|
<command>
|
|
cp $__tool_directory__/tool_directory.xml output1
|
|
</command>
|
|
<inputs>
|
|
<param type="integer" name="ignored" label="Ignored" value="0" />
|
|
</inputs>
|
|
<outputs>
|
|
<data name="output1" type="xml" from_work_dir="output1" />
|
|
</outputs>
|
|
<tests>
|
|
<test>
|
|
<output name="output1">
|
|
<assert_contents>
|
|
<has_text text="QUINE" />
|
|
</assert_contents>
|
|
</output>
|
|
</test>
|
|
</tests>
|
|
</tool>
|