/** * 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()); }
/** @return whether the resource is the root project */ public static boolean isRootProject(Resource resource) { return Qualifiers.PROJECT.equals(resource.getQualifier()); }