Script task specification
The documentation of the script task states: "All items (tasks, targets, etc) of the running project are accessible from the script, using either their name or id attributes (as long as their names are considered valid Java identifiers, that is). " However, the following fails: Executing a task Surely there are more limitations? Besides, failure modes are different in Rhino (unable to create engine) and Nashorn (reference not defined). Regards, Gintas
Re: Script task specification
On 2019-10-28, Gintautas Grigelionis wrote: > The documentation of the script task states: > "All items (tasks, targets, etc) of the running project are accessible from > the script, using either their name or id attributes (as long as their > names are considered valid Java identifiers, that is). " > However, the following fails: > > > > Executing a task > > > > foo.setMessage("I'm a foo!") > sub.execute() > ]]> > > Does it work if you make main depend on sub? > Surely there are more limitations? Probably :-)