How do i make a batch file to stop running other/next commands if first or any other command fails.
call grails clean 
call grails compile 
call grails package
call grails war 
If grails clean fail then grails compile should not run and same with others.