Example #1
0
 public W3CWidget convert(final File crxFile, boolean save) throws Exception {
   W3CWidget widget;
   if (save) {
     widget = Crx2Widget.convert(parse(crxFile, false));
     ConfigBuilder builder = new ConfigBuilder(widget);
     File configFile = new File(unzippedCrxDirectory, "config.xml");
     new ContentShimBuilder(widget).save(unzippedCrxDirectory);
     builder.save(configFile);
   } else {
     widget = Crx2Widget.convert(parse(crxFile, true));
   }
   return widget;
 }
Example #2
0
 public W3CWidget convert(final File crxFile) throws Exception {
   return Crx2Widget.convert(parse(crxFile, true));
 }