Content Management and Capture

Expand all | Collapse all

ICN dojo build "failonerror" = true of false?

  • 1.  ICN dojo build "failonerror" = true of false?

    Posted Wed August 26, 2020 01:41 AM
      |   view attached
    I am testing dojo build on ICN 3.0.8,  I noticed "failonerror" value in build.xml is different on the sample codes 
    in UserColumnSettingsPlugin project, the value is false and in samplePlugin project the value is true. When to use which?

    i.e. in UserColumnSettingsPlugin the value is false 

    <java dir="${basedir}/temp/dojo/util/buildscripts" fork="true" classname="org.mozilla.javascript.tools.shell.Main" failonerror="false">

    and there are 5 errors UserColumnSettingsPlugin/temp/dojo/release/build-report.txt  as below

    error(311) Missing dependency.
    module: ecm/widget/viewer/VideoViewer; dependency: global/window
    module: ecm/widget/viewer/VideoViewer; dependency: video/video.min
    module: ecm/widget/viewer/VideoViewer; dependency: video/dash.all.min
    module: ecm/widget/viewer/VideoViewer; dependency: video/videojs-dash.min
    module: ecm/widget/viewer/VideoViewer; dependency: video/videojs-contrib-quality-levels.min

    if I set the failonerror="true", the build will fail,

    Any insight?  I uploaded the build.xml as attachment. all other source codes from this sample code are keep as-is.

    Thanks

    ------------------------------
    WENTAO LU
    ------------------------------

    Attachment(s)

    xml
    build.xml   6 KB 1 version


  • 2.  RE: ICN dojo build "failonerror" = true of false?

    Posted Wed August 26, 2020 05:12 PM
    Hello,

    I would recommend setting failonerror="false". Some of those dependencies are virtual, so they do not have a physical file. Attempting to require them will cause the build to fail.

    Best,
    FG

    ------------------------------
    Fernando Gomez
    ------------------------------