Develop > WebSphere Commerce development environment > Enhancements to working with OpenLaszlo files


Accept OpenLaszlo applications

After changing, adding, or removing OpenLaszlo files, rebuild the project. The build process can be started through menu items in WebSphere Commerce Developer or with an ANT task.


Before you begin

  1. Work with OpenLaszlo files

  2. Review the information in Changing key mapping for OpenLaszlo actions.

The manual build process tracks which files need to be compiled. When a OpenLaszlo file changes, the LOBTools project is marked with the [rebuild] label.

The [rebuild] label remains until the project is built successfully. If the build process fails or logs any OpenLaszlo errors, the [rebuild] label remains on the project.


Procedure

  1. Start WebSphere Commerce Developer.

  2. Before starting the build process review the OpenLaszlo settings:

    1. Open the Enterprise Explorer view. Right click LOBTools and select Properties.

    2. In the Properties for LOBTools dialog, click OpenLaszlo Settings.

    3. Review each tab and alter any settings if necessary:

      OpenLaszlo Setting Description
      Compiler Settings Use this setting to enable or disable the debug console. The console assists with problems during the build process and provides a debug backtrace when this setting is enabled.
      File Settings Use this setting to add, remove, enable, or disable OpenLaszlo files from the build process.
      Warning Filter Specify any warning messages that should be ignored during the build process.

      If changes are made to any of the settings, click Apply to save the changes.

  3. Optional: To disable the [rebuild] label, complete the following tasks:

    1. In the workspace, click Window > Preferences.

    2. Expand Workbench and click Label Decorations.

    3. Clear the OpenLaszlo Build Label check box and click Apply.

  4. Start the build option in one of the following ways:

    • WebSphere Commerce Developer menu items:

      • Open the Enterprise Explorer view. Right click LOBTools and click Build OpenLaszlo Project

      • Click Project > Build OpenLaszlo Project

      The Project menu option is only available when the OpenLaszlo editor is active.

    • ANT target openLaszloBuild

      Attribute Mandatory/Optional Usage
      project Mandatory Specifies which OpenLaszlo project is to be built.
      failOnError Optional Controls if the ANT target stops when a compilation error or exception condition is encountered. The default value is true.
      quiet Optional Controls if warning and error messages are printed to the console. The default value is false.

      To run the ANT target, complete the following step:

      • Enter the ANT target and any optional parameters. For example enter:

        • <openLaszloBuild project="LOBTools"/>

        This command builds the LOBTools project. If a failure or error is encountered, the ANT target stops.


Related tasks

Work with OpenLaszlo files

Changing OpenLaszlo compiler properties

Changing key mapping for OpenLaszlo actions

Related reference

Trace an OpenLaszlo build


+

Search Tips   |   Advanced Search