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

732 views Asked by At

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

 <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. can any one share simple demo .

2

There are 2 answers

2
saurabhcool001 On BEST ANSWER

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.
0
abhishek On

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. In this particular case, the current execution directory would depend on where you are executing Ant from.

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"). 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>