IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  Command Server error when launching maps from Apache Ant build script

    Posted 10/02/08 08:39 AM

    Originally posted by: SystemAdmin


    Hello,

    Can you help me with this issue please?

    I have a problem with launching a compiled WTX map using Command Server and Apache Ant build script when there are any spaces in the path to that map. When there are no spaces, everything works.

    I attach an example map and a build script. The script contains 4 targets:

    1. compile_test - compiles the map source file, works without errors using any path to a map source file
    2. execute_test_1 - executes successfully because no spaces are used in paths
    3. execute_test_2 - fails bacause of spaces in paths
    4. execute_test_3 - fails bacause of spaces in paths

    I tryed to use different argument-passing options like <arg line.. > in exec and spent a lot of time without success.

    My environment:
    Windows XP Service Pack 3
    Apache Ant version 1.7.0
    Maps were created using WTX Map Designer Version 8.1.0.3 Build 37
    When compiling maps sources from command line mcompile command line utility was used (Version 8.1.0.3 (37))
    I am using Command Server Version 8.2(52) to launch compiled maps.

    I would like to know how to change execute_test_2 and execute_test_3 targets in Ant build script to be able to launch maps that are located in directories that contain spaces in their names. I tried adding single quotes without success.

    Thank you.

    Igor
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 2.  Re: Command Server error when launching maps from Apache Ant build script

    Posted 10/02/08 10:49 AM

    Originally posted by: LaurentB


    This is unlikely to be related to your issue, but is there a specific reason to run 8.1 maps with an 8.2 engine ?

    I'm afraid this is more an Ant issue than a WTX one (I tried "&apos;" to specify single quotes, with no results)
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 3.  Re: Command Server error when launching maps from Apache Ant build script

    Posted 10/06/08 09:18 AM

    Originally posted by: SystemAdmin


    Thank you for the reply.
    I got and tried Command Server 8.1, but the results are the same. Launching maps from command line works perfect, but not from Ant. The strange thing is that maps compilation utility works fine even through Ant script and passing paths with spaces to it. Command Server is window-based application though, some difference compared to mcompile.exe.
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 4.  Re: Command Server error when launching maps from Apache Ant build script

    Posted 10/06/08 10:23 AM

    Originally posted by: LaurentB


    The difference I can see is that the Command Server expects the map name in single quotes when they contain spaces, and I guess it has something to do with these quotes and the way Ant works.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender