/** Gets the system properties explicitly set in the Maven command line (the "-D" option.) */ public Properties getMavenProperties() { Properties props = new Properties(); for (String arg : getMavenArgument("-D", "--define")) { int idx = arg.indexOf('='); if (idx < 0) props.put(arg, "true"); else props.put(arg.substring(0, idx), arg.substring(idx + 1)); } return props; }