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

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

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



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

IBM Mobile Foundation

Software version:

5.0

Reference #:

PM80509

Modified date:

2013-01-21

Translate my page

Machine Translation

Content navigation