public static void inheritGwtModule(Path path,String inheritableModuleLogicalName) throws IOException {
  final String inheritsString="    <inherits name='" + inheritableModuleLogicalName + "'/>";
  List<String> content=Files.readAllLines(path,UTF_8);
  int i=0, lastInheritsLine=0;
  for (  String str : content) {
    i++;
    if (str.contains("<inherits")) {
      lastInheritsLine=i;
    }
  }
  content.add(lastInheritsLine,inheritsString);
  Files.write(path,content,UTF_8);
}

public static void inheritGwtModule ( Path path , String inheritableModuleLogicalName ) throws IOException { final String inheritsString = "    <inherits name='" + inheritableModuleLogicalName + "'/>" ; List < String > content = Files . readAllLines ( path , UTF_8 ) ; int i = 0 , lastInheritsLine = 0 ; for ( String str : content ) { i ++ ; if ( str . contains ( "<inherits" ) ) { lastInheritsLine = i ; } } content . add ( lastInheritsLine , inheritsString ) ; Files . write ( path , content , UTF_8 ) ; }
inherit the specified module name in the provided gwt module descriptor .
