1 26 27 package org.objectweb.ccm.scripts; 28 29 37 38 public class IR3toJavaImpl 39 extends org.objectweb.openccm.corba.Application 40 { 41 47 53 56 public 57 IR3toJavaImpl() 58 { 59 } 60 61 67 73 76 public static void 77 main(String [] args) 78 { 79 IR3toJavaImpl ir3 = new IR3toJavaImpl(); 80 ir3.start(args); 81 } 82 83 89 96 public int 97 run(String [] args) 98 { 99 org.omg.CORBA.ComponentIR.Repository repositoryRef = 101 org.objectweb.openccm.corba.TheInterfaceRepository.getRepository(); 102 103 org.objectweb.ccm.IDL3.Repository rep = 105 new org.objectweb.ccm.IDL3.Repository(repositoryRef); 106 107 try 108 { 109 org.objectweb.ccm.visitorIDL3.java.IDL3_JavaImpl mi = 110 new org.objectweb.ccm.visitorIDL3.java.IDL3_JavaImpl(rep); 111 112 mi.generate(args[0]); 113 } 114 catch(fr.lifl.cim.jidlscript.lang.JISError ex) 115 { 116 System.err.println(ex.exception.toString()); 117 return 1; 118 } 119 120 return 0; 121 } 122 } 123 | Popular Tags |