/** Returns the full path of a local server's server/{config}/deploy folder */ public String getServerDeployLocation() { String original = ConfigNameResolver.getVariablePattern(ConfigNameResolver.JBOSS_CONFIG_DIR) + "/" + IJBossRuntimeResourceConstants.DEPLOY; // $NON-NLS-1$ return new ConfigNameResolver().performSubstitutions(original, server.getName()); }
/** @return the folder */ public String getFolder() { String result = new ExpressionResolver(resolver).resolve(folder); // This resolved variable still might be relative, so we must // resolve it further if possible, by prepending the server home IPath p = new Path(result); if (!p.isAbsolute()) { String s2 = ConfigNameResolver.getVariablePattern(ConfigNameResolver.JBOSS_SERVER_HOME) + IPath.SEPARATOR + result; result = new ExpressionResolver(resolver).resolve(s2); } return result; }