Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » What API to resolve @config.dir
What API to resolve @config.dir [message #735583] Wed, 12 October 2011 09:42 Go to next message
Sébastien  Gandon is currently offline Sébastien GandonFriend
Messages: 184
Registered: July 2009
Senior Member
Hello,
I'd like to provision my RCP application but the I do not find any API to resolve the @config.dir cause I try to use
eclipse.p2.data.area=@config.dir/../p2/
but cannot get the path to it.

Any idea ?

Thanks.
Re: What API to resolve @config.dir [message #737009 is a reply to message #735583] Fri, 14 October 2011 15:13 Go to previous message
Sébastien  Gandon is currently offline Sébastien GandonFriend
Messages: 184
Registered: July 2009
Senior Member
I found the answer, in fact i needed to create a agent for provisioning the product I was executing and the agent constructor take a null as an argument to use the default platform agent. That is how I solved the problem.
Otherwise, you may find how to parse it in org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
private void readp2DataArea(Properties props, URI configArea) throws URISyntaxException {
		if (props.getProperty(KEY_ECLIPSE_PROV_DATA_AREA) != null) {
			String url = props.getProperty(KEY_ECLIPSE_PROV_DATA_AREA);
			if (url != null) {
				if (url.startsWith(CONFIG_DIR))
					url = "file:" + url.substring(CONFIG_DIR.length()); //$NON-NLS-1$
				props.setProperty(KEY_ECLIPSE_PROV_DATA_AREA, URIUtil.makeAbsolute(FileUtils.fromFileURL(url), configArea).toString());
			}
		}
	}

Previous Topic:[P2] provisioning with InstallOperation completly messes my config.ini
Next Topic:Eclipse Update Site Mirror Tool
Goto Forum:
  


Current Time: Fri Apr 19 10:44:42 GMT 2024

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

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

Back to the top