<HTML>
<HEAD>
<TITLE>Re: [oXygen-user] How to place log file in consistent directory?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12pt'>Indeed, Radu, “om.oxygenxml.editor.home.url” is exactly what I need. <BR>
<BR>
Thanks so much,<BR>
Michael Roberts<BR>
<BR>
<BR>
On 4/29/10 3:30 AM, "Radu Coravu" <<a href="radu_coravu@sync.ro">radu_coravu@sync.ro</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12pt'>Dear Michael,<BR>
<BR>
Indeed probably the current directory remains the directory from which<BR>
the "open" was called.<BR>
Either you change the current directory to the Oxygen directory before<BR>
running the "open" (of course if you have some way to find it out) or:<BR>
All the system properties available from Oxygen can be found in the<BR>
Help->About dialog in the "System properties" tab.<BR>
For example the following system property which is set by Oxygen on launch:<BR>
"com.oxygenxml.editor.home.url" may be useful to you (it is in URL form).<BR>
Also the "com.oxygenxml.editor.lib.dir" points to the Oxygen libraries<BR>
directory using a file path.<BR>
<BR>
Hope this helps.<BR>
Regards,<BR>
Radu<BR>
<BR>
--<BR>
Radu Coravu<BR>
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger<BR>
<a href="http://www.oxygenxml.com">http://www.oxygenxml.com</a><BR>
<BR>
<BR>
On 4/28/2010 3:18 PM, Michael Roberts wrote:<BR>
> Oxygen-heads: I have a log4j.properties file for testing a plugin that<BR>
> integrates Oxygen and RSuite. I am currently using Mac OS X.<BR>
><BR>
> log4j.appender.R.File=oxygen-rsuite-plugin.log<BR>
><BR>
><BR>
> If I use oxygenMac.sh from the command-line, the<BR>
> oxygen-rsuite-plugin.log file shows up in the current directory where<BR>
> I run the command.<BR>
><BR>
> If I launch Oxygen from the “open” command on Mac OS X (from an applet<BR>
> in FireFox), then the current working directory is in some random<BR>
> place (that I cannot find).<BR>
><BR>
> Log4j permits variable substitution in the log4j.properties, from<BR>
> system properties. Are there sysem properties set by Oxygen for the<BR>
> installation directory or some other place where I can locate the log<BR>
> file so it will be in a consistent place? I would like to be able to<BR>
> specify something like this in the log4j.properties file:<BR>
><BR>
> log4j.appender.R.File=${oxygen.home}/oxygen-rsuite-plugin.log<BR>
><BR>
><BR>
> Thanks,<BR>
> Michael Roberts<BR>
><BR>
><BR>
> _______________________________________________<BR>
> oXygen-user mailing list<BR>
> <a href="oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><BR>
> <a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><BR>
> <BR>
<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>