1 package org.tigris.scarab.util.xmlissues; 2 3 48 49 import java.io.File ; 50 51 import org.apache.tools.ant.taskdefs.MatchingTask; 52 import org.apache.tools.ant.BuildException; 53 54 61 public class ImportIssuesTask extends MatchingTask 62 { 63 private ImportIssues importIssues = null; 64 65 public ImportIssuesTask() 66 { 67 importIssues = new ImportIssues(); 68 } 69 70 public boolean getSendEmail() 71 { 72 return importIssues.getSendEmail(); 73 } 74 75 public void setSendEmail(boolean state) 76 { 77 importIssues.setSendEmail(state); 78 } 79 80 public File getXmlFile() 81 { 82 return importIssues.getXmlFile(); 83 } 84 85 public void setXmlFile(File xmlFile) 86 { 87 importIssues.setXmlFile(xmlFile); 88 } 89 90 public File getConfigDir() 91 { 92 return importIssues.getConfigDir(); 93 } 94 95 public void setConfigDir(File configDir) 96 { 97 importIssues.setConfigDir(configDir); 98 } 99 100 public String getConfigFile() 101 { 102 return importIssues.getConfigFile(); 103 } 104 105 public void setConfigFile(String configProps) 106 { 107 importIssues.setConfigFile(configProps); 108 } 109 110 public String getTurbineResources() 111 { 112 return importIssues.getTurbineResources(); 113 } 114 115 public void setTurbineResources(String trProps) 116 { 117 importIssues.setTurbineResources(trProps); 118 } 119 120 public void execute() 121 throws BuildException 122 { 123 try 124 { 125 importIssues.execute(); 126 } 127 catch (Exception e) 128 { 129 throw new BuildException(e); } 131 } 132 } 133 | Popular Tags |