1 26 27 package org.objectweb.openccm.task; 28 29 import org.apache.tools.ant.BuildException; 31 import org.apache.tools.ant.Task; 32 33 40 public class Idl2JavaTask 41 extends Task 42 { 43 49 50 private Idl2JavaApplication app_; 51 52 58 61 public 62 Idl2JavaTask() 63 { 64 app_ = new Idl2JavaApplication(); 66 } 67 68 74 80 85 public void 86 setFile(String file) 87 { 88 app_.setFile(file); 89 } 90 91 96 public void 97 setDestdir(String dir) 98 { 99 app_.setDestdir(dir); 100 } 101 102 107 public void 108 setIncludes(String dirs) 109 { 110 app_.setIncludes(dirs); 111 } 112 113 116 public PackageMapping 117 createMapping() 118 { 119 return app_.createMapping(); 120 } 121 122 127 public void 128 execute() 129 throws BuildException 130 { 131 app_.setProjectProperties( getProject().getProperties() ); 132 app_.run(); 133 } 134 } 135 | Popular Tags |