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 IR3toIDL3 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 imports_; 59 60 66 71 public IR3toIDL3(Map project_properties) 72 { 73 super(project_properties); 75 76 dest_file_ = "generated.idl3"; 78 scope_ = null; 79 imports_ = new java.util.ArrayList (); 80 } 81 82 88 94 97 public void 98 configure() 99 { 100 Iterator it = null; 101 102 setXmlFile( project_properties_.getProperty("OpenCCM_HOMEDIR") + "/xml/launcher/IR3toIDL3.xml" ); 103 addProperty( "OpenCCM_CONFIG_DIR", 104 project_properties_.getProperty("OpenCCM_CONFIG_DIR") ); 105 addArgument("-o"); 107 addArgument(dest_file_); 108 for (it = imports_.iterator(); it.hasNext(); ) 110 { 111 addArgument("-i"); 112 addArgument( (String ) it.next() ); 113 } 114 addArgument(scope_); 116 } 117 118 123 public void 124 setDestfile(String filename) 125 { 126 dest_file_ = filename; 127 } 128 129 134 public void 135 setScope(String scope) 136 { 137 scope_ = scope; 138 } 139 140 145 public void 146 addConfiguredImport(StringType str) 147 { 148 imports_.add(str.getName()); 149 } 150 151 } 152 | Popular Tags |