简体   繁体   English

错误无法打开属性文件:来自 Ant 脚本的 AppManage.tra

[英]Error Failed to open properties file : AppManage.tra from Ant script

After building EAR file when i'm trying to extract XML file form the EAR i'm getting error [exec] Failed to open properties file: AppManage.tra构建 EAR 文件后,当我尝试从 EAR 中提取 XML 文件时出现错误[exec] 无法打开属性文件:AppManage.tra

 <property name="Appmanage" value="C:\tibco\etascbw513\tra\5.10\bin\AppManage.exe" />

<target name="extract">
<exec executable="${Appmanage}">
  <arg value="-export"/>
  <arg value="-ear"/>
  <arg value="${workdir}\Deploy\EARs\${project}.ear"/>
  <arg value="-out"/>
 <arg value="${workdir}\Deploy\EARs\${project}.xml"/>
  <arg value="-max"/>
</exec>


old Q: can someone share simple build.xml to create ear file from ant script details: i'm able to pull repositories with the help ant script now i want to create EAR file from ant script for Tibco BW. old Q: can someone share simple build.xml to create ear file from ant script details: i'm able to pull repositories with the help ant script now i want to create EAR file from ant script for Tibco BW. can any one share simple demo.任何人都可以分享简单的演示。

try to solve this error using below steps.尝试使用以下步骤解决此错误。

  1. try to check your environment variable path.尝试检查您的环境变量路径。
  2. check TRA_HOME/bin/ using App manage utility.使用 App 管理实用程序检查 TRA_HOME/bin/。

This error "Failed to open properties file: AppManage.tra" occurs because the AppManage executable tries to look for AppManage.tra in the current execution directory and does not find it.出现此错误“无法打开属性文件:AppManage.tra”是因为 AppManage 可执行文件尝试在当前执行目录中查找 AppManage.tra 但未找到。 In this particular case, the current execution directory would depend on where you are executing Ant from.在这种特殊情况下,当前执行目录将取决于您从何处执行 Ant。

The correct way to avoid this error is to provide full path to the AppManage.tra file as an argument to the AppManage executable in the ant exec statement, as shown below, in the highlighted section (two new arguments are added "--propFile" and "full path to AppManage.tra").避免此错误的正确方法是在 ant exec 语句中提供 AppManage.tra 文件的完整路径作为 AppManage 可执行文件的参数,如下所示,在突出显示的部分(添加了两个新的 arguments “--propFile”和“AppManage.tra 的完整路径”)。 Hope this helps.希望这可以帮助。

 <property name="Appmanage" value="C:\tibco\etascbw513\tra\5.10\bin\AppManage.exe" />

<target name="extract">
<exec executable="${Appmanage}">
 <arg value="--propFile"/> <arg value="C:\tibco\etascbw513\tra\5.10\bin\AppManage.tra"/>
  <arg value="-export"/>
  <arg value="-ear"/>
  <arg value="${workdir}\Deploy\EARs\${project}.ear"/>
  <arg value="-out"/>
  <arg value="${workdir}\Deploy\EARs\${project}.xml"/>
  <arg value="-max"/>
</exec>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM