Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. WOJenkins Jobs
    1. Completely managed for you by WOJenkins
    2. Manually overridden as defined in Manual Jenkins Jobs below.
  2. Manual Jenkins Jobs
    1. Properties specified in the Targets line of an Invoke Ant build task using -D<property>=<value>
    2. Properties specified in the Properties line of an Invoke Ant build task using (the equivalent of -propertyfile <name>)
  3. Eclipse/WOLips
    1. Properties specified for the Eclipse Workspace under Eclipse -> Preferences -> WOLips - > System Frameworks
    2. The build.properties file in the same directory as the build.xml file as specified by <property file="build.properties" /> task in the build.xml file.
  4. Command Line
    1. Properties specified in the Ant command: -D<property>=<value>
    2. A properties file specified in the Ant command: -propertyfile <name>
    3. The build.properties file in the same directory as the build.xml file as specified by <property file="build.properties" /> task in the build.xml file.
Note
titleCan't Find WebObjects

If Ant can't find the WebObjects frameworks, you will get compiler errors like this:

No Format
[wocompile] /MyProjects/MyFramework/Sources/com/mycompany/myapp/myclass:10:
            package com.webobjects.appserver does not exist
[wocompile] import com.webobjects.appserver.WOContext;

Building

WOJenkins

Using Jenkins is the recommended way to build a Framework and WOJenkins makes the process almost as easy as building from within Eclipse/WOLips.

Eclipse/WOLips

  • Standard WebObjects Framework
    Right-Click on your project in Eclipse and select WOLips Ant Tools > Install
    Image Added
    This will build and install the framework in the location defined in the WOLips preferences, overwriting any previously installed version of the framework.
  • Project Wonder Frameworks
    You can not build projects from Wonder this way. You must either use the command line or Hudson/Jenkins methods

Command Line / Terminal

  • Standard WebObjects Framework
    You can build a standard WebObjects Framework project by calling Ant and passing it the Project directory, and the name of the build target contained in the build.xml file at your project's root.
    Code Block
    none
    none
    cd /my/project/
    ant build
    
    By default, the built framework will be put in a dist directory in your project's root.
  • Project Wonder Frameworks
    This assumes that you have already downloaded the Wonder source code. Make a note of the location of the Wonder directory.
    If you are building Project Wonder's frameworks you will use these commands instead:
    Code Block
    none
    none
    cd /path/to/Wonder
    ant frameworks
    
    By default, all the Wonder frameworks will be built to (~/Roots) (in your home directory).

Eclipse/WOLips

  • Standard WebObjects Framework
    Right-Click on your project in Eclipse and select WOLips Ant Tools > Install
    Image Removed
    This will build and install the framework in the location defined in the WOLips preferences, overwriting any previously installed version of the framework.
  • Project Wonder Frameworks
    You can not build projects from Wonder this way. You must either use the command line or Hudson/Jenkins methods

Hudson/Jenkins

...

  • ).

Customizing the Build

By modifying the values in the build.properties and wolips.properties files or by passing in arguments to the Ant command, you can change where Ant will look for dependencies (binary frameworks, libraries, etc.) and where it will install the build products.

...