1 23 package org.enhydra.kelp.common.deployer; 24 25 import org.enhydra.tool.common.DataValidationException; 27 28 import org.enhydra.kelp.common.node.OtterProject; 30 31 public class DeployStepUtil { 33 public static boolean isBuilt(DeployStep step, boolean ran, 34 OtterProject project) { 35 if (ran) { 36 if (!step.isDataValid()) { 37 ran = false; 38 } else if (!step.isDataEqual(project)) { 39 ran = false; 40 } 41 } 42 return ran; 43 } 44 45 public static boolean isDataValid(DeployStep step) { 46 boolean dataValid = true; 47 48 try { 49 step.validateData(); 50 } catch (DataValidationException e) { 51 System.err.print(e.getValidationMessage()); 52 dataValid = false; 53 } 54 return dataValid; 55 } 56 57 } 58 | Popular Tags |