https://issues.apache.org/bugzilla/show_bug.cgi?id=49594
Summary: the "apply" task fails when attribute parallel=yes and
redirector sub-element present
Product: Ant
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: critical
Priority: P2
Component: Core
AssignedTo: notifications@ant.apache.org
ReportedBy: vlad.balan@gmail.com
Hello,
ant 1.8.1.
A) i'm getting
java.lang.NullPointerException for the apply task when the attribute
parallel="yes" and a "redirector" sub-element is present.
With parallel=no and redirector present it works fine.
B) what is the exepcted behaviour of a nested outputmapper in the redirector
sub-element ( i.e. a per file output for the command) when parallel=yes (i.e.
the command would be executed one time with the concatenated list of files at
the end of the command)
The doc does not specifies this.
This is why i'm using a "constant" redirector by the means of the "input"
attribute of the redirector element, rather than nesting any "outputmapper".
This is my file with "cmd_files" target:
<?xml version="1.0" encoding="UTF-8"?>
<project>
<patternset id="slash">
<include name="test/" />
</patternset>
<fileset id="filmeFiles" dir="d:/kits">
<patternset refid="slash" />
</fileset>
<target name="echo">
<echo>Content of filmeFiles: ${toString:filmeFiles}</echo>
</target>
<target name="cmd_files" depends="echo">
<apply dir="d:/kits" dest="d:/kits" executable="cmd" parallel="yes"
addsourcefile="yes">
<arg value="/c">
</arg>
<arg value="echo">
</arg>
<targetfile />
<fileset refid="filmeFiles">
</fileset>
<globmapper from="*.txt" to="*_alfa.txt" handledirsep="yes" />
<redirector output="d:\kits\test\output\all_out.txt" append="yes"
/>
</apply>
</target>
</project>
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
|