1 26 27 package org.objectweb.openccm.command.lib; 28 29 import org.objectweb.util.cmdline.api.CommandLine; 31 import org.objectweb.util.cmdline.lib.DefaultCommandLine; 32 import org.objectweb.openccm.ast.api.FileScope; 33 34 42 43 public class IR3Feed 44 extends CompilerBase 45 implements org.objectweb.openccm.command.api.IR3Feed 46 { 47 53 59 60 public 61 IR3Feed() 62 { 63 this( new DefaultCommandLine("ir3_feed", 65 "omg_idl_file", 66 "Feed the OpenCCM Interface Repository with OMG IDL files", 67 true) ); 68 } 69 70 75 public 76 IR3Feed(CommandLine commandLine) 77 { 78 super(commandLine); 80 81 commandLine.setCheckingArguments(false); 83 } 84 85 91 97 103 110 public int 111 run(java.lang.String [] args) 112 { 113 if(!initAST()) 115 return -1; 116 117 for(int i=0; i<args.length; i++) 118 { 119 FileScope fileScope = compile(args[i]); 121 if(fileScope == null) 122 return -1; 123 } 124 125 return 0; 127 } 128 129 135 141 147 153 159 164 public static void 165 main(String [] args) 166 { 167 IR3Feed ir3feed = new IR3Feed(); 168 ir3feed.runMain(args); 169 } 170 } 171 | Popular Tags |