我正在研究 ILOG。目前我正在使用 Ant 脚本将 ruleapp 部署到 res。我的问题是当我部署它时工作正常,但我想将 xom 自动添加到 res 中的“添加托管 URI”选项卡。xom 正在附加到 ruleapp,但我想让它附加到托管 uri 部分。
提前致谢。
您是否尝试过这种方式 - 从 IBM 帮助中获得。我没有尝试过,但看起来应该可以。(IBM ODM.8.0.1)
<target name="deployruleappwithxom">
<res-deploy hostname="${hostname}" portnumber="${portnumber}" webapp="${webapp}" userid="${userid}" password="${password}" file="my-ruleapp.jar">
<xompath rulesetpath="/MyRuleApp/MyRuleset">
<fileset dir="${lib}">
<include name="**/myxom.jar" />
</fileset>
</xompath>
<xompath rulesetpath="/AnotherRuleApp/AnotherRuleset">
<fileset dir="${otherlib}">
<include name="**/otherxom.jar" />
</fileset>
</xompath>
</res-deploy>
</target>
如果你只是想管理 xomuri 财产,你可以试试这个。
<target name="runloanvalidation">
<res-deploy-xom
hostname="localhost"
portnumber="9080"
webapp="res"
userid="resAdmin"
password="resAdmin"
jarMajorVersion="false"
libName="person"
outputRulesetProperty="ruleset.managedxom.uris">
<xompath>
<fileset dir="hello">
<include name="*.jar"/>
</fileset>
</xompath>
</res-deploy-xom>
<echo message="Resulting property: ${ruleset.managedxom.uris}"/>
</target>
有关更多信息,您可以访问此。