ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: while-like structure in Ant
Date Mon, 30 Jul 2007 06:00:23 GMT
Which <http> task? Ant Core doesnt have one.

Jan

>-----Urspr√ľngliche Nachricht-----
>Von: Emir Mahmut BAHSI [mailto:embahsi@yahoo.com] 
>Gesendet: Sonntag, 29. Juli 2007 00:27
>An: Ant Users List
>Betreff: RE: while-like structure in Ant
>
>Sorry everybody for the late replay. I am trying to implement 
>that while structure as I explained before. I am using 
>javascript for that. However, I can not create a http task in 
>javascript code. That part of the code is:
>
>myhttp = project.createTask("http");
>myhttp.setUrl("a url address");
>
>The error is: javax.script.ScriptException: 
>sun.org.mozilla.javascript.internal.EcmaError: TypeError: 
>Cannot call method "setUrl" of null <<Unknown source>#5> in 
><Unknown source> at line number 5
>
>Any help is appreciated. Thanks in advance.
>
>Emir Mahmut Bahsi
>
>
>
>
>
>
>"Rebhan, Gilbert" <Gilbert.Rebhan@huk-coburg.de> wrote:  
>-----Original Message-----
>From: Xavier Hanin [mailto:xavier.hanin@gmail.com] 
>Sent: Thursday, May 10, 2007 9:17 AM
>To: Ant Users List
>Subject: Re: while-like structure in Ant
>
>On 5/10/07, Emir Mahmut BAHSI  wrote:
>>
>> Hi all,
>> I have been working on conditional structures and loop structures on
>> existing workflow managers for a long time. For this purpose I have
>> implemented two simple examples for if-type and switch-type cases
>(examples
>> are attached). In these examples my program is simply downloading a
>file. If
>> that file does not exist in the first web address it tries another
>address.
>> However, I could not implement a loop structure for that. In the loop
>case
>> the program should try the same address until the file exists.
>Actually I
>> know this is not a reasonable and useful scenario but I just want to
>show
>> whether a conditional-loop scenario can be implemented in Ant.
>>
>> Can u suggest me anything to implement that example. Any help is
>> appreciated.
>
>/*
>The ant-contrib project is providing conditional tasks which may help,
>but
>if you want to have your own syntax and the very specific url
>availability
>as a condition (like you wrote), maybe using a script (using scriptdef
>for
>example) would be a good fit.
>*/
>
>+1
>
>i would go via  and a scripting language running in
>BSF
>(JRuby, Groovy, Beanshell ... )
>
>or use the AntBuilder@Groovy
>
>see =
>http://groovy.codehaus.org/
>http://www.bytemycode.com/snippets/snippet/475/
>
>Regards, Gilbert
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>       
>---------------------------------
>Take the Internet to Go: Yahoo!Go puts the Internet in your 
>pocket: mail, news, photos & more. 
>

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


Mime
View raw message