ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Júlio Cesar Bueno Cotta <juliocbco...@gmail.com>
Subject Re: Using ANT to validate a URL
Date Fri, 24 Jul 2009 15:20:08 GMT
humm..that can help me ..
just to be sure..
if the url is www.google.com it is ok..but if the url is
www.Do_Not_exist.com it is a valid url?

Thanks.

2009/7/24 Shawn Beard <sbeard7499@yahoo.com>

> Yes thats all I need to do is make sure it is valid. Thank you.
>
>
> Shawn
>
>
>
>
> ________________________________
> From: David Weintraub <qazwart@gmail.com>
> To: Ant Users List <user@ant.apache.org>
> Sent: Friday, July 24, 2009 10:00:29 AM
> Subject: Re: Using ANT to validate a URL
>
> On Fri, Jul 24, 2009 at 10:47 AM, Shawn Beard <sbeard7499@yahoo.com>
> wrote:
>
> > We use ANT to deploy applications.  Is there a way to have ANT validate
> the
> > deployment by going to its URL and "Deployment is Valid" from the
> webpage?
> >  Thank you.
> >
>
>
> You just want to make sure that the URL is valid?
>
> <condition property="url.valid">
>   <http url="${test.url}"/>
> </condition>
>
> That will set the property url.valid if the URL ${test.url} is reachable.
>
> --
> David Weintraub
> qazwart@gmail.com
>
>
>
>
>



-- 
  Júlio Cesar Bueno Cotta
Graduando em ciência da computação
   Universidade Federal de Viçosa

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message