Runs the rmic compiler for a certain class.
対象クラスに rmic コンパイラを実行します
Rmic can be run on a single class (as specified with the classname
attribute) or a number of classes at once (all classes below base that
are neither _Stub nor _Skel classes). If you want to rmic a single
class and this class is a class nested into another class, you have to
specify the classname in the form Outer$$Inner instead of
Outer.Inner.
Rmic は(classname属性で指定する)単一のクラス、
または1度に複数のクラス(ベース以下に存在する_Stub と _Skel 以外のすべてのクラス)に対して実行できます。
ネストしたインナークラスに対して rmic を実行したい場合は、
classnameにOuter.Innerの代わりに
Outer$$Innerと指定しなければなりません。
It is possible to refine the set of files that are being rmiced. This can be done with the includes, includesfile, excludes, excludesfile and defaultexcludes attributes. With the includes or includesfile attribute you specify the files you want to have included by using patterns. The exclude or excludesfile attribute is used to specify the files you want to have excluded. This is also done with patterns. And finally with the defaultexcludes attribute, you can specify whether you want to use default exclusions or not. See the section on directory based tasks, on how the inclusion/exclusion of files works, and how to write patterns.
rmicで処理するファイルの集合を絞り込むことが可能です。 これは includes、includesfile、excludes、 excludesfile、defaultexcludes 属性を使うことで可能です。 includes や includesfile 属性では、パターンを使って含みたいファイルを指定できます。 exclude や excludesfile 属性では、除外するファイルを指定できます。 ここでもパターンを使用できます。 そして、defaultexcludes 属性により、デフォルト除外集合を使うかどうか選択できます。 ファイルのincludes/excludesがどのように実行されるか、パターンを記述する方法については ディレクトリベースのタスク の節をご覧ください。
This task forms an implicit FileSet and
supports all attributes of <fileset>
(dir becomes base) as well as the nested
<include>, <exclude> and
<patternset> elements.
このタスクは暗黙のFileSetを持っていて、
ネストした <include>と<exclude>、
<patternset> 要素と同様に、
<fileset>属性(dir は base になります)のすべてをサポートします。
It is possible to use different compilers. This can be selected
with the "build.rmic" property or the compiler
attribute. There are three choices:
異なるコンパイラを使用できます。
それは、"build.rmic" プロパティーか
compiler属性を選択することで行います。
次の3つの選択肢があります
The miniRMI project contains a compiler implementation for this task as well, please consult miniRMI's documentation to learn how to use it.
さらに、 miniRMI プロジェクトのコンパイラ実装が、このタスクのために含まれています。 使い方を学ぶにはminiRMIのドキュメントを調べてみてください。
| Attribute | Description | Required |
| base | the location to store the compiled files. | Yes |
| classname | the class for which to run rmic. |
No |
| filtering | indicates whether token filtering should take place | No |
| sourcebase | Pass the "-keepgenerated" flag to rmic and move the generated source file to the given sourcebase directory. | No |
| stubversion | Specify the JDK version for the generated stub code. Specify "1.1" to pass the "-v1.1" option to rmic. | No |
| classpath | The classpath to use during compilation | No |
| classpathref | The classpath to use during compilation, given as reference to a PATH defined elsewhere | No |
| includes | comma- or space-separated list of patterns of files that must be included. All files are included when omitted. | No |
| includesfile | the name of a file. Each line of this file is taken to be an include pattern | No |
| excludes | comma- or space-separated list of patterns of files that must be excluded. No files (except default excludes) are excluded when omitted. | No |
| excludesfile | the name of a file. Each line of this file is taken to be an exclude pattern | No |
| defaultexcludes | indicates whether default excludes should be used or not ("yes"/"no"). Default excludes are used when omitted. | No |
| verify | check that classes implement Remote before handing them to rmic (default is false) | No |
| iiop | indicates that portable (RMI/IIOP) stubs should be generated | No |
| iiopopts | additional arguments for IIOP class generation | No |
| idl | indicates that IDL output files should be generated | No |
| idlopts | additional arguments for IDL file generation | No |
| debug | generate debug info (passes -g to rmic). Defaults to false. | No |
| includeAntRuntime | whether to include the Ant run-time libraries;
defaults to yes. |
No |
| includeJavaRuntime | whether to include the default run-time
libraries from the executing VM; defaults to no. |
No |
| extdirs | location of installed extensions. | No |
| compiler | The compiler implementation to use.
If this attribute is not set, the value of the
build.rmic property, if set, will be used.
Otherwise, the default compiler for the current VM will be used.
(See the above list of valid
compilers.) |
No |
| 属性 | 説明 | 必須 |
| base | コンパイルしたファイルを保存する場所 | Yes |
| classname | rmicが実行されるクラス |
No |
| filtering | トークン フィルタリングを実行するかどうかを指定します。 | No |
| sourcebase | rmicに"-keepgenerated"フラグを渡し、 生成したソースファイルをソースベースディレクトリに移動します。 | No |
| stubversion | 生成するスタブコードのJDKバージョンを指定します。 rmic に "-v1.1" オプションを渡すためには、 "1.1" を指定します。 | No |
| classpath | コンパイル中に使用するクラスパス | No |
| classpathref | コンパイル中に使用するクラスパスを、 任意の場所で定義したPATHに対する参照で指定します。 | No |
| includes | 包含するファイルのパターンのカンマかスペースで区切られたリスト。 省略時はすべてのファイルを含みます。 | No |
| includesfile | ファイル名。このファイルの各行は包含パターンとして 解釈されます。 | No |
| excludes | 除外するファイルのパターンのカンマかスペースで区切られたリスト。 省略時は(デフォルト除外集合を除けば)除外されるファイルはありません。 | No |
| excludesfile | ファイル名。 このファイルの各行が除外パターンとして解釈されます。 | No |
| defaultexcludes | デフォルト除外集合を使用するかどうか("yes"/"no") を指定します。省略したときにはデフォルト除外集合を使用します。 | No |
| verify | rmicでクラスを処理する前に、Remoteを実装しているかどうかチェックします (デフォルトは false)。 | No |
| iiop | ポータブル(RMI/IIOP)スタブの生成を指定します。 | No |
| iiopopts | IIOPクラス生成のための追加引数です | No |
| idl | IDL出力ファイルを生成するか指定します。 | No |
| idlopts | IDLファイル生成のための追加引数です。 | No |
| debug | デバッグ情報(rmic に -g を渡します)を生成します。 デフォルトは false 。 | No |
| includeAntRuntime | Ant ランタイムライブラリを含めるかどうか。
デフォルトはyes。 |
No |
| includeJavaRuntime | VMの実行からデフォルトのランタイムライブラリを含めるかどうか。
デフォルトは no。 |
No |
| extdirs | インストール済み拡張機能の場所 | No |
| compiler | 使用するコンパイラの実装。
この属性がセットされない場合は、build.rmicが、
セットされた場合はこの値が使用されます。
その他の場合は、現在のVMのデフォルトのコンパイラが使用されます。
(有効なコンパイラのリストを見てください)
|
No |
Rmic's classpath and extdirs attributes are PATH like structure and can also be set via a nested
classpath and extdirs elements.
Rmicのclasspathとextdirs属性は
パス類似構造で、
ネストしたclasspathやextdirs要素を使って
設定することもできます。
You can specify additional command line arguments for the compiler
with nested <compilerarg> elements. These elements
are specified like Command-line
Arguments but have an additional attribute that can be used to
enable arguments only if a given compiler implementation will be
used.
ネストした<compilerarg>要素で、
コンパイラへ渡す追加のコマンドライン引数を指定できます。
これらの要素は、コマンドライン引数として指定されますが、
引数として使える追加の属性を持つのは
特定のコンパイラの実装が使われているときのみです。
| Attribute | Description | Required |
| value | See Command-line Arguments. | Exactly one of these. |
| line | ||
| file | ||
| path | ||
| compiler | Only pass the specified argument if the chosen compiler implementation matches the value of this attribute. Legal values are the same as those in the above list of valid compilers.) | No |
| 属性 | 説明 | 必須 |
| value | コマンドライン引数を参照 | 必ずこれらのうち1つ |
| line | ||
| file | ||
| path | ||
| compiler | 選択されたコンパイラ実装とこの属性の値が一致したときのみ、 特定の引数を適用できます。 正式な値は上の有効なコンパイラの リスト のそれと 同じです。) | No |
<rmic classname="com.xyz.FooBar" base="${build}/classes"/>
runs the rmic compiler for the class com.xyz.FooBar. The
compiled files will be stored in the directory ${build}/classes.
com.xyz.FooBarクラスに対してrmicコンパイルを実行します。
コンパイルされたファイルは ${build}/classes ディレクトリに保存されます。
<rmic base="${build}/classes" includes="**/Remote*.class"/>
runs the rmic compiler for all classes with .class
files below ${build}/classes whose classname starts with
Remote. The compiled files will be stored in the directory
${build}/classes.
${build}/classes ディレクトリ以下で、
ファイル名がRemoteで始まり、.classという拡張子をもつ
すべてのクラスに対して rmicコンパイルを実行します。
コンパイルされたファイルは ${build}/classes ディレクトリに保存されます。
Copyright © 2000-2004 The Apache Software Foundation. All rights Reserved.