Thanks Qazwart I am new to ant, so i am guessing that i declare wsdl.url outside build.xml
like: export wsdl.url="http://www.example.com/help?wsdl I also found: <typedef name="httpcontains" classname="HttpContains" /> <waitformaxwait="10"maxwaitunit="minute"checkevery="500"> <httpcontainscontains="Running"url="http://myurl"/> </waitfor> >________________________________ > From: Qazwart <[email protected]> >To: "[email protected]" <[email protected]> >Sent: Tuesday, August 14, 2012 5:46 PM >Subject: Re: pre condition for ant build > > >You can use the <available> in Ant to check for the URL and have Ant fail the >build if it's not available. > > >In fact this can be placed in a fail task. > > ><fail message="${wsdl.url} isn't available"> > <condition> > <not> > <available url="${wsdl.url}"/> > </not> > </condition> ></fail> > >-- >David Weintraub >[email protected] > >On Aug 14, 2012, at 10:39 AM, Kamal Ahmed <[email protected]> wrote: > > >Hi, >>Does someone have any insight and suggestion, as to what would work best in >>the following scenario. >> >> >>I want to have a pre-check in place, which will verify if a particular WSDL >>is available , and if it IS ( meaning we get WSDL XML ) >>only then kick off the ant task which runs some functional tests >> >> >>Thanks, >>-Kamal. > >
