in command-line-debugger/src/main/java/org/apache/ant/debugger/DefaultAuditor.java [39:64]
public void auditPropertyChange(String property, Object value,
Project project) {
List audits = (List) propertyaudits.get(property);
if (audits != null) {
project.log("Adding Attempted Change record for Property: "
+ property, Project.MSG_DEBUG);
// if any target executes while currentTarget = null, it indicates
// the property
// transition happened outside the scope of any target, directly
// inside the build file
PropertyHelper helper = PropertyHelper.getPropertyHelper(project);
StringBuffer sb = new StringBuffer();
sb.append("Property [").append(property).append(
"] change attempted from [");
sb.append(helper.getProperty(property)).append("] to [");
sb.append(value).append("]");
String message = sb.toString();
audits.add(message);
// if there is a debugger attached to this instance, pass the
// control to the debugger
if (prompt != null)
prompt.prompt(message);
}
}