Building a WebObjects Project

Version 39.1 by David Avendasora on 2011/04/25 16:12

Incremental Building

While you are writing your classes and Components (.html, .wod, etc.) the incremental builder is constantly running in the background compiling and validating your code against your projects other code and its dependencies. Building WebObjects Frameworks and Applications during development is handled directly by Eclipse/WOLips using the Incremental Builder that by default automatically compiles and validates your classes and components as you type. You can launch your applications from within WOLips/Eclipse with no need to compile or install any source code frameworks in the workspace that they depend on.

Deployment Building

The process of building WebObjects Applications and Frameworks for Deployment is more complicated and requires any depended-upon frameworks to already be compiled and installed in defined (but customizable) locations. Building and Installing of both Frameworks and Applications can be also be done directly in Eclipse, but it can also be done from the Command Line or better yet, using a Continuous Integration Server like Hudson/Jenkins. Use of Hudson/Jenkins to build your Applications is highly recommended.

The process and options vary slightly between Frameworks and Applications, but they share many fundamental concepts.

  1. build.properties file
Example Application build.properties File

classes.dir=bin
component.inlineBindingPrefix=$
component.inlineBindingSuffix=
component.wellFormedTemplateRequired=false
customInfoPListContent=
embed.Local=true
embed.Project=true
embed.System=true
eoAdaptorClassName=
principalClass=com.company.MyApp.Application.java
project.name=MyApp
project.name.lowercase=myapp
project.type=application
webXML=false
webXML_CustomContent=
  1. wolips.properties file