eclipse plugin: change a bit the log location

This commit is contained in:
Timotei Dolean 2010-07-26 13:29:51 +00:00
parent d89b1a6c66
commit 9d447decf0
2 changed files with 9 additions and 9 deletions

View file

@ -2,7 +2,7 @@
\usepackage[top=1cm, bottom=1cm, left=1cm, right=1cm]{geometry}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{verbatim}
\usepackage{verbatim}
\title{Eclipse UMC Plugin Readme}
\author{Timotei Dolean}
@ -74,17 +74,17 @@ After you've setup the environment and built the plugin you can run it.
\subsection{Using the plugin} \hskip\parindent
After you have your plugin installed(user) or running(developer), you can use its features.
But before of all, you must ``Setup the workspace". For this, go in the ``Wesnoth" menu and select ``Setup the workspace". The preferences page for the plugin will pop up, and you must fill them all, so the plugin will work as intended. After you completed the fields, press \textbf{Apply} and then \textbf{OK}. Then the plugin will create a project named ``User addons" in your workspace, which will represent the \textbf{userdata/data/add-ons} directory.
But before of all, you must ``Setup the workspace". For this, go in the ``Wesnoth" menu and select ``Setup the workspace". The preferences page for the plugin will pop up, and you must fill them all, so the plugin will work as intended. After you completed the fields, press \textbf{Apply} and then \textbf{OK}. Then the plugin will create a project named ``User addons" in your workspace, which will represent the \textbf{userdata/data/add-ons} directory.
If there were no errors a message window will open saying: \textbf{Workspace was setup successfully}.\\
\textit{Note:} If you encounter any errors, the plugin logs them in the: \textbf{\textless your temporary directory\textgreater /wesnoth\_plugin}.
\textit{Note:} If you encounter any errors, the plugin logs them in the: \textbf{\textless your temporary directory\textgreater /wesnoth\_plugin/logs}.
That is usually on linux:\\
\indent \textbf{/tmp/wesnoth\_plugin}\\
or on windows:\\
\indent \textbf{C:/Documents and settings/\textless your username\textgreater/Local Settings/Temp/wesnoth\_plugin} \\
or\\
\indent \textbf{C:/Users/\textless your username\textgreater/Local Settings/Temp/wesnoth\_plugin}
\indent \textbf{/tmp/wesnoth\_plugin/logs}\\
or on windows:\\
\indent \textbf{C:/Documents and settings/\textless your username\textgreater/Local Settings/Temp/wesnoth\_plugin/logs} \\
or\\
\indent \textbf{C:/Users/\textless your username\textgreater/Local Settings/Temp/wesnoth\_plugin/logs}
\subsubsection{Wizards} \hskip\parindent
There are some wizards available in the plugin, that will create either projects or config files, based on the specified input. This wizards are available by going to the ``File" menu - New - Other... , and from that list selecting the ``Wesnoth" category.

View file

@ -49,7 +49,7 @@ public class Logger {
return;
try
{
String logFilePath = String.format("%s/log%s.txt",
String logFilePath = String.format("%s/logs/log%s.txt",
WorkspaceUtils.getTemporaryFolder(), WorkspaceUtils.getRandomFileName());
logWriter_ = new BufferedWriter(new FileWriter(logFilePath));