1

アリでSQLJをコンパイルするには?

4

2 に答える 2

1

ネイティブのsqljAntタスクはないと思います。コマンドプロンプトから実行しているかのように、Antexecタスクを使用してsqljプロセスを開始できます。

編集:sqljをダウンロードするためのリンク:http ://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html

于 2009-10-09T23:19:40.460 に答える
1

Ant で SQLj ソースをコンパイルするための適切なタスクは見たことがありませんが、Ant タスクのソースを送信した古い ant ユーザーの投稿があります。
それがどれほどうまく機能するかはわかりませんが、少なくともそれがどのように行われるかを示しているはずです.

Javadoc から:

* Task to compile SQLj source files. This task can take the following
* arguments:
* <ul>
* <li>srcdir
* <li>destdir
* <li>compile
* <li>ser2class
* <li>user
* <li>url
* </ul>
* Of these arguments, the <b>srcdir</b> and <b>destdir</b> are required.
* <p>
* When this task executes, it will recursively scan the srcdir and dest
* destdir looking for sqlj files to compile. This task make its compile
* decision based on timestamp. Notice that the generated java files will
* be located at the same directory as the sqlj files, Only the binary files
* will be placed at the destdir directory.
于 2009-10-10T09:10:41.550 に答える