-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19077 from davelopez/allow_deferred_as_uri
Allow deferred datasets to behave as URIs
- Loading branch information
Showing
9 changed files
with
178 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
test/functional/tools/parameters/gx_allow_uri_if_protocol.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<tool id="gx_allow_uri_if_protocol" name="gx_allow_uri_if_protocol" version="1.0.0"> | ||
<command><![CDATA[ | ||
#for $input in $input1: | ||
## We should handle the case where the input must be treated as a URI with a specific protocol. | ||
#if $input.is_deferred: | ||
## Here, the input is a deferred dataset which source URI has the protocol 'https'. | ||
## We append the URI to the output file. | ||
echo '$input' >> '$output' | ||
#else: | ||
## Here, the input is a regular dataset or a materialized dataset in case of a | ||
## deferred dataset which source URI has a protocol different than 'https'. | ||
## We append the content of the dataset to the output file. | ||
cat '$input' >> '$output' | ||
#end if | ||
#end for | ||
]]></command> | ||
<inputs> | ||
<param name="input1" type="data" allow_uri_if_protocol="https" multiple="true"/> | ||
</inputs> | ||
<outputs> | ||
<data name="output" format="txt"/> | ||
</outputs> | ||
</tool> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters