You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Li Zhang <el...@yahoo.com> on 2002/01/29 23:37:23 UTC

cactus + ant + JRun

Can anyone tell me why I cannot start JRun using Ant
and cactus's runservertests?

What I did is:

1) define an Ant task

<taskdef name="runservertests"
classname="org.apache.cactus.ant.RunServerTestsTask">
        <classpath>
            <pathelement path="${cactus.ant.jar}"/>
            <pathelement path="${java.class.path}"/>
        </classpath>
</taskdef>

2) define a target which invokes the above task:

<target name="tests_jrun">

      <echo message="we are running server
tests......."/>	

      <runservertests
testURL="http://localhost:${test.port}/asp"
                      startTarget="start_jrun"
                      stopTarget="stop_jrun"
                      testTarget="tests" />
      <classpath>
            <pathelement path="${java.class.path}" />
            <pathelement
location="${cactus.ant.jar}"/>        
      </classpath>

</target>

3) define start_jrun and stop_jrun targets
4) run "ant tests_jrun"

The JRun was not started if I executed "ant
tests_jrun" (it went to "tests" target directly) but I
can start JRun by entering "ant start_jrun", which
means something wrong with the "runservertests".

I'm using Ant 1.4, Cactus 1.2, and JRun 3.1 on Windows
2000.

Thanks.

El




__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>