Closed KonstantinSviridov closed 8 years ago
Hi guys.
I am running the module in a gulp script and, thus, have the need to report failures. As the execute method returns Promise, I can handle it as
execute
gulp.task('java:build', [],function (done) { var mvn = maven.create(); return mvn.execute(['clean', 'install']).then( function(x){}, function(err){ throw new Error("Compilation failed"); }); });
The execute return type is not documented, so I have a question: do you have plans of changing it?
Regards, Konstantin.
I do NOT plan to change the return type. Even though it is not (yet) documented, the API shall stay Promise-based.
Thanks!
Hi guys.
I am running the module in a gulp script and, thus, have the need to report failures. As the
execute
method returns Promise, I can handle it asThe
execute
return type is not documented, so I have a question: do you have plans of changing it?Regards, Konstantin.