PM80509: BUILDING USING ANT AND SETTING MINIFYRESOURCES TO 'TRUE' OUTPUTS JAVASCRIPT FILES THAT DO NOT WORK

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Calling an Ant script such as the following:
    <app-builder
    applicationFolder="/Users/carlosmarx/Workspaces/runtime-EclipseA
    pplication/wlproj/apps/qunitapp" environments="iphone"
    nativeProjectPrefix="wlproj" minifyResources="true"/>
    
    will produce JavaScript that does not function due to the
    inclusion of the minifyResources="true" attribute.
    

Local fix

  • There is currently no work around for this issue.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users that use Ant to build their           *
    *                  application and who want to minify their    *
    *                  resources.                                  *
    ****************************************************************
    * PROBLEM DESCRIPTION: Code under wlCommonInit() is not        *
    *                      getting called because, after           *
    *                      minifying resources using Ant,          *
    *                      Worklight crashes before it is          *
    *                      invoked.                                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The problem will occur if the code was minified using the
    Worklight Ant task with minifyResources set to "true."
    

Problem conclusion

  • The code was changed so that the compilation is set to
    WHITESPACE_ONLY instead of SIMPLE_OPTIMIZATIONS.
    
    The fix for this APAR is currently targeted for inclusion in
    fixpack 5.0.5.0.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM80509

  • Reported component name

    MOBILE FNDTN EN

  • Reported component ID

    5725G9200

  • Reported release

    500

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-01-13

  • Closed date

    2013-01-21

  • Last modified date

    2013-01-21

  • 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

    MOBILE FNDTN EN

  • Fixed component ID

    5725G9200

Applicable component levels

  • R500 PSY

       UP



Document information


More support for:

IBM Mobile Foundation

Software version:

500

Reference #:

PM80509

Modified date:

2013-01-21

Translate my page

Content navigation