Java Mailing List Archive

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

Home » Ant Users List »

AW: Using anteater in ant

Jan Materne

2010-04-13

Replies: Find Java Web Hosting

Author LoginPost Reply
> in match,which i could use later with <if> condition. The
> anteater manual page (test tasks) decribes the same,

I havent found that on http://aft.sourceforge.net/ could you post the
url?



> <httprequest>
> <match>
>  <regexp assign ="var">${var1}</regexp>
> </match>
> <if>
> <isset property="var"/>
> <then>
> <do somethin>
> </then>
> </if>
> </httprequest>
>
> The same code example as been given in the manuals too.
> however, when ran it
> gave the below error.
> "The <httpRequest> task doesn't support the nested "if" element."
>
> Any help please?


Maybe the if/then/else should be outside of <httprequest> and done
external tasks?

<aft:httprequest>
  <aft:match>
    <aft:regexp assign="var"....
</aft:httprequest>
<antcontrib:if>
  <isset property="var"/>
  <antcontrib:then> ....
</antcontrib:if>


Jan


>
> Regards,
> Pooja
>
>
>
>
> --
> View this message in context:
> http://old.nabble.com/Using-anteater-in-ant-tp28215650p28215650.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)

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