<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, &#8220;om.oxygenxml.editor.home.url&#8221; is exactly what I need. <BR>
<BR>
Thanks so much,<BR>
Michael Roberts<BR>
<BR>
<BR>
On 4/29/10 3:30 AM, &quot;Radu Coravu&quot; &lt;<a href="radu_coravu@sync.ro">radu_coravu@sync.ro</a>&gt; 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 &quot;open&quot; was called.<BR>
Either you change the current directory to the Oxygen directory before<BR>
running the &quot;open&quot; (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-&gt;About dialog in the &quot;System properties&quot; tab.<BR>
For example the following system property which is set by Oxygen on launch:<BR>
&quot;com.oxygenxml.editor.home.url&quot; may be useful to you (it is in URL form).<BR>
Also the &quot;com.oxygenxml.editor.lib.dir&quot; 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>
&lt;oXygen/&gt; &nbsp;&nbsp;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>
&gt; Oxygen-heads: I have a log4j.properties file for testing a plugin that<BR>
&gt; integrates Oxygen and RSuite. I am currently using Mac OS X.<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;log4j.appender.R.File=oxygen-rsuite-plugin.log<BR>
&gt;<BR>
&gt;<BR>
&gt; If I use oxygenMac.sh from the command-line, the<BR>
&gt; oxygen-rsuite-plugin.log file shows up in the current directory where<BR>
&gt; I run the command.<BR>
&gt;<BR>
&gt; If I launch Oxygen from the &#8220;open&#8221; command on Mac OS X (from an applet<BR>
&gt; in FireFox), then the current working directory is in some random<BR>
&gt; place (that I cannot find).<BR>
&gt;<BR>
&gt; Log4j permits variable substitution in the log4j.properties, from<BR>
&gt; system properties. Are there sysem properties set by Oxygen for the<BR>
&gt; installation directory or some other place where I can locate the log<BR>
&gt; file so it will be in a consistent place? I would like to be able to<BR>
&gt; specify something like this in the log4j.properties file:<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;log4j.appender.R.File=${oxygen.home}/oxygen-rsuite-plugin.log<BR>
&gt;<BR>
&gt;<BR>
&gt; Thanks,<BR>
&gt; Michael Roberts<BR>
&gt;<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; oXygen-user mailing list<BR>
&gt; <a href="oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><BR>
&gt; <a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><BR>
&gt; &nbsp;&nbsp;<BR>
<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>