1 package org.apache.torque.task; 2 3 18 19 import org.apache.tools.ant.Task; 20 import org.apache.velocity.util.StringUtils; 21 22 28 public class PackageAsPathTask extends Task 29 { 30 31 32 protected String pckg; 33 34 35 protected String name; 36 37 41 public void execute() 42 { 43 super.getProject().setUserProperty(this.name, 44 StringUtils.getPackageAsPath(this.pckg)); 45 } 46 47 50 public void setPackage(String pckg) 51 { 52 this.pckg = pckg; 53 } 54 55 58 public void setName(String name) 59 { 60 this.name = name; 61 } 62 } 63 | Popular Tags |