[
https://issues.apache.org/jira/browse/GROOVY-8723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-8723.
-----------------------------
> Groovy script output for 2nd and subsequent intput files
> --------------------------------------------------------
>
> Key: GROOVY-8723
> URL: https://issues.apache.org/jira/browse/GROOVY-8723
> Project: Groovy
> Issue Type: Bug
> Components: command line processing
> Affects Versions: 2.5.1
> Reporter: Yuichi ITO
> Assignee: Paul King
> Priority: Major
> Fix For: 2.5.2
>
>
> When I want to process multiple input files with a script.
> > groovy -n -e "println line" _file1_ _file2_
> I got no result for _file2_.
> The cause is here:
> groovy-2.5.1/src/main/groovy/groovy/ui/GroovyMain.java
> {code:java}
> 513: try(BufferedReader reader = new BufferedReader(new FileReader(file));
> 514: PrintWriter writer = new PrintWriter(System.out)) {
> 515:
> 516: processReader(s, reader, writer);
> 517: }{code}
> The System.out is closed by try-with-resources after _file1_ processing is
> completed.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)