Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Birt create a workspace and configuration directory under the engine-home
Birt create a workspace and configuration directory under the engine-home [message #360773] Fri, 22 February 2008 11:00 Go to next message
Eclipse User
Originally posted by: calmacroi.myrddin.ch

hello
why does birt create a workspace and configuration directory under the
engine-home dir? and how can i supress this behavior, because our
customers do not have the privileges to write in this directory.

thanks for any help
patrick
Re: Birt create a workspace and configuration directory under the engine-home [message #360783 is a reply to message #360773] Fri, 22 February 2008 16:54 Go to previous messageGo to next message
Nicolas Thuillier is currently offline Nicolas Thuillier
Messages: 17
Registered: July 2009
Junior Member
Patrick,

You can use the following code:

import import org.eclipse.birt.report.engine.api.*;
import import org.eclipse.birt.core.framework.*;

PlatformConfig platformConfig = new PlatformConfig();
HashMap mapConfig = new HashMap();
mapConfig.put("osgi.configuration.area","C:/temp/platform/configuration "
);
mapConfig.put("osgi.instance.area","C:/temp/platform/workspace ");
mapConfig.put("osgi.instance.area.default","C:/temp/platform/workspace ")
;
platformConfig.setOSGiConfig(mapConfig);

IPlatformContext context = new PlatformServletContext(sc);
platformConfig.setPlatformContext(context);
Platform.startup( platformConfig );


Hope it helps, it works for me

Nicolas

Patrick wrote:

> hello
> why does birt create a workspace and configuration directory under
> the engine-home dir? and how can i supress this behavior, because our
> customers do not have the privileges to write in this directory.
>
> thanks for any help
> patrick



--
Re: Birt create a workspace and configuration directory under the engine-home [message #726720 is a reply to message #360783] Mon, 19 September 2011 10:52 Go to previous message
CJ48  is currently offline CJ48
Messages: 4
Registered: September 2011
Junior Member
Hi,
I am new to birt. Can you please explain how can I change change temp
directory location? My application generates flat text files, birt generates
excel files from these flat files. I have created one environment variable
MY_TEMP and gave it's value as 'D:\my_temp'. Now I want birt to use this folder
to store all temporary files.
Previous Topic:How to change birt temp directory location?
Next Topic:Date Picker
Goto Forum:
  


Current Time: Fri Oct 24 12:55:31 GMT 2014

Powered by FUDForum. Page generated in 0.10542 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software