void buildCmd(StringBuffer &cmdLine) { cmdLine.set("eclcc -E"); appendOptPath(cmdLine, 'I', cmd.optImpPath.str()); appendOptPath(cmdLine, 'L', cmd.optLibPath.str()); if (cmd.optManifest.length()) cmdLine.append(" -manifest ").append(cmd.optManifest.get()); if (streq(cmd.optObj.value.sget(), "stdin")) cmdLine.append(" - "); else cmdLine.append(" ").append(cmd.optObj.value.get()); }
void buildCmd(StringBuffer &cmdLine) { cmdLine.set("eclcc -E"); appendOptPath(cmdLine, 'I', cmd.optImpPath.str()); appendOptPath(cmdLine, 'L', cmd.optLibPath.str()); if (cmd.optAttributePath.length()) cmdLine.append(" -main ").append(cmd.optAttributePath.get()); if (cmd.optObj.type == eclObjManifest) cmdLine.append(" -manifest ").append(cmd.optObj.value.get()); else { if (cmd.optManifest.length()) cmdLine.append(" -manifest ").append(cmd.optManifest.get()); if (cmd.optObj.value.get()) cmdLine.append(" ").append(streq(cmd.optObj.value.get(), "stdin") ? "- " : cmd.optObj.value.get()); } if ((int)cmd.optResultLimit > 0) { cmdLine.append(" -fapplyInstantEclTransformations=1"); cmdLine.append(" -fapplyInstantEclTransformationsLimit=").append(cmd.optResultLimit); } }