ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49594] New: the "apply" task fails when attribute parallel=yes and redirector sub-element present
Date Wed, 14 Jul 2010 20:15:39 GMT

           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


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"?>


    <patternset id="slash">
        <include name="test/" />

    <fileset id="filmeFiles" dir="d:/kits">
        <patternset refid="slash" />

    <target name="echo">
        <echo>Content of filmeFiles: ${toString:filmeFiles}</echo>

    <target name="cmd_files" depends="echo">
        <apply dir="d:/kits" dest="d:/kits" executable="cmd" parallel="yes"
            <arg value="/c">
            <arg value="echo">
            <targetfile />
            <fileset refid="filmeFiles">
            <globmapper from="*.txt" to="*_alfa.txt" handledirsep="yes" />
            <redirector output="d:\kits\test\output\all_out.txt" append="yes"


Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message