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 Bret Kumler <bk...@goldengate.com> on 2006/09/06 00:13:16 UTC
cactus task
<tomcat5x if="tomcat-dist.dir"
dir="${tomcat-dist.dir}" port="${test.port}"
output="${target.testreport.dir}/cactus.out"
todir="${target.testreport.dir}/cactus"
tmpdir="${target.testreport.dir}/tmp"
<conf file="${test.conf.dir}/tomcat-users.xml"/>
</tomcat5x>
The <conf> property isn't working properly, it's not picking up my
config file.
This e-mail message and any attachments may contain private, confidential, proprietary or privileged material of GoldenGate Software, Inc. that is for the sole use of the intended recipient(s) of this e-mail message. Any review, copying or distribution or other use of this e-mail message or any attachments hereto by anyone other than the intended recipient(s) is strictly prohibited. If you are not the intended recipient(s) of this e-mail message, please contact GoldenGate Software, Inc. (415-777-0200) immediately and permanently delete the original e-mail message and any copies of this e-mail message and all attachments, if any.
Re: cactus task
Posted by Kazuhito SUGURI <su...@lab.ntt.co.jp>.
Hi Bret,
In article <24...@traveler>,
Tue, 5 Sep 2006 15:13:16 -0700,
"Bret Kumler" <bk...@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