0

I want to prevent SVN commit ..if in JAVA file below mention lines are present..

System.out.println();
printStackTrace();
teo van kot
  • 12,350
  • 10
  • 38
  • 70

1 Answers1

0

You can use a pre commit hook to run a script just prior to commit completion.

Check this SO post for sample script scanning for particular string.

Community
  • 1
  • 1
Maciej Lach
  • 1,622
  • 3
  • 20
  • 27