DO NOT REPLY [Bug 32638] - Enhancement to macrodef to support new feature.
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=32638. 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=32638 --- Additional Comments From [EMAIL PROTECTED] 2004-12-10 17:02 --- Created an attachment (id=13725) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=13725action=view) Modified Ant 1.6 based MacroDef.java Simply add the useContentOnly attribute to a macrodef element. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 32638] - Enhancement to macrodef to support new feature.
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=32638. 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=32638 --- Additional Comments From [EMAIL PROTECTED] 2004-12-10 17:04 --- Created an attachment (id=13726) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=13726action=view) Modified Ant 1.6 based MacroInstance.java Modifies execute() and copy() to add all the new macrodef features. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 32638] - Enhancement to macrodef to support new feature.
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=32638. 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=32638 --- Additional Comments From [EMAIL PROTECTED] 2004-12-10 17:41 --- Would that work? There wouldn't be any textual substitution by macroSubs, and my:sequential would know nothing about contents.element.set since not in the eral Project properties, and if you did put it in the project properties, then we have the usual tmp/immutable property issue. The properly pull it off, you'd need the notion of a proper AntContext, the macro instance one on top of the normal project one, no? That's why the ifTrue condition works will in this case, since it sidesteps the issue by letting macrodef do the macroSubs, and evaluate the result as a boolean. --DD -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 32638] - Enhancement to macrodef to support new feature.
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=32638. 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=32638 --- Additional Comments From [EMAIL PROTECTED] 2004-12-10 17:46 --- The properly pull it off, you'd need the notion of a proper AntContext, the macro instance one on top of the normal project one, no? Yes, the previous version of the local-property patch does this, it is a local-property scope not the ant project context. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 32638] - Enhancement to macrodef to support new feature.
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=32638. 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=32638 --- Additional Comments From [EMAIL PROTECTED] 2004-12-10 17:29 --- Another idea would be to use local properties to say if an attribute/element is set or not, then one could use the usually ant idiom of using the if attribute to test for the presence of an attribute/element. macrodef name=x element name=contents optional=yes/ sequential my:sequential if=contents.element.set copy ../ /my:seqential /sequential /macrodef -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]