1

Using JDeveloper in order to create and manage Oracle Service Bus 12c resources, I am able to export the required resources into a .jar file using the Resources Export Wizard of JDeveloper, selecting one by one those needed, under the tree of each project.

What I want to do though is find a way to export a .jar file based on resources list, given in a file of a commonly used format (JSON, CSV etc), as it can be time saving for a large number of resources. My first thought was to search if JDeveloper provides such way or attempt do this programmatically, yet my search on this has not given me any information of how-to.

Is there an alternative way of doing this?

4

1 回答 1

3

如果您有 Oracle OSB 11.1.1.7.0 或更高版本,您可以使用configjar在项目级别自动执行 OSB 的编译过程,这是一个完整的实现示例,其中包括:使用 configjar 进行编译,使用 Jenkins 自动执行从 GIT 检索代码的任务和一个python脚本。

您也可以使用 ANT 来完成,这是 Oracle 的一个很好的文档来解释这一点。(我试过了,但发现 configjar 更容易使用,这是 11.1.1.7.0 以下版本的唯一选择)。

创建任何这些编译方法后,您可以创建一个 CSV 文件,用 python 解析它并循环编译。

于 2018-06-14T13:42:29.460 回答