jdk/src/solaris/doc/sun/man/man1/idlj.1
author ohair
Tue, 25 May 2010 15:58:33 -0700
changeset 5506 202f599c92aa
parent 2692 345bc8d65b19
child 5865 47da38a8c0f0
permissions -rw-r--r--
6943119: Rebrand source copyright notices Reviewed-by: darcy, weijun
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
     1
." Copyright 2001-2006 Sun Microsystems, Inc.  All Rights Reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
." This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
." under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
." published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
." This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
." FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
." version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
." accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
." You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
." 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
."
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2692
diff changeset
    18
." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2692
diff changeset
    19
." or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2692
diff changeset
    20
." questions.
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    21
."
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    22
.TH idlj 1 "04 May 2009"
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    23
." Generated from HTML by html2man (author: Eric Armstrong)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    26
.SH "Name"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
idlj \- The IDL\-to\-Java Compiler
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
\f3idlj\fP generates Java bindings from a given IDL file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.SH "Synopsis"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
idlj [ \fP\f3options\fP\f3 ] \fP\f4idl\-file\fP\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
where \f2idl\-file\fP is the name of a file containing Interface Definition Language (IDL) definitions. \f2Options\fP may appear in any order, but must precede the \f2idl\-file\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
.SH "Description"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    54
The IDL\-to\-Java Compiler generates the Java bindings for a given IDL file.\  For binding details, see the 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    55
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    56
\f2OMG IDL to Java Language Language Mapping Specification\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    57
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    58
http://java.sun.com/javase/6/docs/technotes/guides/idl/mapping/jidlMapping.html. Some previous releases of the IDL\-to\-Java compiler were named \f2idltojava\fP. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
Emitting Client and Server Bindings
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
To generate Java bindings for an IDL file named My.idl: \f2idlj My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
This generates the client\-side bindings and is equivalent to: \f2idlj \fP\f4\-fclient\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
The client\-side bindings do not include the server\-side skeleton. If you want to generate the server\-side bindings for the interfaces: \f2idlj \fP\f4\-fserver\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
Server\-side bindings include the client\-side bindings plus the skeleton, all of which are \f2POA\fP (that is, Inheritance Model) classes. If you want to generate both client and server\-side bindings, use one of the following (equivalent) commands: \f2idlj \fP\f4\-fclient \-fserver\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
\f2idlj \fP\f4\-fall\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
There are two possible server\-side models: the Inheritance Model and the Tie Delegation Model.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
The default server\-side model is the \f2Portable Servant Inheritance Model\fP. Given an interface \f2My\fP defined in \f2My.idl\fP, the file \f2MyPOA.java\fP is generated. You must provide the implementation for \f2My\fP and it must inherit from \f2MyPOA\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    82
\f2MyPOA.java\fP is a stream\-based skeleton that extends 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    83
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    84
\f2org.omg.PortableServer.Servant\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    85
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    86
http://java.sun.com/javase/6/docs/api/org/omg/PortableServer/Servant.html and implements the \f2InvokeHandler\fP interface and the operations interface associated with the IDL interface the skeleton implements.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    89
The \f2PortableServer\fP module for the 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    90
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    91
\f2Portable Object Adapter (POA)\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    92
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    93
http://java.sun.com/javase/6/docs/technotes/guides/idl/POA.html defines the native \f2Servant\fP type. In the Java programming language, the \f2Servant\fP type is mapped to the Java \f2org.omg.PortableServer.Servant\fP class. It serves as the base class for all POA servant implementations and provides a number of methods that may be invoked by the application programmer, as well as methods which are invoked by the POA itself and may be overridden by the user to control aspects of servant behavior.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
Another option for the Inheritance Model is to use the \f2\-oldImplBase\fP flag in order to generate server\-side bindings that are compatible with versions of the Java programming language prior to J2SE 1.4. Note that using the \f2\-oldImplBase\fP flag is non\-standard: these APIs are being deprecated. You would use this flag ONLY for compatibility with existing servers written in J2SE 1.3. In that case, you would need to modify an existing MAKEFILE to add the \f2\-oldImplBase\fP flag to the \f2idlj\fP compiler, otherwise POA\-based server\-side mappings will be generated. To generate server\-side bindings that are backwards compatible:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
\f2idlj \fP\f4\-fclient \-fserver\fP\f2 \fP\f4\-oldImplBase\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
\f2idlj \fP\f4\-fall\fP\f2 \fP\f4\-oldImplBase\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
Given an interface \f2My\fP defined in \f2My.idl\fP, the file \f2_MyImplBase.java\fP is generated. You must provide the implementation for \f2My\fP and it must inherit from \f2_MyImplBase\fP.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
The other server\-side model is called the Tie Model. This is a delegation model. Because it is not possible to generate ties and skeletons at the same time, they must be generated separately. The following commands generate the bindings for the Tie Model:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
\f2idlj \fP\f4\-fall\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
\f2idlj \fP\f4\-fallTIE\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
For the interface \f2My\fP, the second command generates \f2MyPOATie.java\fP. The constructor to \f2MyPOATie\fP takes a \f2delegate\fP. In this example, using the default POA model, the constructor also needs a \f2poa\fP. You must provide the implementation for \f2delegate\fP, but it does not have to inherit from any other class, only the interface \f2MyOperations\fP. But to use it with the ORB, you must wrap your implementation within \f2MyPOATie\fP. For instance:  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
    ORB orb = ORB.init(args, System.getProperties());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
    // Get reference to rootpoa & activate the POAManager
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
    POA rootpoa = (POA)orb.resolve_initial_references("RootPOA");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
    rootpoa.the_POAManager().activate();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
    // create servant and register it with the ORB
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    MyServant myDelegate = new MyServant();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
    myDelegate.setORB(orb); 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
    // create a tie, with servant being the delegate.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
    MyPOATie tie = new MyPOATie(myDelegate, rootpoa);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
    // obtain the objectRef for the tie
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    My ref = tie._this(orb);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
You might want to use the Tie model instead of the typical Inheritance model if your implementation must inherit from some other implementation. Java allows any number of interface inheritance, but there is only one slot for class inheritance. If you use the inheritance model, that slot is used up . By using the Tie Model, that slot is freed up for your own use. The drawback is that it introduces a level of indirection: one extra method call occurs when invoking a method. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
To generate server\-side, Tie model bindings that are compatible with versions of the IDL to Java language mapping in versions prior to J2SE 1.4.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
\f2idlj \fP\f4\-oldImplBase\fP\f2 \fP\f4\-fall\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
\f2idlj \fP\f4\-oldImplBase\fP\f2 \fP\f4\-fallTIE\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
For the interface \f2My\fP, this will generate \f2My_Tie.java\fP. The constructor to \f2My_Tie\fP takes a \f2impl\fP. You must provide the implementation for \f2impl\fP, but it does not have to inherit from any other class, only the interface \f2HelloOperations\fP. But to use it with the ORB, you must wrap your implementation within \f2My_Tie\fP. For instance:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    ORB orb = ORB.init(args, System.getProperties());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
    // create servant and register it with the ORB
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
    MyServant myDelegate = new MyServant();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    myDelegate.setORB(orb); 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
    // create a tie, with servant being the delegate.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    MyPOATie tie = new MyPOATie(myDelegate);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
    // obtain the objectRef for the tie
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    My ref = tie._this(orb);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
Specifying Alternate Locations for Emitted Files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
If you want to direct the emitted files to a directory other than the current directory, invoke the compiler as: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
\f2idlj \fP\f4\-td /altdir\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
For the interface \f2My\fP, the bindings will be emitted to \f2/altdir/My.java\fP, etc., instead of \f2./My.java\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
Specifying Alternate Locations for Include Files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
If \f2My.idl\fP included another idl file, \f2MyOther.idl\fP, the compiler assumes that \f2MyOther.idl\fP resides in the local directory. If it resides in \f2/includes\fP, for example, then you would invoke the compiler with the following command: \f2idlj \fP\f4\-i /includes\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
If \f2My.idl\fP also included \f2Another.idl\fP that resided in \f2/moreIncludes\fP, for example, then you would invoke the compiler with the following command: \f2idlj \fP\f4\-i /includes \-i /moreIncludes\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
Since this form of include can become irritatingly long, another means of indicating to the compiler where to search for included files is provided. This technique is similar to the idea of an environment variable. Create a file named \f2idl.config\fP in a directory that is listed in your CLASSPATH. Inside of \f2idl.config\fP, provide a line with the following form:  \f2includes=/includes;/moreIncludes\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   215
The compiler will find this file and read in the includes list. Note that in this example the separator character between the two directories is a semicolon (;). This separator character is platform dependent. On the Windows platform, use a semicolon, on the Unix platform, use a colon, etc. For more information on \f2includes\fP, see the 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   216
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   217
\f2Setting the Classpath\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   218
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   219
http://java.sun.com/javase/6/docs/technotes/tools/index.html#general.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
Emitting Bindings for Include Files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
By default, only those interfaces, structs, etc, that are defined in the idl file on the command line have Java bindings generated for them. The types defined in included files are not generated. For example, assume the following two idl files:   \f4My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
\f2#include <MyOther.idl>\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
\f2interface My\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
\f2{\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
\f2};\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
\f4MyOther.idl\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
\f2interface MyOther\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
\f2{\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
\f2};\fP\  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
The following command will only generate the java bindings for \f2My\fP: \f2idlj My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
To generate all of the types in \f2My.idl\fP and all of the types in the files that \f2My.idl\fP includes (in this example, \f2MyOther.idl\fP), use the following command: \f2idlj \fP\f4\-emitAll\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
There is a caveat to the default rule. \f2#include\fP statements which appear at global scope are treated as described. These \f2#include\fP statements can be thought of as import statements. \f2#include\fP statements which appear within some enclosing scope are treated as true \f2#include\fP statements, meaning that the code within the included file is treated as if it appeared in the original file and, therefore, Java bindings are emitted for it. Here is an example:   \f4My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
\f2#include <MyOther.idl>\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
\f2interface My\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
\f2{\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
\f2\  #include <Embedded.idl>\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
\f2};\ \fP  \f4MyOther.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
\f2interface MyOther\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
\f2{\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
\f2};\ \fP  \f4Embedded.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
\f2enum E {one, two, three};\fP\  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
Running the following command: \f2idlj My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
will generate the following list of Java files: \f2./MyHolder.java\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
\f2./MyHelper.java\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
\f2./_MyStub.java\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
\f2./MyPackage\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
\f2./MyPackage/EHolder.java\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
\f2./MyPackage/EHelper.java\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
\f2./MyPackage/E.java\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
\f2./My.java\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
Notice that \f2MyOther.java\fP was not generated because it is defined in an import\-like \f2#include\fP. But \f2E.java\fP \f2was\fP generated because it was defined in a true \f2#include\fP. Also notice that since \f2Embedded.idl\fP was included within the scope of the interface \f2My\fP, it appears within the scope of \f2My\fP (that is,in \f2MyPackage\fP). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
If the \f2\-emitAll\fP flag had been used in the previous example, then all types in all included files would be emitted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
Inserting Package Prefixes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
Suppose that you work for a company named ABC that has constructed the following IDL file:   
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
\f4Widgets.idl\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
\f2module Widgets\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
\f2{\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
\f2\  interface W1 {...};\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
\f2\  interface W2 {...};\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
\f2};\fP\  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
Running this file through the IDL\-to\-Java compiler will place the Java bindings for \f2W1\fP and \f2W2\fP within the package \f2Widgets\fP. But there is an industry convention that states that a company's packages should reside within a package named \f2com.<company name>\fP. The \f2Widgets\fP package is not good enough. To follow convention, it should be \f2com.abc.Widgets\fP. To place this package prefix onto the \f2Widgets\fP module, execute the following: \f2idlj \fP\f4\-pkgPrefix Widgets com.abc\fP\f2 Widgets.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
If you have an IDL file which includes \f2Widgets.idl\fP, the \f2\-pkgPrefix\fP flag must appear in that command also. If it does not, then your IDL file will be looking for a \f2Widgets\fP package rather than a \f2com.abc.Widgets\fP package. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
If you have a number of these packages that require prefixes, it might be easier to place them into the \f2idl.config\fP file described above. Each package prefix line should be of the form:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
\f2PkgPrefix.<type>=<prefix>\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
So the line for the above example would be:  \f2PkgPrefix.Widgets=com.abc\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
The use of this option does not affect the Repository ID.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
Defining Symbols Before Compilation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
You may need to define a symbol for compilation that is not defined within the IDL file, perhaps to include debugging code in the bindings. The command \f2idlj \fP\f4\-d\fP\f2 MYDEF My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
is the equivalent of putting the line \f2#define MYDEF\fP inside \f2My.idl\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
Preserving Pre\-Existing Bindings
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
If the Java binding files already exist, the \f2\-keep\fP flag will keep the compiler from overwriting them. The default is to generate all files without considering if they already exist. If you've customized those files (which you should not do unless you are very comfortable with their contents), then the \f2\-keep\fP option is very useful. The command \f2idlj \fP\f4\-keep\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
emit all client\-side bindings that do not already exist.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
Viewing Progress of Compilation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
The IDL\-to\-Java compiler will generate status messages as it progresses through its phases of execution. Use the \f2\-v\fP option to activate this "verbose" mode: \f2idlj \fP\f4\-v\fP\f2 My.idl\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
By default the compiler does not operate in verbose mode.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
Displaying Version Information
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
To display the build version of the IDL\-to\-Java compiler, specify the \f2\-version\fP option on the command\-line:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
\f2idlj \-version\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
Version information also appears within the bindings generated by the compiler. Any additional options appearing on the command\-line are ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
.SH "Options"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
\-d symbol 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
This is equivalent to the following line in an IDL file: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
#define \fP\f4symbol\fP\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
\-emitAll 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
Emit all types, including those found in \f2#include\fP files. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
\-fside 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
Defines what bindings to emit. \f2side\fP is one of \f2client\fP, \f2server\fP, \f2serverTIE\fP, \f2all\fP, or \f2allTIE\fP. The \f2\-fserverTIE\fP and \f2\-fallTIE\fP options cause delegate model skeletons to be emitted. Assumes \f2\-fclient\fP if the flag is not specified. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
\-i include\-path 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
By default, the current directory is scanned for included files. This option adds another directory. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
\-keep 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
If a file to be generated already exists, do not overwrite it. By default it is overwritten. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
\-noWarn 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
Suppresses warning messages. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
\-oldImplBase 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
Generates skeletons compatible with pre\-1.4 JDK ORBs. By default, the POA Inheritance Model server\-side bindings are generated. This option provides backward\-compatibility with older versions of the Java programming language by generating server\-side bindings that are \f2ImplBase\fP Inheritance Model classes. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
\-pkgPrefix type prefix 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
Wherever \f2type\fP is encountered at file scope, prefix the generated Java package name with \f2prefix\fP for all files generated for that type. The \f2type\fP is the simple name of either a top\-level module, or an IDL type defined outside of any module. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
\-pkgTranslate type package 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
Whenever the module name \f2type\fP is encountered in an identifier, replace it in the identifier with \f2package\fP for all files in the generated Java package. Note that \f2pkgPrefix\fP changes are made first. \f2type\fP is the simple name of either a top\-level module, or an IDL type defined outside of any module, and must match the full package name exactly. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
If more than one translation matches an identifier, the longest match is chosen. For example, if the arguments include: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
  \-pkgTranslate foo bar \-pkgTranslate foo.baz buzz.fizz
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
The following translations would occur: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
foo          => bar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
foo.boo      => bar.boo
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
foo.baz      => buzz.fizz
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
foo.baz.bar  => buzz.fizz.bar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
The following package names cannot be translated: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
\f2org\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
\f2org.omg\fP or any subpackages of \f2org.omg\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
Any attempt to translate these packages will result in uncompilable code, and the use of these packages as the first argument after \f2\-pkgTranslate\fP will be treated as an error.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
\-skeletonName xxx%yyy 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
Use \f2xxx%yyy\fP as the pattern for naming the skeleton. The defaults are: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
%POA for the \f2POA\fP base class (\f2\-fserver\fP or \f2\-fall\fP) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
_%ImplBase for the \f2oldImplBase\fP class (\f2\-oldImplBase\fP and (\f2\-fserver\fP or \f2\-fall\fP)) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
\-td dir 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
Use \f2dir\fP for the output directory instead of the current directory. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
\-tieName xxx%yyy 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
Name the tie according to the pattern. The defaults are: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
%POATie for the \f2POA\fP tie base class (\f2\-fserverTie\fP or \f2\-fallTie\fP) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
%_Tie for the \f2oldImplBase\fP tie class (\f2\-oldImplBase\fP and (\f2\-fserverTie\fP or \f2\-fallTie\fP)) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
\-nowarn, \-verbose 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
Verbose mode. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
\-version 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
Display version information and terminate. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
See the Description section for more option information. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
.SH "Restrictions:"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
Escaped identifiers in the global scope may not have the same spelling as IDL primitive types, \f2Object\fP, or \f2ValueBase\fP. This is because the symbol table is pre\-loaded with these identifiers; allowing them to be redefined would overwrite their original definitions. (Possible permanent restriction). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
The \f2fixed\fP IDL type is not supported. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
.SH "Known Problems:"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
No import generated for global identifiers. If you invoke on an unexported local impl, you do get an exception, but it seems to be due to a \f2NullPointerException\fP in the \f2ServerDelegate\fP DSI code. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513