From logfile to comma delimited format
Posted on 2004-09-08
I have to write a transformation program that takes the log file and creates a comma seprated file from it. These log files parse source code and check for certain strings that point to the fact that some outside vendor's module is being used.
/votest/test_test/SOL4/jdk/lib/font.properties.ja:4:#Copyright(C) 1998-98 test Corp.
The first entry </votest/test_test/SOL4/jdk/lib/font.properties.ja>is the path of the included file
The second entry <4>is the Line number.
The third entry is the extra information on which the string we were looking for were found.
Now from these we have to create:
Our Project in which component used
Our Product in which component used
Open source or not
If license license number
Let me know how to write this transformation engine. Give me code format. Give me an efficient and solid format.
Let me know if I have to use Databases to retrieve information.
Let me know how these kinds of transformation work is generally done.