1 26 27 package org.objectweb.openccm.task; 28 29 import java.util.Iterator ; 31 import java.util.Map ; 32 33 34 41 public class IR3toIDL2 42 extends LauncherApplication 43 implements Runnable 44 { 45 51 52 private String dest_file_; 53 54 55 private String scope_; 56 57 58 private java.util.List includes_; 59 60 61 private java.util.List user_includes_; 62 63 69 74 public IR3toIDL2(Map project_properties) 75 { 76 super(project_properties); 78 79 dest_file_ = "generated.idl"; 81 scope_ = null; 82 includes_ = new java.util.ArrayList (); 83 user_includes_ = new java.util.ArrayList (); 84 } 85 86 92 98 101 public void 102 configure() 103 { 104 Iterator it = null; 105 106 setXmlFile( project_properties_.getProperty("OpenCCM_HOMEDIR") + "/xml/launcher/IR3toIDL2.xml" ); 107 addProperty( "OpenCCM_CONFIG_DIR", 108 project_properties_.getProperty("OpenCCM_CONFIG_DIR") ); 109 addArgument("-o"); 111 addArgument(dest_file_); 112 for (it = includes_.iterator(); it.hasNext(); ) 114 { 115 addArgument("-i"); 116 addArgument( (String ) it.next() ); 117 } 118 for (it = user_includes_.iterator(); it.hasNext(); ) 120 { 121 addArgument("-ipath"); 122 addArgument( (String ) it.next() ); 123 } 124 addArgument(scope_); 126 } 127 128 133 public void 134 setDestfile(String filename) 135 { 136 dest_file_ = filename; 137 } 138 139 144 public void 145 setScope(String scope) 146 { 147 scope_ = scope; 148 } 149 150 155 public void 156 addConfiguredInclude(StringType str) 157 { 158 includes_.add(str.getName()); 159 } 160 161 166 public void 167 addConfiguredUserinclude(StringType str) 168 { 169 user_includes_.add(str.getName()); 170 } 171 172 } 173 | Popular Tags |