public String getBasePath() { String fullPath = this.path; if (this.root != null) { if (!root.endsWith("/")) { root += "/"; } if (root.startsWith(".")) { // make relative to the web app real path fullPath = getRealPath(this.root.substring(1)) + this.path; } else { fullPath = this.root + this.path; } } return fullPath; }
public String getBasePath() { String fullPath = this.path; if (this.root != null) { if (!root.endsWith("/")) { root += "/"; } if (root.startsWith(".")) { // make relative to the web app real path fullPath = getRealPath(this.root.substring(1)) + this.path; } else { fullPath = this.root + this.path; } } return fullPath; }