svn - Eclipse pre-commit hook to execute arbitrary logic -
does eclipse support pre-commit checks executing logic in script or java class? specifically, need logic search source file println
, todo
, etc., statements before committing svn.
if program, know i'm talking about... :-)
public void submitorder(order order){ if(order.valid()){ println("hi!") orderprocessor.validatepayment(order) println("hi2") ... }else{ println("logging journal...") //todo remove later journal.log(invalid_order, order) println("after journal") println("really throwing exception now!") throw new invalidorderexception(order) } }
Comments
Post a Comment