ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knuplesch, Juergen" <Juergen.Knuple...@icongmbh.de>
Subject AW: ****SPAM**** for task inside path task
Date Thu, 09 Jul 2009 08:10:37 GMT
 Hello,

Maybe ANT this way:

  <path id="build.path2">
         <path refid="emptypath">
   </path>

<for list="${reference}" param="ref">
   <sequential>
   <path id="build.path">
         <path refid="build.path2">
         <path refid="@{ref}">
   </path>

   <path id="build.path2">
         <path refid="build.path">
   </path>

   </sequential>
</for>


-- 
J├╝rgen Knuplesch  
-----Urspr├╝ngliche Nachricht-----
Von: kleinfisch [mailto:kleinfisch@gmx.net] 
Gesendet: Donnerstag, 9. Juli 2009 09:44
An: user@ant.apache.org
Betreff: ****SPAM**** for task inside path task


example:
i have a property as following defined:
<property name="reference" value="ref1,ref2,ref3"/> the count of value is dynamic.
the question is: how can i define the refid inside path with for task:
- Test 1:
<path id="build.path">
   <for list="${reference}" param="ref">
      <sequential>
         <path refid="@{ref}">
      </sequential>
   </for>
</path>
Result: failed, because "path" doesn't support the nested "for" element.

- Test 2:
<for list="${reference}" param="ref">
   <path id="build.path">
      <sequential>
         <path refid="@{ref}">
      </sequential>
   </path>
</for>
Result: only last value of "reference" is defined always, because the recent value of "reference"
is always replaced by the next value of "reference".

Has anybody else an idea, "path" task with a loop definition?
--
View this message in context: http://www.nabble.com/for-task-inside-path-task-tp24405629p24405629.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message