How to compile SQLJ with ant?
+1
A:
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%5Fjdbc/index.html
leonm
2009-10-09 23:19:40
i compiled it only from JDeveloper, how do you compile it from command prompt?
01
2009-10-10 08:20:54
+1
A:
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.
Rich Seller
2009-10-10 09:10:41