Re: cactus task

Kazuhito SUGURI <[email protected]>
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
Hi Bret,

In article <24F7E976D2C85149A4785E11309B603306992F68@traveler>,
Tue, 5 Sep 2006 15:13:16 -0700,
"Bret Kumler" <[email protected]> wrote: 
bkumler> <tomcat5x if="tomcat-dist.dir"
bkumler>             dir="${tomcat-dist.dir}" port="${test.port}"
bkumler>             output="${target.testreport.dir}/cactus.out"
bkumler>             todir="${target.testreport.dir}/cactus"
bkumler>             tmpdir="${target.testreport.dir}/tmp"
bkumler>         <conf file="${test.conf.dir}/tomcat-users.xml"/>
bkumler> </tomcat5x>
bkumler> 
bkumler> The <conf> property isn't working properly, it's not picking up my
bkumler> config file.

I guess
	tmpdir="${target.testreport.dir}/tmp"
should be
	tmpdir="${target.testreport.dir}/tmp">


I think it may be a bug of Cactus.
Cactus tries to copy files specified by the conf nested element
to tmpdir/conf, however, ${test.conf.dir}/tomcat-users.xml
will not be copied because Cactus create tmpdir/conf/tomcat-users.xml
which is newer than ${test.conf.dir}/tomcat-users.xml.


You might use server.xml customized so that UserDatabase
should not refer tomcat-users.xml. For example:
${test.conf.dir}/server-cactus.xml contains:
		<ResourceParams name="UserDatabase">
		  ...
		  <parameter>
		    <name>pathname</name>
		    <value>conf/test-users.xml</value>
		  </parameter>
		</ResourceParams>

${test.conf.dir}/test-usrs.xml contains user information for test.

build.xml contains:
	  <tomcat5x ...
	        serverxml="${test.conf.dir}/server-cactus.xml"
	  >
	      <conf file="${test.conf.dir}/test-usrs.xml" />
	  </tomcat5x>



Hope this helps.
----
Kazuhito SUGURI
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.