コード例 #1
0
 void addArtifacts(ArtifactList artifactList) throws IOException {
   artifactList.downloadList();
   Collection<? extends Downloadable> list = artifactList.getArtifacts();
   if (list == null || list.size() == 0) {
     logNoFiles(artifactList);
     return;
   }
   artifacts.addAll(list);
 }
コード例 #2
0
 /*
  * (non-Javadoc)
  *
  * @see de.fosd.jdime.common.Artifact#initializeChildren()
  */
 @Override
 public final void initializeChildren() {
   assert (astnode != null);
   ArtifactList<ASTNodeArtifact> children = new ArtifactList<>();
   for (int i = 0; i < astnode.getNumChildNoTransform(); i++) {
     ASTNodeArtifact child = new ASTNodeArtifact(astnode.getChild(i));
     child.setParent(this);
     child.setRevision(getRevision());
     children.add(child);
   }
   setChildren(children);
 }