Browse Source

In addReference, remove calling tostring on the references being added.

The tostring can be a very expensive operation, and causes
massive slowdown when used in conjuction with antcall.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275769 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 21 years ago
parent
commit
bc2e7b5dbf
1 changed files with 1 additions and 11 deletions
  1. +1
    -11
      src/main/org/apache/tools/ant/Project.java

+ 1
- 11
src/main/org/apache/tools/ant/Project.java View File

@@ -1747,17 +1747,7 @@ public class Project {
log("Overriding previous definition of reference to " + name,
MSG_WARN);
}

String valueAsString = "";
try {
valueAsString = value.toString();
} catch (Throwable t) {
log("Caught exception (" + t.getClass().getName() + ")"
+ " while expanding " + name + ": " + t.getMessage(),
MSG_WARN);
}
log("Adding reference: " + name + " -> " + valueAsString,
MSG_DEBUG);
log("Adding reference: " + name, MSG_DEBUG);
references.put(name, value);
}
}


Loading…
Cancel
Save