Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Re: AW: nested ant cntrib for loops

Furingstad

2010-03-10

Replies: Find Java Web Hosting

Author LoginPost Reply

I realize that the problem is because I try to use an AC variable in a
fileset include attribute like in the following example


<ac:for param="i">
 <path>
   <fileset dir="${proj.src.dir}">
     <include name="*CON*.xml"/>
   </fileset>
 </path>
   <sequential>
   <ac:var name="A" unset="true"/>
   <ac:propertyregex property="A"
    input="@(protected)}"
    regexp="[A-Za-z]{1}:\\.+d([A-Z]{3})\w{3}([A-Z]{2})\.xml"
    replace="\1"/>
     <ac:for param="j">
     <path>
       <fileset dir="${proj.src.dir}">
         <include name="${A}*.xml"/>
       </fileset>
     </path>
         <sequential>
       <echo>Comp:${A}</echo>
       <ac:var name="B" unset="true"/>
       <ac:propertyregex property="B"
        input="@(protected)}"
        regexp="[A-Za-z]{1}:\\.+d([A-Z]{3})\w{3}([A-Z]{2})\.xml"
        replace="\2"/>
       <echo>Lng:${B}</echo>
         </sequential>
     </ac:for>
   </sequential>
</ac:for>

Have any of you an idea of how I can handle this.

In my first loop I itterate on all files in a folder to read out the first
three positions of the file name which defines a component, in the inner
loop I use this component to find al language variants of and the language
code is defined by the last two positions of the file name.




Knuplesch, Juergen wrote:
>
> Hello,
>
> I use antcontrib a lot and have no such problems.
>
> Please share a part of your code.
>
> Greetings Juergen
>
>
> --
> Jürgen
> -----Ursprüngliche Nachricht-----
> Von: Klas K [mailto:klas@(protected)]
> Gesendet: Mittwoch, 10. März 2010 07:16
> An: user@(protected)
> Betreff: nested ant cntrib for loops
>
>
> I have tried to use ant contribs for task by executing an outer and an
> inner for loop, but the inner loop is not executed and I get no clue from
> logging.
>
> Does anyone have experience with this
> --
> View this message in context:
> http://old.nabble.com/nested-ant-cntrib-for-loops-tp27845981p27845981.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.