コード例 #1
0
 @Override
 public void execute() throws BuildException {
   Injector injector = Guice.createInjector(new SuperNannyModule());
   Util util = injector.getInstance(Util.class);
   DepFetcher fetcher = injector.getInstance(DepFetcher.class);
   if (this.skip) {
     return;
   }
   try {
     CliParser p = new CliParser();
     p.depfile = this.depFile;
     util.setRoot(new File(root));
     fetcher.resolve(new File(root), p);
   } catch (IOException e) {
     log("Errors resolving dependencies for project in " + root);
     throw new BuildException(e);
   }
 }
コード例 #2
0
 @Override
 public List<Requirement> parseDepsFile(File depsFile) throws IOException, InvalidFormatException {
   return parseDeps(util.lineByLine(depsFile));
 }