1 17 18 package org.apache.tools.ant.taskdefs.optional.ide; 19 20 25 import org.apache.tools.ant.Task; 26 27 28 public class VAJTask extends Task { 29 32 class VAJLocalToolUtil extends VAJLocalUtil { 33 public void log(String msg, int level) { 34 VAJTask.this.log(msg, level); 35 } 36 } 37 38 protected String remoteServer = null; 40 41 private VAJUtil util = null; 43 44 protected boolean haltOnError = true; 46 47 50 protected VAJUtil getUtil() { 51 if (util == null) { 52 if (remoteServer == null) { 53 util = new VAJLocalToolUtil(); 54 } else { 55 util = new VAJRemoteUtil(this, remoteServer); 56 } 57 } 58 return util; 59 } 60 61 67 public void setRemote(String remoteServer) { 68 this.remoteServer = remoteServer; 69 } 70 71 78 public void setHaltonerror(boolean newHaltOnError) { 79 haltOnError = newHaltOnError; 80 } 81 } 82 | Popular Tags |