Skip to content

waitforexit cannot capture failures #25

@wernight

Description

@wernight

Currently to speed up a build tasks must be executed in parallel. The lack of <parallel> (from Ant) forces lesser solutions like <exec ...> followed by <waitforexit>.

The major problem is that neither <exec> nor <waitforexit> can help check the program didn't throw an error (even with failonexit or resultproperty). I know the documentation says it's the current behavior but that's very limiting.

Example:

<project>
<target name="foo">
    <exec spawn="true" pidproperty="pid" failonerror="false" resultproperty="result" program="cmd" commandline="/c girbish" />
    <waitforexit pid="${pid}" />
    <echo>${result}</echo>
</target>
</project>

This will always display -1000 and never fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions