Torque

Torque

Guides

Howto Guides

Development

Torque Directory Structure

Here is what the Torque directory structure looks like in CVS:

    jakarta-turbine-torque/
      bin/            <--- directory for building the project
      docs/           <--- directory where docs are generated
      examples/       <--- example schema and config files
      profile/        <--- testing profiles
      src/            <--- sources
        conf/         <--- runtime configuration
        dtd/          <--- DTD for schema.xml files
        java/         <--- java sources
        rttest/       <--- sources for the runtime tests
        schema/       <--- needed schema files (IDBroker)
        templates/    <--- templates for sql- and om- generation
        test/         <--- junit tests
      xdocs/          <--- docs in anakia xml format
      


Building

Building Torque from CVS is now very easy because it has been Maven-enabled. Before you begin, you'll need to check out the jakarta-turbine-torque CVS repository (if you are not familiar with the Jakarta CVS repositories, please refer to the documentation).

Please refer to the Maven Getting Started document for instructions on how to build the project usnig Maven.


Testing

You must define a profile in your ${user.home}/build.properties file

    torque.testProfile=profile/oracle.profile
      

Edit the profile to match your database settings. To start the runtime tests simply type:

    ant test
      

Please report any problems to the turbine-dev mailing list.



Copyright © 1999-2002, Apache Software Foundation