Hello all,
I 'd like to know how we can deal or intercept "error like" message
when gradle starts from a windows batch script.
As an exemple, i am facing the following problem:
Running gradle from a bat file on windows, I'd like to know if my task
completed correctly in order to do some additional actions or not
within my bat file.
Part of the gradle task consist in calling a copy task that copy one
dir from a src repository to a destination folder.
If the source folder is empty, gradle returns on the console a "build
successful" message, but in the log, if the source folder did not
exist, I can only see an error of type: "task execution stopped by
some action with message: File collection does not contain any files."
but it still returns "BUILD SUCCESFUL"
How can I handle such message as an error and pass it as a return
code? Especially on the copy task, how I can know it completed as
expected (i.e. some files has been copied) and if not how can I stop
the gradle script and return some kind of windows error that can be
handled by the bat file?
Thanks for your help.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email