예제 #1
0
 /**
  * Views plugin creates copy of technical projects and should be allowed to copy all measures even
  * internal ones
  */
 private boolean isTechnicalProjectCopy(Resource resource) {
   return Scopes.FILE.equals(resource.getScope())
       && Qualifiers.PROJECT.equals(resource.getQualifier());
 }
예제 #2
0
 /** @return whether the resource is the root project */
 public static boolean isRootProject(Resource resource) {
   return Qualifiers.PROJECT.equals(resource.getQualifier());
 }