ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Ivanov <rambiusparkisan...@yahoo.com>
Subject Re: Fwd: Problem with exec Windows XP
Date Tue, 16 Nov 2004 14:11:34 GMT
> 
> The only problem with this approach is that Tomcat
> is still holding on 
> to the application files
> when I try to remove them and replace them with the
> newer version.
>  
> <delete dir="${dir.tomcat}/ae" />
>    <delete>
> 
> Does anybody have an  idea how to work around this
> problem ?

Hm, are you sure Tomcat holds them. I used to have the
same problems on Windows and it turned that Windows
Explorer holds them as well as some Java IDEs.

> 
> Regards,
> 
> Peter
> 
> >Hello Peter and Igor,
> >
> >Here is a code the makes a slightly different  task
> -
> >it checks whether a war file has been deployed
> >correctly using <waitfor> task [1] and <http> [2]
> >condition:
> >
> ><property name="install.context" value="mywebapp"/>
> ><property name="install.port" value="8080"/>
> ><property name="install.httpurl"
>
>value="http://localhost:${install.port}/${install.context}/index.jsp"/>
> >
> ><target name="deploy" depends="initdb"
> >description="Deploys arcade's war">
> >    <copy
> >file="${basedir}/${branch}${project.name}.war"
>
>tofile="${catalina.home}/webapps/${project.name}.war"/>
> >    <waitfor timeoutproperty="time.out.property">
> >        <http url="${install.httpurl}"/>
> >    </waitfor>
> >    <fail if="time.out.property"
> message="Deployment
> >failed. Check whether Tomcat Service is started and
> if
> >not start it."/>
> >    <echo message="Deployment finished. Arcade
> >application is ready to be accessed"/>
> ></target>
> >
> >Besides <http> condition you can use also <socket>
> >that probes for a listening application on a given
> >port.
> >
> >HTH Ivan
> >
>
>[1]http://ant.apache.org/manual/CoreTasks/waitfor.html
>
>[2]http://ant.apache.org/manual/CoreTasks/conditions.html
> >
> >--- "Igor A. Deruga" <ingvarrr@hotbox.ru> wrote:
> >
> >  
> >
> >>Hello, Peter!
> >>
> >>As far as I remember, I used to stop Tomcat before
> >>building project and start 
> >>it after the build. If it isn't currently running,
> >>the stop task would fail, 
> >>but nothing bad would happen. So you just try to
> >>stop it and then - start it. 
> >>
> >>I don't think that it's a good idea to look at "ps
> >>-A" output ;)
> >>
> >>Sincerely
> >>	Igor
> >>
> >>On Monday 15 November 2004 21:38, Peter Neu wrote:
> >>    
> >>
> >>>Thanks. This solved the problem.
> >>>
> >>>One last thing: How can I test if Tomcat is still
> >>>      
> >>>
> >>runnig in order to invoke
> >>    
> >>
> >>>first the shutdown.bat before I proceed ?
> >>>      
> >>>
> >>    
> >>
>
>---------------------------------------------------------------------
> >  
> >
> >>To unsubscribe, e-mail:
> >>user-unsubscribe@ant.apache.org
> >>For additional commands, e-mail:
> >>user-help@ant.apache.org
> >>
> >>
> >>    
> >>
> >
> >
> >
> >		
> >__________________________________ 
> >Do you Yahoo!? 
> >The all-new My Yahoo! - Get yours free! 
> >http://my.yahoo.com 
> > 
> >
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> >For additional commands, e-mail:
> user-help@ant.apache.org
> >
> >
> >  
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message