示例#1
0
    @Override
    protected void setOptionFromMapEntry(ConanParameter param, String value) {

      Params params = this.getParams();

      if (param.equals(params.getJobPrefix())) {
        this.jobPrefix = value;
      } else if (param.equals(params.getRunParallel())) {
        this.runParallel = Boolean.parseBoolean(value);
      } else {
        throw new IllegalArgumentException("Unknown param found: " + param);
      }
    }
示例#2
0
    @Override
    public ParamMap getArgMap() {

      Params params = this.getParams();
      ParamMap pvp = new DefaultParamMap();

      pvp.put(params.getRunParallel(), Boolean.toString(this.runParallel));

      if (this.jobPrefix != null) {
        pvp.put(params.getJobPrefix(), this.jobPrefix);
      }

      return pvp;
    }