You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by swapnil_r_84 <sw...@yahoo.co.in> on 2007/05/23 11:20:43 UTC

build doesn't complete after tomcat starts

i am trying to start tomcat from ant. It does start but build never completes
after tomcat is started. After i shut down tomcat remaining build begins to
run(control comes back).

i want tomcat running & my ant targets to get executed completely till end:

<?xml version="1.0" encoding="ISO-8859-1"?>

<project name="insync-ibpc-1.0" basedir="." default="all">


<property name="tomcat.home" value="D:\\Tomcat 5.5" /> 

<target name="Selenium1">

<exec dir="${tomcat.home}/bin"
executable="${tomcat.home}/bin/shutdown.bat"/> 

<!-- start the tomcat-->
 <exec dir="${tomcat.home}/bin"
executable="${tomcat.home}/bin/startup.bat"/> 

</target>

<target name="Selenium11" depends="Selenium1">
<taskdef resource="selenium-ant.properties">
    <classpath>
        <pathelement location="selenium-server.jar"/>
    </classpath>
</taskdef>
<selenese 
    suite="tests/myTestSuite.html"
    browser="*firefox"
    results="results.html"
    multiWindow="true"
    timeoutInSeconds="900"
    startURL="http://localhost:8080" />
</target>


</project>


Please help.
-- 
View this message in context: http://www.nabble.com/build-doesn%27t-complete-after-tomcat-starts-tf3802838.html#a10760296
Sent from the Ant - Users mailing list archive at Nabble.com.


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


RE: build doesn't complete after tomcat starts

Posted by swapnil_r_84 <sw...@yahoo.co.in>.
Thanks. Using spawn it worked!



RADEMAKERS Tanguy wrote:
> 
> Hello,
> 
> Just off the top of my head, but did you look into using the spawn
> attribute of the exec task?
> 
> Regs,
> /t
> 
>>-----Original Message-----
>>From: swapnil_r_84 [mailto:swapnil_r_84@yahoo.co.in] 
>>Sent: Wednesday, May 23, 2007 11:21 AM
>>To: user@ant.apache.org
>>Subject: build doesn't complete after tomcat starts
>>
>>
>>i am trying to start tomcat from ant. It does start but build 
>>never completes
>>after tomcat is started. After i shut down tomcat remaining 
>>build begins to
>>run(control comes back).
>>
>>i want tomcat running & my ant targets to get executed 
>>completely till end:
>>
>><?xml version="1.0" encoding="ISO-8859-1"?>
>>
>><project name="insync-ibpc-1.0" basedir="." default="all">
>>
>>
>><property name="tomcat.home" value="D:\\Tomcat 5.5" /> 
>>
>><target name="Selenium1">
>>
>><exec dir="${tomcat.home}/bin"
>>executable="${tomcat.home}/bin/shutdown.bat"/> 
>>
>><!-- start the tomcat-->
>> <exec dir="${tomcat.home}/bin"
>>executable="${tomcat.home}/bin/startup.bat"/> 
>>
>></target>
>>
>><target name="Selenium11" depends="Selenium1">
>><taskdef resource="selenium-ant.properties">
>>    <classpath>
>>        <pathelement location="selenium-server.jar"/>
>>    </classpath>
>></taskdef>
>><selenese 
>>    suite="tests/myTestSuite.html"
>>    browser="*firefox"
>>    results="results.html"
>>    multiWindow="true"
>>    timeoutInSeconds="900"
>>    startURL="http://localhost:8080" />
>></target>
>>
>>
>></project>
>>
>>
>>Please help.
>>-- 
>>View this message in context: 
>>http://www.nabble.com/build-doesn%27t-complete-after-tomcat-sta
> rts-tf3802838.html#a10760296
>>Sent from the Ant - Users mailing list archive at Nabble.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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/build-doesn%27t-complete-after-tomcat-starts-tf3802838.html#a10778081
Sent from the Ant - Users mailing list archive at Nabble.com.


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


RE: build doesn't complete after tomcat starts

Posted by RADEMAKERS Tanguy <Ta...@swift.com>.
Hello,

Just off the top of my head, but did you look into using the spawn
attribute of the exec task?

Regs,
/t

>-----Original Message-----
>From: swapnil_r_84 [mailto:swapnil_r_84@yahoo.co.in] 
>Sent: Wednesday, May 23, 2007 11:21 AM
>To: user@ant.apache.org
>Subject: build doesn't complete after tomcat starts
>
>
>i am trying to start tomcat from ant. It does start but build 
>never completes
>after tomcat is started. After i shut down tomcat remaining 
>build begins to
>run(control comes back).
>
>i want tomcat running & my ant targets to get executed 
>completely till end:
>
><?xml version="1.0" encoding="ISO-8859-1"?>
>
><project name="insync-ibpc-1.0" basedir="." default="all">
>
>
><property name="tomcat.home" value="D:\\Tomcat 5.5" /> 
>
><target name="Selenium1">
>
><exec dir="${tomcat.home}/bin"
>executable="${tomcat.home}/bin/shutdown.bat"/> 
>
><!-- start the tomcat-->
> <exec dir="${tomcat.home}/bin"
>executable="${tomcat.home}/bin/startup.bat"/> 
>
></target>
>
><target name="Selenium11" depends="Selenium1">
><taskdef resource="selenium-ant.properties">
>    <classpath>
>        <pathelement location="selenium-server.jar"/>
>    </classpath>
></taskdef>
><selenese 
>    suite="tests/myTestSuite.html"
>    browser="*firefox"
>    results="results.html"
>    multiWindow="true"
>    timeoutInSeconds="900"
>    startURL="http://localhost:8080" />
></target>
>
>
></project>
>
>
>Please help.
>-- 
>View this message in context: 
>http://www.nabble.com/build-doesn%27t-complete-after-tomcat-sta
rts-tf3802838.html#a10760296
>Sent from the Ant - Users mailing list archive at Nabble.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