/** * Possibly null, whitespace-separated (including TAB, NL, etc) VM options to be used to launch * Maven process. * * <p>If mavenOpts is null or empty, we'll return the globally-defined MAVEN_OPTS. */ public String getMavenOpts() { if ((mavenOpts != null) && (mavenOpts.trim().length() > 0)) { return mavenOpts.replaceAll("[\t\r\n]+", " "); } else { String globalOpts = DESCRIPTOR.getGlobalMavenOpts(); if (globalOpts != null) { return globalOpts.replaceAll("[\t\r\n]+", " "); } else { return globalOpts; } } }