eclipse是否支持在脚本或java类中执行逻辑的预提交检查?具体来说,我需要逻辑在提交到SVN之前在源文件中搜索println
,TODO
等语句。
如果你编程,你知道我在说什么......: - )
public void submitOrder(Order order){
if(order.valid()){
println("hi!")
orderProcessor.validatePayment(order)
println("hi2")
...
}else{
println("logging to journal...") //TODO remove this later
journal.log(INVALID_ORDER, order)
println("after journal")
println("really throwing exception now!")
throw new InvalidOrderException(order)
}
}