1 18 23 24 package org.apache.tools.ant.taskdefs.optional.perforce; 25 26 import org.apache.tools.ant.BuildException; 27 28 33 public class P4Reopen extends P4Base { 34 35 private String toChange = ""; 36 37 42 public void setToChange(String toChange) throws BuildException { 43 if (toChange == null || toChange.equals("")) { 44 throw new BuildException("P4Reopen: tochange cannot be null or empty"); 45 } 46 47 this.toChange = toChange; 48 } 49 50 54 public void execute() throws BuildException { 55 if (P4View == null) { 56 throw new BuildException("No view specified to reopen"); 57 } 58 execP4Command("-s reopen -c " + toChange + " " + P4View, new SimpleP4OutputHandler(this)); 59 } 60 } 61 | Popular Tags |