Modify ↓
Ticket #340 (closed defect: fixed)
[PATCH] Foreach Task should trim list values
| Reported by: | Anonymous | Owned by: | hans |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | phing-tasks-system | Version: | 2.3.2 |
| Keywords: | Cc: |
Description
The foreach task should apply a trim to the entries of the list. The reason for this is a better readability of longer lists in the build file. Right now, a line break or a space or tab would break the foreach loop in at least one place in the looped target. Example:
<!-- works well -->
<property name="list" value="a,b,c,d" />
<!-- does not work -->
<property name="list" value="a,
b,
c,
d"
>
<!-- foreach call -->
<foreach list="${list}" param="..." target="..." />
In my opinion, the foreach call should provide the same values to the task in both ways.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

