doing some nasty stuff with java and logging
Remove all .debug stuff in existing java files:
` #!/usr/bin/sh
find . -type f -name ‘*.java’ -print | while read i do
echo $i
echo "" » $i sed “s/^..debug(.)\s*;.$/{;}/” $i > $i.tmp sed “s/(..isDebugEnabled()/(false/” $i.tmp > $i.tmp2 cp $i.tmp2 $i done `
Don’t ask.