Using a script to extract lines of data form "drools"
I have 1000's of drule/drool files and i am looking for a script i can run that will extract the name of each rule within the file and extract its logger.info line so that i get a text or xml file with
Rule "blah blah1"
logger.info ("declined because you smell");
Rule "blah blah2"
logger.info ("declined because you don't smell");
etc etc, id run the script on each file individually so that i can keep the data seperate for each file.
The rules are built using an ANT built on a satbuild.xml that compiles the .drl file, and various XML viles into a Jar file if that helps at all the .drl is used to filter information from being output and the xml's are Morphs for the data being output