The path to the global resources is specified in the initialization file (*.ini) (see de.eplan.eec.global.resourcePath).
The path to the global resources can be queried in scripts with two methods.
- In a local EEC environment the method System.getProperty("en.eplan.eec.global.resourcePath") is used.
- In a Job Server environment, the IUtilAPI.DEFAULT.getGlobalResourcePath() method is applied.
globalResourcePath = System.getProperty("de.eplan.eec.global.resourcePath");
if (globalResourcePath == null)
{
// Set message or default
}
import com.mind8.mechatronic.skill.api.IUtilAPI;
String globalResourcePath = IUtilAPI.DEFAULT.getGlobalResourcePath();