コード例 #1
0
 private File getChildFile(File resource, IEntity child) {
   String contextAbsolutePath = resource.getAbsolutePath();
   String name = ArtifactsUtils.getName(child);
   File member = new File(contextAbsolutePath + File.separator + name);
   // ensure artifact type
   if (member.exists()
       && Matcher.match(ArtifactsEntityDescriptorEnum.FileArtifact, child) != member.isFile())
     member = null;
   return member;
 }
コード例 #2
0
 public void delete(File resource) {
   ArtifactsUtils.deleteTree(resource);
 }