doing some nasty stuff with java and logging
by jcf. Average Reading Time: less than a minute.
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.

No comments on ‘doing some nasty stuff with java and logging’
Leave a Reply