/** * Copy constructor. * * @param other the instance to copy */ public CommandLine(final CommandLine other) { this.executable = other.getExecutable(); this.isFile = other.isFile(); this.arguments.addAll(other.arguments); if (other.getSubstitutionMap() != null) { final Map<String, Object> omap = new HashMap<String, Object>(); this.substitutionMap = omap; final Iterator<String> iterator = other.substitutionMap.keySet().iterator(); while (iterator.hasNext()) { final String key = iterator.next(); omap.put(key, other.getSubstitutionMap().get(key)); } } }
if (cmd.isFile()) {// We assume it is it a script file out.print("$ @");