[
https://issues.apache.org/jira/browse/TAVERNA-964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stian Soiland-Reyes updated TAVERNA-964:
----------------------------------------
Description:
As reported by [Daniele Tartarini to
dev@taverna|http://mail-archives.apache.org/mod_mbox/taverna-dev/201604.mbox/%3CCAA8bF%2BVdD83A%3DWUMhdaLkip3Xz-impF3jTVF_0Hd395E9zj4yw%40mail.gmail.com%3E],
the Taverna Command Line does not pass on "-inputfile" parameters as File (or
URL) instances, but rather they are read into memory and then registered fresh.
In conjuction with the Tool activity using Files this mean the file is copied
twice.
https://github.com/apache/incubator-taverna-commandline/blob/master/taverna-commandline-common/src/main/java/org/apache/taverna/commandline/data/InputsHandler.java#L168
setValue() in InputsHandler supports File and URL forwarded on to
DataBundles.setReference() - so this should be used instead.
was:
As reported by [Daniele Tartarini to
dev@taverna|http://mail-archives.apache.org/mod_mbox/taverna-dev/201604.mbox/%3CCAA8bF%2BVdD83A%3DWUMhdaLkip3Xz-impF3jTVF_0Hd395E9zj4yw%40mail.gmail.com%3E],
the Taverna Command Line does not pass on "-inputfile" parameters as File (or
URL) instances, but rather they are read into memory and then registered fresh.
https://github.com/apache/incubator-taverna-commandline/blob/master/taverna-commandline-common/src/main/java/org/apache/taverna/commandline/data/InputsHandler.java#L168
setValue() in InputsHandler supports File and URL forwarded on to
DataBundles.setReference() - so this should be used instead.
> Command line should not read inputfiles to memory
> -------------------------------------------------
>
> Key: TAVERNA-964
> URL: https://issues.apache.org/jira/browse/TAVERNA-964
> Project: Apache Taverna
> Issue Type: Bug
> Components: Taverna Commandline
> Reporter: Stian Soiland-Reyes
>
> As reported by [Daniele Tartarini to
> dev@taverna|http://mail-archives.apache.org/mod_mbox/taverna-dev/201604.mbox/%3CCAA8bF%2BVdD83A%3DWUMhdaLkip3Xz-impF3jTVF_0Hd395E9zj4yw%40mail.gmail.com%3E],
> the Taverna Command Line does not pass on "-inputfile" parameters as File
> (or URL) instances, but rather they are read into memory and then registered
> fresh.
> In conjuction with the Tool activity using Files this mean the file is copied
> twice.
> https://github.com/apache/incubator-taverna-commandline/blob/master/taverna-commandline-common/src/main/java/org/apache/taverna/commandline/data/InputsHandler.java#L168
> setValue() in InputsHandler supports File and URL forwarded on to
> DataBundles.setReference() - so this should be used instead.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)