Building and configuring OpenLaszlo Web projects using Ant
You can build and configure OpenLaszlo Web projects within the WebSphere Commerce Developer workbench, or you can also perform these tasks using Ant.
About this task
Procedure
- Create a new Ant build file if you do not already have one.
- In the Ant build file, implement the logic to build and
configure an OpenLaszlo Web project using the
openLaszloBuild
andopenLaszloConfigureProperties
Ant tasks respectively. - Run the Ant build file using the build utility in WebSphere Commerce Developer.
Examples
The following sample Ant build
file compiles the OpenLaszlo files in the LOBTools
project
with the debugging window disabled, which is suitable for production
use. The Ant build file can be named build.xml and
placed into the root of the LOBTools
project in your
WebSphere Commerce Developer workspace.
<?xml version="1.0" encoding="UTF-8"?>
<project name="build" default="all">
<target name="all">
<!-- Disable debugging window for production use -->
<openLaszloConfigureProperties debug="false" />
<!-- Build the OpenLaszlo files in the project -->
<openLaszloBuild project="LOBTools" />
<!-- Re-eable debugging window for the development environment -->
<openLaszloConfigureProperties debug="true" />
</target>
</project>