|
Hi to all,
Im trying to implement a java file replacer that opens about a thousand java files and replaces the first comment lines. That is to say assume that these thousand java files have this comment at the beginning of them:
/*
*
*Date Author Changes
*-------- ------------ -----------------
*${date} ${author} initial release
*
*/
My application should find these comments and replace them with
/*
* Project Name:
* File: ${file_name}
* Purpose:
* History:
*
*Date Author Changes
*-------- ------------ -----------------
*${date} ${author} initial release
*
*/
I dont need any GUI. just I will print the changed files to console.
My question is is there any example applications you guys can suggest and should I use XML and XSL to implement this application?
Any suggestions are highly appriciated.
Best Regards.
Metan
|
|
|
You could implement this solution very well in Java, using regular expressions! You would be able to do this very easy!
|
|
|
|
|
|
|
|