protected boolean validate0(PatchingArtifactValidationContext context) { if (file.isDirectory()) { context.getErrorHandler().addInconsistent(artifact, this); return false; } return true; }
@Override protected boolean validate0(PatchingArtifactValidationContext context) { if (!file.isDirectory()) { context.getErrorHandler().addInconsistent(artifact, this); return false; } return true; }
protected boolean validate0(PatchingArtifactValidationContext context) { if (file.isDirectory()) { context.getErrorHandler().addInconsistent(artifact, this); return false; } return true; }
@Override protected boolean validate0(PatchingArtifactValidationContext context) { if (!file.isDirectory()) { context.getErrorHandler().addInconsistent(artifact, this); return false; } return true; }
@Override public boolean isValid(PatchingArtifactValidationContext context) { try { // Check the target state we are rolling back to final PatchableTarget.TargetInfo target = rollbackIdentity.getIdentity().loadTargetInfo(); final List<String> patches = target.getPatchIDs(); final String rollbackTo; if (patches.isEmpty()) { rollbackTo = target.getCumulativePatchID(); } else { rollbackTo = patches.get(0); } final String ref = reference.getNextPatchID(); if (rollbackTo.equals(ref)) { return true; } else if (ref == null && Constants.BASE.equals(rollbackTo)) { return true; } else { context.getErrorHandler().addInconsistent(PatchingArtifacts.ROLLBACK_TARGET, this); } } catch (IOException e) { context.getErrorHandler().addError(PatchingArtifacts.ROLLBACK_TARGET, this); } return false; }
@Override public boolean isValid(PatchingArtifactValidationContext context) { try { // Check the target state we are rolling back to final PatchableTarget.TargetInfo target = rollbackIdentity.getIdentity().loadTargetInfo(); final List<String> patches = target.getPatchIDs(); final String rollbackTo; if (patches.isEmpty()) { rollbackTo = target.getCumulativePatchID(); } else { rollbackTo = patches.get(0); } final String ref = reference.getNextPatchID(); if (rollbackTo.equals(ref)) { return true; } else if (ref == null && Constants.BASE.equals(rollbackTo)) { return true; } else { context.getErrorHandler().addInconsistent(PatchingArtifacts.ROLLBACK_TARGET, this); } } catch (IOException e) { context.getErrorHandler().addError(PatchingArtifacts.ROLLBACK_TARGET, this); } return false; }