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.
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());
}
}
}