Listing A: SimpleTask.java

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;

public class SimpleTask extends Task {
  private String message = new String("None");
  private Integer message_count = new Integer(6);
  private boolean show_message = false;

  public void execute() throws BuildException {
        if (show_message) {
          for (int i = 0; i < message_count.intValue(); i++) {
             log(i + " " + "SimpleTask Message: " + message);
          }
        }
  }
  public void setMessage_count(Integer message_count) {
    this.message_count = message_count;
  }
  public void setMessage(String message) {
    this.message = message;
  }
  public void setShow_message(boolean show_message) {
    this.show_message = show_message;
  }
}