1 11 package org.eclipse.pde.internal.build.ant; 12 13 16 public class ConditionTask implements ITask { 17 18 protected String property; 19 protected String value; 20 protected Condition condition; 21 22 29 public ConditionTask(String property, String value, Condition condition) { 30 this.property = property; 31 this.value = value; 32 this.condition = condition; 33 } 34 35 38 public void print(AntScript script) { 39 script.printTab(); 40 script.print("<condition"); script.printAttribute("property", property, true); script.printAttribute("value", value, false); script.println(">"); condition.print(script); 45 script.println("</condition>"); } 47 } 48 | Popular Tags |