[EMAIL PROTECTED] wrote:
Hi guys,
Is there a simple way to include a resource file in the classpath when running merlin?
The only things you can include in the classpath are jar files.
Some of my avalon components contain classes that uses a log4j logger (not the avalon logger), and I would like to put a log4j.properties file in a directory which then merlin should include in the classloader.
Are you using the log4j logging plugin?
It should be possible just to declare the relative location of the logging config file and it should be resolved relative to ${merlin.dir} but I confess I would need ton confirm this.
Niclas! Help!!
Steve.
p.s. Niclas knows more about this than I do but he's currently swanning around in the States making a good time of things. As soon as he's back under the control of his wife we should be able to get a reasonable answer.
SJM
Is it possible to do this using the <classpath> tag in the block.xml, or is
there a better way?
I have succeeded by using the -Dlog4j.configuration=file:///[absolute
path]/log4j.properties as a parameter to merlin, which is kind of ugly, and at least I'd like to be able to specify relative
path to the file.
Regards, Tobias
------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
|---------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org | |---------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
