开发者

compiling SQLJ with Ant

开发者 https://www.devze.com 2022-12-08 00:10 出处:网络
Ho开发者_JAVA百科w to compile SQLJ with ant?I don\'t think there is a native sqlj Ant task.You can start an sqlj process with the Ant exec task as if you were executing it from a command prompt.

Ho开发者_JAVA百科w to compile SQLJ with ant?


I don't think there is a native sqlj Ant task. You can start an sqlj process with the Ant exec task as if you were executing it from a command prompt.

Edit: Link to download sqlj: http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html


I haven't seen a proper task for compiling SQLj sources with Ant, however there is an old ant-user post where someone has submitted the source for an ant task.
I don't know how well it works, but it should at least point towards how it can be done.

From the 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.
0

精彩评论

暂无评论...
验证码 换一张
取 消