dcsimg
How can I create macro instance from a script task
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Air_Traffic
Posted On:   Thursday, September 4, 2008 04:58 PM

I use Ant 1.6.5 macro called with host '${host}' newTask = project.createTask("my-macro"); newTask.setDynamicAttribute( "host", "bingo"); newTask.execute(); ]] >]]>]]> This returns: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "setDynamicAttribute" of null Any help would be appreciated!    More>>

I use Ant 1.6.5














macro called with host '${host}'


















This returns:

org.mozilla.javascript.EcmaError: TypeError: Cannot call method "setDynamicAttribute" of null


Any help would be appreciated!

   <<Less

Re: How can I create macro instance from a script task

Posted By:   Sandeep_Shilawat  
Posted On:   Tuesday, September 9, 2008 09:44 AM

I think its the way you are calling the my-macro. Create Task has returned a null.
About | Sitemap | Contact