IBM Support

PM45886: The default Ant target is selected when invalid targets are provided

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The default Ant target is selected when invalid targets are
    passed
    
    For additional techical details see the following Eclipse bug:
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=355614
    
    Step to reproduce:
    
    1. Create a build.xml with the following content
    ??xml version='1.0' encoding='UTF-8'??
    ?project name='project' default='default'?
        ?target name='default'?
      ?echo message='Hello World'/?
        ?/target?
    ?/project?
    2. Create a directory C:\temp, call set WORKSPACE=C:\temp, call
    SDP\bin\runAnt.bat -buildfile build.xml foo
    Result:
    Default target is called and error message 'Unknown target: foo'
    is shown at the beginning
    Expected Result
    Script should fail quickly similar to standalone ant and
    indicate that the target does not exist
    
    Workaround:
    
    None
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The entire Ant script is run when an invalid Ant target is
    specified instead instead of catching the invalid target
    early and emitting an error message.
    

Problem conclusion

  • The script will no longer run with an invalid target,
    instead an error message will be emitted when invalid
    targets are used.
    
    The fix for this APAR is included in Rational Application
    Developer v8.0.4.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM45886

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    802

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-08-17

  • Closed date

    2011-11-17

  • Last modified date

    2011-11-17

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL APP DEV WI

  • Fixed component ID

    5724J1901

Applicable component levels

  • R802 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 November 2011