Read files from PlugIn [message #543324] |
Tue, 29 June 2010 03:05  |
Eclipse User |
|
|
|
Hello,
i using log4J in my RCP application and need the log4j.properties file for the logger configuration.
At the start up of the application (in Acitivator) i configure my
logger with
PropertyConfigurator.configure(PathPropertyFile);
At the moment i read the file from the filesystem, but i want load the property file from the plugin.
PathPropertyFile = "C:\\temp\\log4j.properties";
How i can read the file from the plugin?
I have test it with
private final transient IWorkspaceRoot wsRoot = ResourcesPlugin.getWorkspace().getRoot();
private final transient String configFilePath = wsRoot.getLocation() + File.separator + "log4j.properties";
but here it will be load from the workspace, not from the plugin.
Thx.
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04856 seconds