ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41368] - Nested record tasks produces an empty output file
Date Wed, 18 Apr 2007 01:11:29 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41368>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41368





------- Additional Comments From greg.schueler@gmail.com  2007-04-17 18:11 -------
the problem is that taskdefs/Record.java uses a single static HashTable to hold RecordEntry
objects.  Then 
it calls cleanup() in subBuildFinished(), which cleans out the static HashTable.

This is the wrong behavior, since as a static member it contains all RecordEntries across
Project objects.  

Seems like the correct behavior is to have a HashTable of RecorderEntry's on a per-Project-object
basis. 
(single refid per-project won't work either because the refid could get copied by <ant>
task's inheritRefs 
attribute.)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message