Page 1 of 1

Get current workspace

PostPosted: Fri Nov 28, 2014 2:21 pm
by sergei.sheinin
Is there a function in Servoy that returns disk path to current solution? I need to be able to obtain paths to i18N files while running a Servoy form. How would this be done?

Re: Get current workspace

PostPosted: Mon Dec 01, 2014 11:20 am
by jcompagner
you only need this in developer somehow?
there are ways to get the workspace location (its a system property osgi.instance.area ) but that does not give you the full path especially if you are using git and having projects in a completely other location then the workspace.

Re: Get current workspace

PostPosted: Tue Mar 31, 2015 9:46 am
by xavi_tb
if(application.isInDeveloper()){
vWorkspacePath = java.lang.System.getProperty("osgi.instance.area");
vWorkspacePath = vWorkspacePath.substr(6,vWorkspacePath.length)
application.output(vWorkspacePath);
}