Versions Compared

Key

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

Kuali OLE uses Ant for deployments and unit testing.

Anchor
buildprops
buildprops
Build Properties
Anchor

Configuration properties may be specified by certain files which are looked for automatically by the script. The first definition of a property will be used by the build, i.e. Ant does not work like many other things where the last value wins. There are three locations that that the build script attempts to load properties from, in the order specified:

  1. ${user.home}/ole-build.properties

    Info

    User Home Locations

    • Unix: /home/username/ole-build.properties
    • Mac OS X: /Users/username/ole-build.properties
    • Windows XP: C:/Documents and Settings/username/ole-build.properties
    • Windows Vista: C:/Users/username/ole-build.properties
  2. ${institution.build.properties.file} (location set in the above ole-build.properties)
  3. ${build.environment}-build.properties
  4. The build/properties directory in the ole project. You should not generally change the properties here. Override them in one of the above files.
    • build/properties/build.properties
    • build/properties/database.properties
    • build/properties/directory.properties
    • build/properties/logging.properties
    • build/properties/batch.properties
    • build/properties/email.properties
    • build/properties/url.properties
    • build/properties/cas.properties
    • build/properties/rice.properties
    • build/properties/spring.properties
    • build/properties/web.properties
    • build/properties/b2b.properties

Build Target Overview

To deploy OLE, you can use the dist or dist-local targets of the OLE build.xml. To execute the OLE unit tests, you can use the test-local or continuous-integration targets.  The dist-local and test-local targets assume that you are using an IDE for compilation. If not, you will need to add this line to your build properties file and use the make-source target, too: war.classes.directory=work/web-root/WEB-INF/classes. The continuous-integration target is intended for use within an automated testing tool like Hudson. See the setup instructions and the help target in the build file itself for more information.

"dist" Targets Flow

Test Targets Flow

Directory & File Creation

OLE requires that certain external directories and files exist at runtime.

  • The settings and security directories must be created and populated

    Info

    The goal of externalizing some of the application configuration is to allow for modification without a deployment. Also, the secure information contained in some of these files (e.g. database passwords) has different access requirements than code does.

  • The logs and work (attachments, reports, staging) directories must be created
  • Certain files must be added to the application server

The dist-local target accounts for these external dependencies. It copies the files and folders in the build/external directory of the project to their expected locations. The expected locations are configurable via build properties. The configuration properties page lists the default values for the properties that control the expected locations.

...