IC70100: WMQFTE V7 FTEANT.CMD FAILS TO RUN AND DISPLAYS A MESSAGE ON THE COMMAND LINE: \IBM\WMQFTE\ANT\LIB WAS UNEXPECTED AT THIS TIME
Closed as fixed if next.
When attempting to run fteAnt.cmd on a WebSphere MQ File Transfer Edition (WMQFTE) v7 on Windows, the following error is returned to the command line where the fteAnt.cmd was issued: C:\Program files (x86)\IBM\WMQFTE\bin>fteAnt.cmd -? \IBM\WMQFTE\ant\lib was unexpected at this time There is nothing in the product logs as this occurs when the script is parsed by MS DOS and before any part of WMQFTE is invoked. The script has a conditional statement near the end as follows: ---------------- if defined FTE_ANT_HOME ( set FTE_CLASSPATH=%FTE_CLASSPATH%;%FTE_ANT_HOME%\lib ) else ( set FTE_CLASSPATH=%FTE_CLASSPATH%;%FTE_PROD%\ant\lib ) ----------------- The closing parenthesis, ")", in the directory name is being interpreted as the closing parenthesis of the ELSE statement. The problem is specific to Windows as it is an issue with the way that MS DOS parses the command line. It will show up more often on 64-bit systems because the default install path includes the parenthesis character but it can be seen on any Windows system with a parenthesis character in the install path.
Edit C:\Program files (x86)\IBM\WMQFTE\bin\fteAnt.cmd to change the conditional ELSE statement as per below. ------------------------ if defined FTE_ANT_HOME ( set FTE_CLASSPATH=%FTE_CLASSPATH%;%FTE_ANT_HOME%\lib ) else set FTE_CLASSPATH=%FTE_CLASSPATH%;%FTE_PROD%\ant\lib ------------------------
The fteAnt.cmd script will fail on Microsoft Windows if WMQFTE is installed into a location that contains a ) in the directory path. This is because the ) in the directory path is treated by MS DOS as the close af an else statement in the .cmd script. A change has been made to the WMQFTE code so that this will no longer occur. This change will be included in the next release of WMQFTE.
Can be made available on request.
Reported component name
WMQ FILE TRANSF
Reported component ID
Last modified date
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Applicable component levels
More support for:
WebSphere MQ File Transfer Edition
Software version: 7.0
Reference #: IC70100
Modified date: 22 July 2010
Translate this page: