csantanapr / grunt-cordovacli

Wraps web app with Cordova CLI using GruntJS
Apache License 2.0
60 stars 31 forks source link

Ignore error option #13

Closed mlegenhausen closed 9 years ago

mlegenhausen commented 9 years ago

For some tasks like the platform add operation it would be nice to get a success even cordova returns an error. This would allow to make tasks that can optionally add the platform if it does not exists.

mdomi commented 9 years ago

This would allow to make tasks that can optionally add the platform if it does not exist

Isn't that what the platform add command does? Where would the error come from in this case?

mlegenhausen commented 9 years ago

Cordova returns an error (status code 1) if the platform already exists. This is annoying when you have a task where you always want to make sure that a certain platform exists.

csantanapr commented 9 years ago

@mlegenhausen Any error from cordova returns status code 1, this means using the status code from cordova is useless, either is 0 or 1 for any error. I added the feature using other methods in 0.6.0 hope it is useful

mlegenhausen commented 9 years ago

Thanks will take a look :)