1 19 20 package ort.netbeans.modules.tasklist.usertasksant; 21 22 import java.io.File ; 23 import org.apache.tools.ant.BuildException; 24 import org.apache.tools.ant.Task; 25 import org.netbeans.modules.tasklist.usertasks.translators.ICalExportFormat; 26 import org.netbeans.modules.tasklist.usertasks.translators.XmlExportFormat; 27 28 29 34 public class ICalExportTask extends Task { 35 private File in, out; 36 private String format; 37 38 41 public ICalExportTask() { 42 } 43 44 public File getIn() { 45 return in; 46 } 47 48 public void setIn(File in) { 49 this.in = in; 50 } 51 52 public File getOut() { 53 return out; 54 } 55 56 public void setOut(File out) { 57 this.out = out; 58 } 59 60 public String getFormat() { 61 return format; 62 } 63 64 public void setFormat(String format) { 65 this.format = format; 66 } 67 68 public void execute() throws BuildException { 69 if ("xml".equals(format)) { 70 XmlExportFormat ef = new XmlExportFormat(); 71 } else if ("html/effort".equals(format)) { 73 } else if ("plain".equals(format)) { 75 } else { 77 throw new BuildException("Unknown export format: " + format); 78 } 79 } 80 } 81 | Popular Tags |