Andy:
Concerning your second point about -info. The default behavior is that info listing is disabled unless:
(a) merlin.info is set to true
(b) your running form the command line and enable it via -info
(which is basically th cli handler setting ${merlin.info}
to true)In your case the default behavior is being overridden by the merlin.properties file in the hello directory.
I'm also looking in the <category> question - but this one smells like a bug.
Cheers, Stephen.
[EMAIL PROTECTED] wrote:
Im messing with some tutorial stuff and a couple things have been bugging me.
On the example page:
http://avalon.apache.org/merlin/starting/tutorial/internal.html
if I change the debug level by modifying the file:
/dev_sandbox/avalon/merlin/platform/tutorials/hello/conf/config.xml
so that it says:
<?xml version="1.0" encoding="ISO-8859-1"?> <targets> <target path="/tutorial/hello"> <categories priority="DEBUG"/> </target> </targets>
then run merlin -execute target/classes -config conf/config.xml
my output only shows INFO messages not DEBUG messages.
merlin -execute target/classes -config conf/config.xml Starting Merlin 3.3-SNAPSHOT. ==================== Platform: Linux Java Home: /usr/java Merlin Home: /dev_sandbox/avalon/merlin/target/merlin Security policy: /dev_sandbox/avalon/merlin/target/merlin/bin/security.policy JVM Options: Bootstrap JAR: /dev_sandbox/avalon/merlin/target/merlin/bin/lib/merlin-cli-3.3-SNAPSHOT.jar Merlin Arguments: -execute target/classes -config conf/config.xml
[INFO ] (kernel): info report ----------------------------------------------------------- Merlin Kernel Environment Listing -----------------------------------------------------------
${user.dir} == /dev_sandbox/avalon/merlin/platform/tutorials/hello ${user.home} == /dev1
${avalon.repository.cache} == /dev_sandbox/avalon/merlin/target/merlin/system ${avalon.repository.online} == true ${avalon.repository.hosts} == http://dpml.net,http://ibiblio.org/maven
${merlin.lang} == null ${merlin.home} == /dev_sandbox/avalon/merlin/target/merlin ${merlin.system} == /dev_sandbox/avalon/merlin/target/merlin/system ${merlin.config} == /dev_sandbox/avalon/merlin/target/merlin/config ${merlin.kernel} == file:/dev_sandbox/avalon/merlin/target/merlin/config/kernel.xml ${merlin.logging.implementation} == artifact:avalon-logging/avalon-logkit-impl#1.0-SNAPSHOT ${merlin.logging.config} == null ${merlin.runtime} == artifact:avalon-activation/avalon-activation-impl#2.0-SNAPSHOT ${merlin.override} == conf/config.xml ${merlin.dir} == /dev_sandbox/avalon/merlin/platform/tutorials/hello ${merlin.temp} == /tmp ${merlin.context} == /dev_sandbox/avalon/merlin/platform/tutorials/hello/home ${merlin.anchor} == /dev_sandbox/avalon/merlin/platform/tutorials/hello ${merlin.info} == true ${merlin.debug} == false ${merlin.audit} == false ${merlin.server} == false ${merlin.autostart} == true ${merlin.code.security.enabled} == false ${merlin.deployment.timeout} == 1000 ${merlin.repository} == /dev_sandbox/avalon/repository ${merlin.repository.hosts} == http://dpml.net/,http://ibiblio.org/maven/ ${merlin.deployment} == file:${user.dir}/target/classes/
----------------------------------------------------------- [INFO ] (kernel): building application model [INFO ] (kernel): install phase [INFO ] (kernel): installing: file:${user.dir}/target/classes/ [INFO ] (tutorial.hello): logging [INFO ] (tutorial.hello): initialization [INFO ] (tutorial.hello): execution [INFO ] (tutorial.hello): disposal
One other question:
in the example instructions, it shows the last few info messages but does not mention all the Merlin Kernel Environment Listing stuff. I was assuming that the env stuff should only display if you add a info flag (i.e. merlin -execute target\classes -info)
Any hints?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
|------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/merlin/distributions/latest | |------------------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
