package jetbrains.mps.build.ant.generation;

/*Generated by MPS */

import jetbrains.mps.annotations.GeneratedClass;
import jetbrains.mps.tool.common.Script;
import jetbrains.mps.tool.common.ScriptProperties;

@GeneratedClass(node = "r:f80180a9-2bac-487b-83fc-3ef65f97aea3(jetbrains.mps.build.ant.generation)/861826518923203126", model = "r:f80180a9-2bac-487b-83fc-3ef65f97aea3(jetbrains.mps.build.ant.generation)")
public class GenTestTask extends GenerateTask {
  private boolean myIsDiff = false;

  public GenTestTask() {
    setWorker("jetbrains.mps.tool.builder.make.GenTestWorker");
  }

  @Override
  protected void finalizeScriptSettings(Script whatToDo) {
    super.finalizeScriptSettings(whatToDo);
    if (myIsDiff) {
      whatToDo.putProperty(ScriptProperties.SHOW_DIFF, Boolean.toString(myIsDiff));
    }
  }
  public void setShowDiff(boolean isDifferenceCalculated) {
    myIsDiff = isDifferenceCalculated;
  }
  public void addConfiguredModule(ModuleChunkPart module) {
    myWhatToDo.addModuleFile(module.getFile());
  }
}
