IBM Support

PK75500: ANT: if there if a project with a cyclical reference is found. R AD excluds projects without cyclical references

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Environment:
    -Windows XP Professionel
    -Rational Application Developer 7.0.0.7
    
    
    Reproducible Y/N:
    Y
    Description of problem:
    The ANT task WorkspaceGetErrors should show all errors in the pr
    ojects in the workspace.
    This defect is opened because if a project with a cyclical refer
    ence is found. RAD excluds projects without cyclical references
    
    Steps to reproduce:
    If you have a workspace that contains 9 projects and it has proj
    ect 4 , 5 and 6 depends on each others
    When running the ANT build
    ??xml version='1.0'??
    ?project name='project' default='workspaceGetErrors'?
       ?target name='workspaceGetErrors'?
          ?workspaceGetErrors SeverityLevel='ERROR'
                              PropertyCountName='theWorkspaceErrorCo
    unt'
                              PropertyMessagesName='theWorkspaceErro
    rMessages' /?
          ?echo message='Workspace ErrorCount: ${theWorkspaceErrorCo
    unt}' /?
       ?/target?
    ?/project?
    
    It should show all projects starting from 1 to 9 even if there i
    s no error, but actually it shows only errors for projects 4, 5
    and 6
    
    The expected output is:
    ====
    workspaceGetErrors:
    [workspaceGetErrors] WorkspaceGetErrors:  errors=0 Project=ant
    [workspaceGetErrors] WorkspaceGetErrors:  errors=0 Project=java1
    
    [workspaceGetErrors] WorkspaceGetErrors:  errors=0 Project=java2
    
    [workspaceGetErrors] WorkspaceGetErrors:  errors=0 Project=java3
    
    [workspaceGetErrors] ERROR: [0].  Type=org.eclipse.jdt.core.buil
    dpath_problem  Line=0  Resource=\java4
    [workspaceGetErrors] ERROR: [0].. Message=A cycle was detected i
    n the build path of project: java4
    [workspaceGetErrors] ERROR: [1].  Type=org.eclipse.jdt.core.prob
    lem  Line=0  Resource=\java4
    [workspaceGetErrors] ERROR: [1].. Message=The project cannot be
    built until build path errors are resolved
    [workspaceGetErrors] WorkspaceGetErrors:  errors=2 Project=java4
    
    [workspaceGetErrors] ERROR: [0].  Type=org.eclipse.jdt.core.prob
    lem  Line=0  Resource=\java5
    [workspaceGetErrors] ERROR: [0].. Message=The project cannot be
    built until build path errors are resolved
    [workspaceGetErrors] ERROR: [1].  Type=org.eclipse.jdt.core.buil
    dpath_problem  Line=0  Resource=\java5
    [workspaceGetErrors] ERROR: [1].. Message=A cycle was detected i
    n the build path of project: java5
    [workspaceGetErrors] WorkspaceGetErrors:  errors=2 Project=java5
    
    [workspaceGetErrors] ERROR: [0].  Type=org.eclipse.jdt.core.prob
    lem  Line=0  Resource=\java6
    [workspaceGetErrors] ERROR: [0].. Message=The project cannot be
    built until build path errors are resolved
    [workspaceGetErrors] ERROR: [1].  Type=org.eclipse.jdt.core.buil
    dpath_problem  Line=0  Resource=\java6
    [workspaceGetErrors] ERROR: [1].. Message=A cycle was detected i
    n the build path of project: java6
    [workspaceGetErrors] WorkspaceGetErrors:  errors=2 Project=java6
    
    [workspaceGetErrors] WorkspaceGetErrors:  errors=0 Project=java7
    
    [workspaceGetErrors] WorkspaceGetErrors:  errors=0 Project=java8
    
    [workspaceGetErrors] WorkspaceGetErrors:  errors=0 Project=java9
    
            [echo] Workspace ErrorCount: 6
    BUILD SUCCESSFUL
    Total time: 328 millisecond
    ====
    But real output is
    workspaceGetErrors:
    [workspaceGetErrors] ERROR: [0]. Type=org.eclipse.jdt.core.probl
    em Line=0 Resource=\java6
    [workspaceGetErrors] ERROR: [0].. Message=The project cannot be
    built until build path errors are resolved
    [workspaceGetErrors] ERROR: [1]. Type=org.eclipse.jdt.core.build
    path_problem Line=0 Resource=\java6
    [workspaceGetErrors] ERROR: [1].. Message=A cycle was detected i
    n the build path of project: java6
    [workspaceGetErrors] WorkspaceGetErrors: errors=2 Project=java6
    [workspaceGetErrors] ERROR: [0]. Type=org.eclipse.jdt.core.build
    path_problem Line=0 Resource=\java5
    [workspaceGetErrors] ERROR: [0].. Message=A cycle was detected i
    n the build path of project: java5
    [workspaceGetErrors] ERROR: [1]. Type=org.eclipse.jdt.core.probl
    em Line=0 Resource=\java5
    [workspaceGetErrors] ERROR: [1].. Message=The project cannot be
    built until build path errors are resolved
    [workspaceGetErrors] WorkspaceGetErrors: errors=2 Project=java5
    [workspaceGetErrors] ERROR: [0]. Type=org.eclipse.jdt.core.probl
    em Line=0 Resource=\java4
    [workspaceGetErrors] ERROR: [0].. Message=The project cannot be
    built until build path errors are resolved
    [workspaceGetErrors] ERROR: [1]. Type=org.eclipse.jdt.core.build
    path_problem Line=0 Resource=\java4
    [workspaceGetErrors] ERROR: [1].. Message=A cycle was detected i
    n the build path of project: java4
    [workspaceGetErrors] WorkspaceGetErrors: errors=2 Project=java4
    [echo] Workspace ErrorCount: 6
    BUILD SUCCESSFUL
    Total time: 531 milliseconds
    

Local fix

Problem summary

  • Previously when there was a cyclical dependency, only the
    projects involved in the cycle, aka the knots were being
    identified.  The method returning the projects was updated to
    return all projects.
    

Problem conclusion

  • Fixed in RAD 7009
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK75500

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-11-12

  • Closed date

    2009-09-03

  • Last modified date

    2009-09-03

  • 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

  • R700 PSY

       UP

  • R753 PSY

       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":"7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
03 September 2009