java - Getting a specific word from files in a larger directory(workspace) -
java - Getting a specific word from files in a larger directory(workspace) -
i need document in word table names used application , in classses used.
it big application. did file seaarch in workspace using extend class name (testtransformation) , got 142 java files referencing table names.
i need fetch table names , respective classes this.
so, thought of writing java code first list of java files extending testtransformation , trying tables names in , respective class name in list, not manully re-create paste it.
is possible that?
eg: of 1 class search: need fetch class name addcustomer , table name h005table
public class addcustomer extends testtranformation { ...//codes..... .... setin.setparms( "h005table", // tablename m.getnumber()) }
using bufferedreader read lines till "public class" line , when pointer @ "public class" line check whether has "extends ". if yes, add together class name list. thats how can in java. loop runs listfiles()
if environment unix, below rather java program.
find . -name "*.java" | xargs grep "extends classname"
java java-ee
Comments
Post a Comment