ASF Bugzilla – Attachment 18639 Details for
Bug 40093
ant.PropertyHelper reference not passed to called build
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Cloneable PropertyHelper
PropertyHelper.java.patch (text/plain), 1.22 KB, created by
Stefano Marsili
on 2006-07-26 00:38:41 UTC
(
hide
)
Description:
Cloneable PropertyHelper
Filename:
MIME Type:
Creator:
Stefano Marsili
Created:
2006-07-26 00:38:41 UTC
Size:
1.22 KB
patch
obsolete
>Index: src/main/org/apache/tools/ant/PropertyHelper.java >=================================================================== >--- src/main/org/apache/tools/ant/PropertyHelper.java (revision 424540) >+++ src/main/org/apache/tools/ant/PropertyHelper.java (working copy) >@@ -44,7 +44,7 @@ > * > * @since Ant 1.6 > */ >-public class PropertyHelper { >+public class PropertyHelper implements Cloneable { > > private Project project; > private PropertyHelper next; >@@ -76,7 +76,24 @@ > > //override facility for subclasses to put custom hashtables in > >+ /** >+ * Clones an instance of this class. >+ * <p>Properties and hooks are not cloned.</p> >+ */ >+ public Object clone() throws CloneNotSupportedException { >+ PropertyHelper clone = (PropertyHelper)super.clone(); > >+ // since properties are set separately >+ // just reset as if newly constructed >+ clone.properties = new Hashtable(); >+ clone.userProperties = new Hashtable(); >+ clone.inheritedProperties = new Hashtable(); >+ // for backward compatibility >+ // not trying to clone hooks >+ clone.next = null; >+ return clone; >+ } >+ > // -------------------- Hook management -------------------- > > /**
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 40093
:
18624
|
18638
|
18639
|
18640
|
18641
|
18659
|
18662