jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kazuhito SUGURI <suguri.kazuh...@lab.ntt.co.jp>
Subject Re: cactus task
Date Thu, 07 Sep 2006 09:20:17 GMT
Hi Bret,

In article <24F7E976D2C85149A4785E11309B603306992F68@traveler>,
Tue, 5 Sep 2006 15:13:16 -0700,
"Bret Kumler" <bkumler@goldengate.com> 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

Mime
View raw message