70 import com.sun.tools.corba.se.idl.UnionBranch; 71 import com.sun.tools.corba.se.idl.UnionEntry; 72 import com.sun.tools.corba.se.idl.ValueEntry; 73 import com.sun.tools.corba.se.idl.ValueBoxEntry; 74 import com.sun.tools.corba.se.idl.InvalidArgument; 75 76 /** 77 * Compiler usage: 78 * <br><br> 79 * 80 * java com.sun.tools.corba.se.idl.toJavaPortable.Compile [options] <idl file> 81 * <br><br> 82 * 83 * where <idl file> is the name of a file containing IDL definitions, 84 * and [options] is any combination of the options listed below. The options 85 * may appear in any order. 86 * <br><br> 87 * 88 * Options: 89 * <dl> 90 * <dt>-i <include path> 91 * <dd>By default, the current directory is scanned for included files. 92 * This option adds another directory. See also the note below. 93 * 94 * <dt>-d <symbol> 95 * <dd>This is equivalent to the following line in an IDL file: 96 * #define <symbol> 97 * 98 * <dt>-f<side> 99 * <dd>Defines what bindings to emit. <side> is one of client, server, all, 100 * serverTIE, allTIE. serverTIE and allTIE cause delegate model skeletons 101 * to be emitted. If this flag is not used, -fclient is assumed. 102 * allPOA has the same effect as all, except for generation POA type skeletons. 103 * 104 * <dt>-keep 105 * <dd>If a file to be generated already exists, do not overwrite it. By 106 * default it is overwritten. 107 * 108 * <dt>-sep <string> 109 * <dd>Only valid with -m. Replace the file separator character with 110 * <string> in the file names listed in the .u file. 111 * 112 * <dt>-emitAll 113 * <dd>Emit all types, including those found in #included files. 114 * 115 * <dt>-v 116 * <dd>Verbose mode. 117 * 118 * <dt>-pkgPrefix <type> <package> 119 * <dd>Whereever <type> is encountered, make sure it resides within 120 * <package> in all generated files. <type> is a fully 121 * qualified, java-style name. 122 * </dl> 123 * 124 * <B>Note:</B> If you have an include path or paths that you will always 125 * be using, it can get tedious putting these on the command with the -i 126 * option all the time. Instead, these can be placed into a config file 127 * called idl.config. This file must be in the CLASSPATH. The format of 128 * the includes line is: 129 * 130 * <pre> 131 * includes=<path1>;<path2>;...;<pathN> 132 * </pre> 133 * 134 * Note that the path separator character, here shown as a semicolon, 135 * is machine dependent. For instance, on Windows 95 this character 136 * is a semicolon, on UNIX it is a colon. 137 **/ 138 public class Compile extends com.sun.tools.corba.se.idl.Compile 139 { 140 /** 141 * 142 **/ 143 public static void main (String[] args) 144 { 145 compiler = new Compile (); 146 compiler.start (args); 147 } // main 148 149 /** 150 * 151 **/ 152 public void start (String[] args) | 70 import com.sun.tools.corba.se.idl.UnionBranch; 71 import com.sun.tools.corba.se.idl.UnionEntry; 72 import com.sun.tools.corba.se.idl.ValueEntry; 73 import com.sun.tools.corba.se.idl.ValueBoxEntry; 74 import com.sun.tools.corba.se.idl.InvalidArgument; 75 76 /** 77 * Compiler usage: 78 * <br><br> 79 * 80 * java com.sun.tools.corba.se.idl.toJavaPortable.Compile [options] <idl file> 81 * <br><br> 82 * 83 * where <idl file> is the name of a file containing IDL definitions, 84 * and [options] is any combination of the options listed below. The options 85 * may appear in any order. 86 * <br><br> 87 * 88 * Options: 89 * <dl> 90 * <dt>{@code -i <include path>} 91 * <dd>By default, the current directory is scanned for included files. 92 * This option adds another directory. See also the note below. 93 * 94 * <dt>{@code -d <symbol>} 95 * <dd>This is equivalent to the following line in an IDL file: 96 * {@code #define <symbol>} 97 * 98 * <dt>{@code -f <side>} 99 * <dd>Defines what bindings to emit. {@code <side>} is one of client, server, all, 100 * serverTIE, allTIE. serverTIE and allTIE cause delegate model skeletons 101 * to be emitted. If this flag is not used, -fclient is assumed. 102 * allPOA has the same effect as all, except for generation POA type skeletons. 103 * 104 * <dt>{@code -keep} 105 * <dd>If a file to be generated already exists, do not overwrite it. By 106 * default it is overwritten. 107 * 108 * <dt>{@code -sep <string>} 109 * <dd>Only valid with -m. Replace the file separator character with 110 * {@code <string>} in the file names listed in the .u file. 111 * 112 * <dt>{@code -emitAll} 113 * <dd>Emit all types, including those found in #included files. 114 * 115 * <dt>{@code -v} 116 * <dd>Verbose mode. 117 * 118 * <dt>{@code -pkgPrefix <type> <package>} 119 * <dd>Whereever {@code <type>} is encountered, make sure it resides within 120 * {@code <package>} in all generated files. {@code <type>} is a fully 121 * qualified, java-style name. 122 * </dl> 123 * 124 * <B>Note:</B> If you have an include path or paths that you will always 125 * be using, it can get tedious putting these on the command with the -i 126 * option all the time. Instead, these can be placed into a config file 127 * called idl.config. This file must be in the CLASSPATH. The format of 128 * the includes line is: 129 * 130 * <pre>{@code 131 * includes=<path1>;<path2>;...;<pathN> 132 * }</pre> 133 * 134 * Note that the path separator character, here shown as a semicolon, 135 * is machine dependent. For instance, on Windows 95 this character 136 * is a semicolon, on UNIX it is a colon. 137 **/ 138 public class Compile extends com.sun.tools.corba.se.idl.Compile 139 { 140 /** 141 * 142 **/ 143 public static void main (String[] args) 144 { 145 compiler = new Compile (); 146 compiler.start (args); 147 } // main 148 149 /** 150 * 151 **/ 152 public void start (String[] args) |