I have a rather strange requirement. I have property files in which same keys are added and a respective java constant is 开发者_Go百科created in interface file.
I want to relive myself of adding into all the files again and again.I know how to read write property file. Is there a way to read / write java file. I mean not the usual file read APIs like
JavaFileReader jfr;
jfr.AddField("fdsf");
I understand its very specific requirement.But hoping someone else also has the need:):)
You could use codemodel. Take a look at this thread. It might help on how to use it.
精彩评论