You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to add a new type of task, that will allow to define functions
(written in Java, Jython, JavaScript, AWK, etc. ) specified either directly
within Hamake-file or as a reference to external file. Task will be defined by
a tag '<function>', with two optional attributes: 'language=' and 'file', and
one mandatory - 'id'. In case language is not specified, JavaScript will be
used. 'file' attribute will be used to reference a file with script or program.
Unlike 'exec' task, 'function' task will have a direct read and write access
to properties, defined globally for the Hamake-file. Also, one will be able to
use functions for evaluation of expressions. Such tasks will allow to make
Hamake-file less awkward and reduce its size by elimination need to use
'<parameter>' tag to pass values of properties at a script. 'function' tasks
will be useful for those, who want to add some complicated logic at the
execution flow, e.g. run tasks only during specified time of a day, set a
parameter according to some OS parameter, modify output of one task, before
passing it as an input to other, e.t.c. Vadim, Peter could you please comment
this request for a new feature? Vladimir
Original issue reported on code.google.com by [email protected] on 5 Aug 2011 at 9:13
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 5 Aug 2011 at 9:13The text was updated successfully, but these errors were encountered: