I'm in a project, where we develop an Eclipse RCP Application and build it with Tycho.
But now I have a problem which makes it hard to continue.
.
My project structure is like this:
-cdo-server plugin
|- config folder with cdo-server.xml
|- pom.xml
-cdo-server-product
|-pom.xml
-master
|-pom.xml
When I start my cdo-server.product as Eclipse application everything works fine.
When I build it and materialize it with Tycho / Maven, it also has a BUILD
SUCCESS. But when I start the CDO-CommonRepositoryServer.app which was
built by inMaven, there is the error:
!MESSAGE CDO server configuration not found:
/Users/pathtoCDO-Server/CDO-CommonRepositoryServer.app/Contents/MacOS/${resource_loc:/cdo.server/config}/cdo-server.xml.
This is logical, because this is the wrong path. When I enter the absolute path to the cdo-server.xml in the vmargs (-Dnet4j.config=/Users/pathtoCDO-config/cdo-server.xml
)
it also works. However, I want to make it relative, so that everybody
in our git-repo can use it and not only in my folder structure.
Is there any possibility to make this path relative?
With -Dnet4j.config="${resource_loc:/cdo.server/config}"
it only works when i run it as an eclipse application, but not as maven built .app file.
I also tried to use project_loc instead of resource_loc, but it has completely the same behavior!