commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prick...@apache.org
Subject cvs commit: jakarta-commons-sandbox/periodicity/conf/build build.om.properties
Date Thu, 03 Oct 2002 04:07:57 GMT
prickett    2002/10/02 21:07:57

  Modified:    periodicity/conf/build build.om.properties
  Added:       periodicity build-legacy.xml build-torque.xml maven.xml
  Removed:     periodicity build.properties build.xml
  Log:
  Continuing with the conversion over to using maven for the build process
  
  Renamed build.xml to build-legacy.xml
  
  Added a slightly modified build-torque.xml file from torque.
  
  Added a maven.xml file so that I can generate the peers using Torque so that
  they will be included so the build will run to completion
  
  Updated the build.om.properties file with the current one from Torque
  
  Revision  Changes    Path
  1.1                  jakarta-commons-sandbox/periodicity/build-legacy.xml
  
  Index: build-legacy.xml
  ===================================================================
  <project name="Periodicity" default="core" basedir=".">
    <property name="version" value="0.0.1-dev"/>
    <property name="project" value="periodicity"/>
    <property name="build.dir" value="./bin"/>
    <property name="build.src" value="${build.dir}/src"/>
    <property name="build.dest" value="${build.dir}/classes"/>
    <property name="build.ear" value="${build.dir}/ear"/>
    <property name="build.war" value="${build.dir}/war"/>
    <property name="torque.home" value="${build.dir}/torque"/>
    <property name="tdk.home" value="${build.dir}/tdk"/>
    <property name="src.java.dir" value="./src/java"/>
    <property name="library.dir" value="./lib"/>
    <property name="conf.dir" value="./conf"/>
    <property name="javadoc.dir" value="./docs/api"/>
    <property name="final.name" value="${project}-${version}"/>
    <property name="final.dir" value="./${final-name}"/>
    <property name="build.properties" value="build.properties"/>
    <property name="build.sysclasspath" value="first"/>
    <property file="${build.properties}"/>
    <property file="./conf/build/build.om.properties"/>
    <property file="./conf/build/build.db.properties"/>
    <property file="./conf/build/build.jars.properties"/>
  
    <path id="classpath">
      <fileset dir="${maven.home}/repository">
        <include name="**/*.jar"/>
      </fileset>  
    </path>
  
    <target name="mv-src">
      <mkdir dir="${build.dir}"/>
      <mkdir dir="${build.dest}"/>
      <mkdir dir="${build.src}"/>
      <copy todir="${build.src}">
        <fileset dir="${src.java.dir}"/>
      </copy>
    </target>
  
    <target name="extract-torque-files">
      <unjar src="${torque.jar}" dest="${torque.home}"/>
    </target>  
  
    <target name="generate-sql" depends="update-id-xml">
      <taskdef
        name="torque-sql"
        classname="org.apache.torque.task.TorqueSQLTask">
        <classpath refid="classpath"/>
      </taskdef>  
    
      <torque-sql
        contextProperties="${build.properties}"
        controlTemplate="${SQLControlTemplate}"
        outputDirectory="${build.src}/sql"
        templatePath="${torque.home}"
        basePathToDbProps="sql/base/"
        outputFile="report.${project}.sql.generation"
        idTableXMLFile="${torque.home}/id-table-schema.xml"
        targetDatabase="${database}">
        <fileset dir="./src/xml">
          <include name="periodicity-schema.xml"/>
        </fileset>
      </torque-sql>
    </target>
  
    <target name="generate-peers" depends="mv-src">
      <antcall target="extract-torque-files"/>
      <taskdef
        name="torque-om"
        classname="org.apache.torque.task.TorqueDataModelTask">
        <classpath refid="classpath"/>
      </taskdef>  
      
      <torque-om
        contextProperties="./conf/build/build.om.properties"
        basePathToDbProps="sql/base/"
        targetPackage="${targetPackage}.om"
        sqlDbMap="${build.src}/sql/sqldb.map"
        useClasspath="true"
        targetDatabase="${database}">
        <fileset dir="./src/xml">
          <include name="periodicity-schema.xml"/>
        </fileset>
      </torque-om>  
    </target>  
  
    <target name="test-vobjects">
      <junit printsummary="yes" haltonfailure="yes">
        <test name="org.apache.commons.periodicity.test.VObjectTests" 
              haltonfailure="no" outfile="result">
          <formatter type="xml"/>
        </test>
      </junit>
    </target>  
    
    <target name="core">
      <antcall target="generate-peers"/>
      <antcall target="recompile-no-peer-generation"/>
    </target>  
  
    <target name="recompile-no-peer-generation">  
      <javac srcdir="${build.dir}" destdir="${build.dest}" debug="${debug}">
        <classpath refid="classpath"/>
      </javac>  
      <jar jarfile="${build.dir}/${project}-${version}.jar" 
           basedir="${build.dest}"/>
    </target>  
    
    <target name="war-no-build-fast">
      <mkdir dir="${build.war}"/>
      <mkdir dir="${build.war}/WEB-INF"/>
      <mkdir dir="${build.war}/WEB-INF/lib"/>
      <mkdir dir="${build.war}/WEB-INF/conf"/>
      <mkdir dir="${build.war}/WEB-INF/templates"/>
      <mkdir dir="${build.war}/WEB-INF/templates/screens"/>
      <mkdir dir="${tdk.home}"/>
      <gunzip src="${lib.repo}/tdk-templates.tar.gz"
            dest="${tdk.home}/tdk-templates.tar"/>
      <untar src="${tdk.home}/tdk-templates.tar"
             dest="${tdk.home}"/>
      <copy todir="${build.war}/WEB-INF/templates/screens">
        <fileset dir="./src/velocity/test"/>
      </copy>  
      <copy todir="${build.war}/WEB-INF/lib">
        <fileset dir="./lib">
          <exclude name="tdk.jar"/>
        </fileset>  
      </copy>  
      <copy file="${build.dir}/${project}-${version}.jar"
            todir="${build.war}/WEB-INF/lib"/>
      <copy file="./conf/turbine/TurbineResources.properties" 
            todir="${build.war}/WEB-INF/conf"/>
      <antcall target="create-${database}-torque-properties"/>            
      <copy file="./conf/tomcat/web.xml"
             todir="${build.war}/WEB-INF"/>
      <copy file="${tdk.home}/Default.vm"
            todir="${build.war}/WEB-INF/templates/layouts"/>
      <copy file="${tdk.home}/DefaultBottom.vm"
            todir="${build.war}/WEB-INF/templates/navigations"/>
      <copy file="./src/velocity/turbine/DefaultTop.vm"
            todir="${build.war}/WEB-INF/templates/navigations"/>
      <copy file="${tdk.home}/Index.vm"
            todir="${build.war}/WEB-INF/templates/screens"/>
      <copy file="${tdk.home}/Menu.vm"
            todir="${build.war}/WEB-INF/templates/navigations"/>
      <copy todir="${build.war}/${javadoc.dir}">
        <fileset dir="${javadoc.dir}"/>
      </copy>  
      <jar jarfile="${build.dir}/${project}.war"
           basedir="${build.war}"/>
    </target>
    
    <target name="create-mysql-torque-properties">
      <taskdef name="torque-props" 
        classname="org.apache.commons.periodicity.ant.CustomizeTorquePropsTask">
        <classpath refid="classpath"/>
      </taskdef>  
      <torque-props original="./conf/torque/torque.properties"
                    custom="${build.war}/WEB-INF/conf/Torque.properties"
                    user="${databaseUser}" password="${databasePassword}"
                    url="${mysql.databaseUrl}" 
                    driver="${mysql.databaseDriver}"/>
    </target>
  
    <target name="create-postgresql-torque-properties">
      <taskdef name="torque-props" 
        classname="org.apache.commons.periodicity.ant.CustomizeTorquePropsTask">
        <classpath refid="classpath"/>
      </taskdef>  
      <torque-props original="./conf/torque/torque.properties"
                    custom="${build.war}/WEB-INF/conf/Torque.properties"
                    user="${databaseUser}" password="${databasePassword}"
                    url="${postgresql.databaseUrl}" 
                    driver="${postgresql.databaseDriver}"/>
    </target>
    
    <target name="war-build-fast" depends="core">
      <antcall target="war-no-build-fast"/>
    </target>  
  
    <target name="war">
      <antcall target="javadoc"/>
      <antcall target="war-build-fast"/>
    </target>  
       
    
    <target name="clean">
      <delete dir="${build.dir}"/>
    </target>  
  
    <target name="javadoc-clean">
      <delete dir="${javadoc.dir}"/>
    </target>
  
    <target name="real-clean">
      <antcall target="clean"/>
      <antcall target="javadoc-clean"/>
    </target>  
    
    <target name="javadoc">
      <mkdir dir="${javadoc.dir}"/> 
      <javadoc sourcepath="${src.java.dir}" destdir="${javadoc.dir}" 
                packagenames="org.apache.commons/periodicity.*"/>
    </target>  
  
    <target name="update-jars">
      <taskdef
        name="httpget"
        className="org.apache.tdk.task.Get">
        <classpath refid="classpath"/>
      </taskdef>
      <httpget
        baseUrl="http://jakarta.apache.org/turbine/jars/"
        dest="${lib.repo}"
        dependencyFile="conf/build/deps.list"
      />
    </target>  
  
    <target name="update-id-xml" depends="extract-torque-files">
      <get src="http://cvs.apache.org/viewcvs/~checkout~/jakarta-turbine-torque/src/schema/id-table-schema.xml"
           dest="${torque.home}/id-table-schema.xml"/>
    </target>       
  
    <target name="update-tdk-templates">
      <mkdir dir="${tdk.home}"/>
      <get src="http://cvs.apache.org/viewcvs/~checkout~/jakarta-turbine-tdk/src/tdk/apps/2/templates/app/layouts/Default.vm" dest="${tdk.home}/Default.vm"/>
      <get src="http://cvs.apache.org/viewcvs/~checkout~/jakarta-turbine-tdk/src/tdk/apps/2/templates/app/navigations/DefaultBottom.vm" dest="${tdk.home}/DefaultBottom.vm"/>
      <get src="http://cvs.apache.org/viewcvs/~checkout~/jakarta-turbine-tdk/src/tdk/apps/2/templates/app/navigations/Menu.vm" dest="${tdk.home}/Menu.vm"/>
      <get src="http://cvs.apache.org/viewcvs/~checkout~/jakarta-turbine-tdk/src/tdk/apps/2/templates/app/screens/Index.vm" dest="${tdk.home}/Index.vm"/>
      <tar tarfile="${lib.repo}/tdk-templates.tar"
           basedir="${tdk.home}"/>
      <gzip src="${lib.repo}/tdk-templates.tar" 
            zipfile="${lib.repo}/tdk-templates.tar.gz"/>
      <delete file="${lib.repo}/tdk-templates.tar"/>      
    </target>  
  
    <target name="update-dependencies">
      <mkdir dir="${torque.home}"/>
      <antcall target="update-jars"/>
      <antcall target="update-id-xml"/>
      <antcall target="update-tdk-templates"/>
      <antcall target="build-periodicity-ant-tasks"/>
    </target>  
  
    <target name="build-periodicity-ant-tasks">
      <mkdir dir="${build.dir}"/>
      <mkdir dir="${build.dest}"/>
      <mkdir dir="${build.src}"/>
      <copy todir="${build.src}">
        <fileset dir="${src.java.dir}/org/apache/commons/periodicity/ant">
        </fileset>  
      </copy>
      <javac srcdir="${build.dir}" destdir="${build.dest}" debug="${debug}">
        <classpath refid="classpath"/>
      </javac>  
      <jar jarfile="${periodicity.tasks.jar}"
           basedir="${build.dest}"/>
    </target>       
  
    <target name="generate-create-sql" depends="extract-torque-files">
      <taskdef
        name="torque-create-db"
        classname="org.apache.torque.task.TorqueCreateDatabase">
        <classpath refid="classpath"/>
      </taskdef>
      <torque-create-db
        controlTemplate="sql/db-init/Control.vm"
        outputDirectory="${build.src}/sql"
        templatePath="${torque.home}"
        outputFile="create-db.sql">
        <fileset dir="./src/xml">
          <include name="periodicity-schema.xml"/>
        </fileset>
      </torque-create-db>
    </target>  
    
    <target name="project-create-mysql-db">
      <sql
        driver="${mysql.databaseDriver}"
        url="${mysql.createDatabaseUrl}"
        userid="${databaseUser}"
        password="${databasePassword}"
        src="${build.src}/sql/create-db.sql"
        autocommit="true"
        onerror="continue">
        <classpath refid="classpath"/>
      </sql>  
    </target>
  
    <target name="project-create-postgresql-db">
      <sql
        driver="${postgresql.databaseDriver}"
        url="${postgresql.createDatabaseUrl}"
        userid="${databaseUser}"
        password="${databasePassword}"
        src="${build.src}/sql/create-db.sql"
        autocommit="true"
        onerror="continue">
        <classpath refid="classpath"/>
      </sql>  
    </target>
    
    <target name="project-create-db" depends="generate-create-sql">
      <antcall target="project-create-${database}-db"/>
    </target>  
  
    <target name="project-insert-mysql">
      <taskdef
        name="torque-insert-sql"
        classname="org.apache.torque.task.TorqueSQLExec">
        <classpath refid="classpath"/>
      </taskdef>
      <torque-insert-sql
        driver="${mysql.databaseDriver}"
        url="${mysql.databaseUrl}"
        userid="${databaseUser}"
        password="${databasePassword}"
        autocommit="true"
        onerror="continue"
        sqldbmap="${build.src}/sql/sqldb.map"
        srcDir="${build.src}/sql">
        <classpath refid="classpath"/>
      </torque-insert-sql>
    </target>  
  
    <target name="project-insert-postgresql">
      <taskdef
        name="torque-insert-sql"
        classname="org.apache.torque.task.TorqueSQLExec">
        <classpath refid="classpath"/>
      </taskdef>
      <torque-insert-sql
        driver="${postgresql.databaseDriver}"
        url="${postgresql.databaseUrl}"
        userid="${databaseUser}"
        password="${databasePassword}"
        autocommit="true"
        onerror="continue"
        sqldbmap="${build.src}/sql/sqldb.map"
        srcDir="${build.src}/sql">
        <classpath refid="classpath"/>
      </torque-insert-sql>
    </target>
    
    <target name="project-insert-sql" depends="generate-sql">
      <antcall target="project-insert-${database}"/>
    </target>  
  
    <target name="dist" depends="war">
      <copy todir="${build.dir}/${project}/${project}">
        <fileset dir=".">
          <exclude name="velocity.log*"/>
          <exclude name="test.properties"/>
        </fileset>  
      </copy>
      <copy file="${build.dir}/${project}-${version}.jar" 
            tofile="${build.dir}/${project}/${project}/lib/${project}-${version}.jar"/>
      <copy file="${build.dir}/${project}.war"
            tofile="${build.dir}/${project}/${project}/${project}.war"/>
      <delete dir="${build.dir}/${project}/${project}/${build.dir}"/>      
      <zip zipfile="${build.dir}/${project}-${version}.zip"
           basedir="${build.dir}/${project}"/>
      <tar tarfile="${build.dir}/${project}-${version}.tar"
           basedir="${build.dir}/${project}"/>
      <gzip src="${build.dir}/${project}-${version}.tar"
            zipfile="${build.dir}/${project}-${version}.tar.gz"/>
      <delete file="${build.dir}/${project}-${version}.tar"/>      
    </target>  
  
    <target name="install-db">
      <antcall target="project-create-db"/>
      <antcall target="project-insert-sql"/>
    </target>  
  
    <target name="install" depends="install-db">
      <antcall target="war"/>
    </target>  
  </project>  
  
  
  
  1.1                  jakarta-commons-sandbox/periodicity/build-torque.xml
  
  Index: build-torque.xml
  ===================================================================
  <project name="Torque" default="main" basedir=".">
    <!--
      Note - You should not have to edit this file.
  
      Instead, if calling build-torque.xml directly, edit the build.properties
      that is in the same directory. If calling build-torque.xml via another
      build file, you can also use the build.properties in the same directory,
      or set the property torque.contextProperties to the file
      to use in place of build.properties (e.g. project.properties).
    -->
  
    <!--
      For us to load the default.properties from the classpath, we need to bootstrap.
      To know the right lib.dir for the torque-classpath, we need to manually
      figure out torque.lib.dir, but to do that, we need to manually figure
      out torque.contextProperties and load that so that any old configurations
      still work propertly. Then we can go on and do the rest of the mappings via
      old.properties.
     -->
    <property name="build.properties" value="conf/build/build.om.properties"/>
    <property name="torque.contextProperties" value="${build.properties}"/>
    <property file="${torque.contextProperties}"/>
    <property name="lib.dir" value="${maven.home}/repository"/>
    <property name="torque.lib.dir" value="${lib.dir}"/>
    <property name="torque.jar" value="torque-3.0-b5-dev.jar"/>
  
    <!--
      Build the classpath. Specifically point to each file we're including to avoid
      version conflicts in the case of the torque.lib.dir being something like lib.repo.
      However, we still need to pull in the user's database driver and since we don't
      know which jar that will be, after we've got all of our specific, version-safe jars,
      do a general inclusion of the torque.lib.dir to catch any drivers.
    -->
    <path id="torque-classpath">
      <fileset dir="${torque.lib.dir}">
        <include name="**/*.jar"/>
      </fileset>
    </path>
  
    <!--
      The default.properties file will map old properties to the new ones along
      with setting the corret defaults.
    -->
    <property resource="org/apache/torque/default.properties">
      <classpath>
        <path refid="torque-classpath"/>
      </classpath>
    </property>
  
    <!--
      Do forward declarations of all of our tasks to
      centralize them and clean up the targets.
    -->
    <taskdef
      name="torque-data-model"
      classpathref="torque-classpath"
      classname="org.apache.torque.task.TorqueDataModelTask"/>
    <taskdef
      name="torque-data-dump"
      classpathref="torque-classpath"
      classname="org.apache.torque.task.TorqueDataDumpTask"/>
    <taskdef
      name="torque-data-sql"
      classpathref="torque-classpath"
      classname="org.apache.torque.task.TorqueDataSQLTask"/>
    <taskdef
      name="torque-doc"
      classpathref="torque-classpath"
      classname="org.apache.torque.task.TorqueDocumentationTask"/>
    <taskdef
      name="torque-jdbc-transform"
      classpathref="torque-classpath"
      classname="org.apache.torque.task.TorqueJDBCTransformTask"/>
    <taskdef
      name="torque-package-to-path"
      classpathref="torque-classpath"
      classname="org.apache.torque.task.PackageAsPathTask"/>
    <taskdef
      name="torque-sql"
      classpathref="torque-classpath"
      classname="org.apache.torque.task.TorqueSQLTask"/>
    <taskdef
      name="torque-sql-exec"
      classpathref="torque-classpath"
      classname="org.apache.torque.task.TorqueSQLExec"/>
    <taskdef
      name="torque-sql-transform"
      classpathref="torque-classpath"
      classname="org.apache.torque.task.TorqueSQLTransformTask"/>
  
    <!-- ================================================================ -->
    <!-- M A I N  T A R G E T                                             -->
    <!-- ================================================================ -->
    <!-- This default target will run all the targets that generate       -->
    <!-- source. You will probably only run this target once then         -->
    <!-- call individual targets as necessary to update your sources      -->
    <!-- when you change your XML schema.                                 -->
    <!-- ================================================================ -->
  
    <target
      name="main"
      description="==> generates sql + om classes">
  
      <antcall target="sql"/>
      <antcall target="om"/>
    </target>
  
    <!-- ================================================================ -->
    <!-- C H E C K  U S E C L A S S P A T H                               -->
    <!-- ================================================================ -->
    <!-- Temporary hack around the propertiesUtil bug. Should             -->
    <!-- be fixed soon.                                                   -->
    <!-- ================================================================ -->
  
    <target name="check-use-classpath">
      <condition property="torque.internal.useClasspath">
        <equals arg1="${torque.useClasspath}" arg2="true"/>
      </condition>
    </target>
  
    <!-- ================================================================ -->
    <!-- C H E C K  R U N  O N L Y  O N  S C H E M A  C H A N G E         -->
    <!-- ================================================================ -->
    <!-- Maps the torque.runOnlyOnSchemaChange to                         -->
    <!-- torque.internal.runOnlyOnSchemaChange                            -->
    <!-- ================================================================ -->
  
    <target name="check-run-only-on-schema-change">
      <condition property="torque.internal.runOnlyOnSchemaChange">
        <equals arg1="${torque.runOnlyOnSchemaChange}" arg2="true"/>
      </condition>
    </target>
  
    <!-- ================================================================ -->
    <!-- G E N E R A T E  P R O J E C T  S Q L                            -->
    <!-- ================================================================ -->
    <!-- Generate the SQL for your project, These are in addition         -->
    <!-- to the base Turbine tables! The tables you require for your      -->
    <!-- project should be specified in project-schema.xml.               -->
    <!-- ================================================================ -->
  
    <target
      name="sql-check"
      depends="check-run-only-on-schema-change"
      if="torque.internal.runOnlyOnSchemaChange">
      <uptodate
        property="torque.internal.sql.uptodate"
        targetfile="${torque.sql.dir}/${torque.project}-schema.sql">
        <srcfiles dir="${torque.schema.dir}" includes="**/*-schema.xml" />
      </uptodate>
    </target>
  
    <target
      name="sql"
      depends="check-use-classpath, sql-check"
      unless="torque.internal.sql.uptodate"
      description="==> generates the SQL for your project">
  
      <echo message="+------------------------------------------+"/>
      <echo message="|                                          |"/>
      <echo message="| Generating SQL for YOUR Torque project!  |"/>
      <echo message="| Woo hoo!                                 |"/>
      <echo message="|                                          |"/>
      <echo message="+------------------------------------------+"/>
  
      <antcall target="sql-classpath"/>
      <antcall target="sql-template"/>
    </target>
  
    <target name="sql-classpath" if="torque.internal.useClasspath">
      <torque-sql
        basePathToDbProps="sql/base/"
        contextProperties="${torque.contextProperties}"
        controlTemplate="${torque.template.sql}"
        idTableXMLFile="${torque.idTableXMLFile}"
        outputDirectory="${torque.sql.dir}"
        outputFile="report.${torque.project}.sql.generation"
        sqldbmap="${torque.sql.dir}/sqldb.map"
        targetDatabase="${torque.database}"
        useClasspath="${torque.useClasspath}">
        <fileset dir="${torque.schema.dir}"
          includes="${torque.schema.sql.includes}"
          excludes="${torque.schema.sql.excludes}"
        />
      </torque-sql>
    </target>
  
    <target name="sql-template" unless="torque.internal.useClasspath">
      <torque-sql
        basePathToDbProps="sql/base/"
        contextProperties="${torque.contextProperties}"
        controlTemplate="${torque.template.sql}"
        idTableXMLFile="${torque.idTableXMLFile}"
        outputDirectory="${torque.sql.dir}"
        outputFile="report.${torque.project}.sql.generation"
        sqldbmap="${torque.sql.dir}/sqldb.map"
        targetDatabase="${torque.database}"
        templatePath="${torque.templatePath}">
        <fileset dir="${torque.schema.dir}"
          includes="${torque.schema.sql.includes}"
          excludes="${torque.schema.sql.excludes}"
        />
      </torque-sql>
    </target>
  
    <!-- ================================================================ -->
    <!-- G E N E R A T E   D O C S                                        -->
    <!-- ================================================================ -->
    <!-- Generates documentation to                                       -->
    <!-- ${torque.doc.dir}/project-schema.html                            -->
    <!-- ================================================================ -->
  
  
    <target
      name="doc"
      description="==> generates documentation for your datamodel">
  
      <echo message="+------------------------------------------+"/>
      <echo message="|                                          |"/>
      <echo message="| Generating docs for YOUR datamodel!      |"/>
      <echo message="| Woo hoo!                                 |"/>
      <echo message="|                                          |"/>
      <echo message="+------------------------------------------+"/>
  
      <torque-doc
        contextProperties="${torque.contextProperties}"
        controlTemplate="${torque.template.doc}"
        outputDirectory="${torque.doc.dir}"
        outputFile="report.${torque.project}.doc.generation"
        outputFormat="${torque.doc.format}"
        sqldbmap="${torque.sql.dir}/sqldb.map"
        templatePath="${torque.templatePath}"
        useClasspath="${torque.useClasspath}">
        <fileset dir="${torque.schema.dir}"
          includes="${torque.schema.doc.includes}"
          excludes="${torque.schema.doc.excludes}"
        />
      </torque-doc>
    </target>
  
    <!-- ================================================================ -->
    <!-- C R E A T E  T A R G E T  D A T A B A S E                        -->
    <!-- ================================================================ -->
    <!-- Create the target database by executing a generated script       -->
    <!-- that is capable of performing the task.                          -->
    <!-- ================================================================ -->
  
    <target name="create-db-check">
      <condition property="torque.internal.manualCreation">
        <equals arg1="${torque.database.manualCreation}" arg2="true"/>
      </condition>
    </target>
  
    <target
      name="create-db"
      unless="torque.internal.manualCreation"
      depends="create-db-check"
      description="==> generates the target database">
  
      <torque-data-model
        controlTemplate="${torque.template.sqlDbInit}"
        outputDirectory="${torque.sql.dir}"
        outputFile="create-db.sql"
        targetDatabase="${torque.database}"
        templatePath="${torque.templatePath}"
        useClasspath="${torque.useClasspath}">
        <fileset dir="${torque.schema.dir}"
          includes="${torque.schema.create-db.includes}"
          excludes="${torque.schema.create-db.excludes}"
        />
      </torque-data-model>
  
      <echo>
        Executing the create-db.sql script ...
      </echo>
  
      <sql
        autocommit="true"
        driver="${torque.database.driver}"
        onerror="continue"
        password="${torque.database.password}"
        src="${torque.sql.dir}/create-db.sql"
        url="${torque.database.createUrl}"
        userid="${torque.database.user}">
        <classpath refid="torque-classpath"/>
      </sql>
    </target>
  
    <!-- ================================================================ -->
    <!-- I N S E R T  S I N G L E  S Q L  F I L E S                       -->
    <!-- ================================================================ -->
  
    <target
      name="insert-sql"
      description="==> inserts the generated sql ">
  
      <torque-sql-exec
        autocommit="true"
        driver="${torque.database.driver}"
        onerror="continue"
        password="${torque.database.password}"
        sqldbmap="${torque.sql.dir}/sqldb.map"
        srcDir="${torque.sql.dir}"
        url="${torque.database.buildUrl}"
        userid="${torque.database.user}">
        <classpath refid="torque-classpath"/>
      </torque-sql-exec>
    </target>
  
    <!-- ================================================================ -->
    <!-- J D B C  TO  X M L                                               -->
    <!-- ================================================================ -->
  
    <target
      name="jdbc"
      description="==> jdbc to xml">
  
      <echo message="+-----------------------------------------------+"/>
      <echo message="|                                               |"/>
      <echo message="| Generating XML from JDBC connection !         |"/>
      <echo message="| Woo hoo!                                      |"/>
      <echo message="|                                               |"/>
      <echo message="+-----------------------------------------------+"/>
  
      <torque-jdbc-transform
        dbDriver="${torque.database.driver}"
        dbPassword="${torque.database.password}"
        dbSchema="${torque.database.schema}"
        dbUrl="${torque.database.url}"
        dbUser="${torque.database.user}"
        outputFile="${torque.schema.dir}/schema.xml"
        sameJavaName="${torque.sameJavaName}"
      />
    </target>
  
    <!-- ================================================================ -->
    <!-- Generate SQL from XML data file                                  -->
    <!-- ================================================================ -->
  
    <target
      name="datasql"
      description="==> generates sql from data xml">
  
      <echo message="+-----------------------------------------------+"/>
      <echo message="|                                               |"/>
      <echo message="| Generating SQL from data XML !                |"/>
      <echo message="| Woo hoo!                                      |"/>
      <echo message="|                                               |"/>
      <echo message="+-----------------------------------------------+"/>
  
      <torque-data-sql
        contextProperties="${torque.contextProperties}"
        controlTemplate="${torque.template.dataSql}"
        dataDTD="${torque.schema.dir}/${torque.project}-data.dtd"
        dataXmlFile="${torque.schema.dir}/${torque.project}-data.xml"
        outputDirectory="${torque.output.dir}"
        outputFile="${torque.project}-data.sql"
        sqldbmap="${torque.sql.dir}/sqldb.map"
        targetDatabase="${torque.database}"
        templatePath="${torque.templatePath}"
        useClasspath="${torque.useClasspath}"
        xmlFile="${torque.schema.dir}/${torque.project}-schema.xml"
      />
    </target>
  
    <!-- ================================================================ -->
    <!-- G E N E R A T E   I D   B R O K E R   I N I T   S Q L            -->
    <!-- ================================================================ -->
  
    <target
      name="id-table-init-sql"
      description="==> generates initialization sql for ID Broker">
  
      <echo message="+------------------------------------------+"/>
      <echo message="|                                          |"/>
      <echo message="| Generating initialization SQL            |"/>
      <echo message="| for ID Broker system!                    |"/>
      <echo message="|                                          |"/>
      <echo message="+------------------------------------------+"/>
  
      <torque-sql
        contextProperties="${torque.contextProperties}"
        controlTemplate="${torque.template.idTable}"
        outputDirectory="${torque.sql.dir}"
        outputFile="${torque.database}-id-table-init.sql"
        sqldbmap="${torque.sql.dir}/sqldb.map"
        suffix="-idtable-init"
        targetDatabase="${torque.database}"
        templatePath="${torque.templatePath}"
        useClasspath="${torque.useClasspath}">
        <fileset dir="${torque.schema.dir}"
          includes="${torque.schema.init-sql.includes}"
          excludes="${torque.schema.init-sql.excludes}"
        />
      </torque-sql>
    </target>
  
    <!-- ================================================================ -->
    <!-- Dump data from database into xml file                            -->
    <!-- ================================================================ -->
  
    <target
      name="datadump"
      description="==> dump data from database into xml file">
  
      <echo message="+-----------------------------------------------+"/>
      <echo message="|                                               |"/>
      <echo message="| Dumping the data from database into XML       |"/>
      <echo message="| Woo hoo!                                      |"/>
      <echo message="|                                               |"/>
      <echo message="+-----------------------------------------------+"/>
  
      <torque-data-dump
        contextProperties="${torque.contextProperties}"
        controlTemplate="${torque.template.dataDump}"
        databaseDriver="${torque.database.driver}"
        databaseName="${torque.database.name}"
        databaseUrl="${torque.database.url}"
        databaseUser="${torque.database.user}"
        databasePassword="${torque.database.password}"
        outputDirectory="${torque.output.dir}"
        outputFile="report.${torque.project}.datadump.generation"
        templatePath="${torque.templatePath}"
        useClasspath="${torque.useClasspath}"
        xmlFile="${torque.schema.dir}/${torque.project}-schema.xml"
      />
    </target>
  
    <!-- ================================================================ -->
    <!-- G E N E R A T E  P R O J E C T  D A T A  D T D                   -->
    <!-- ================================================================ -->
    <!-- Generate the DATA DTD for your project                           -->
    <!-- ================================================================ -->
  
    <target
      name="datadtd"
      description="==> generates the DATA DTD for your project">
  
      <echo message="+-----------------------------------------------+"/>
      <echo message="|                                               |"/>
      <echo message="| Generating Data DTD for YOUR Torque project!  |"/>
      <echo message="| Woo hoo!                                      |"/>
      <echo message="|                                               |"/>
      <echo message="+-----------------------------------------------+"/>
  
      <torque-data-model
        contextProperties="${torque.contextProperties}"
        controlTemplate="${torque.template.dataDtd}"
        outputDirectory="${torque.output.dir}"
        outputFile="report.${torque.project}.datadtd.generation"
        templatePath="${torque.templatePath}"
        useClasspath="${torque.useClasspath}"
        xmlFile="${torque.schema.dir}/${torque.project}-schema.xml"
      />
    </target>
  
    <!-- ================================================================ -->
    <!-- G E N E R A T E  P R O J E C T  P E E R  B A S E D  O M          -->
    <!-- ================================================================ -->
    <!-- Generate the Peer-based object model for your project.           -->
    <!-- These are in addition to the base Turbine OM!                    -->
    <!-- ================================================================ -->
  
    <target
      name="om-check"
      depends="check-run-only-on-schema-change"
      if="torque.internal.runOnlyOnSchemaChange">
      <uptodate
        property="torque.internal.om.uptodate"
        targetfile="${torque.java.dir}/report.${torque.project}.om.generation">
        <srcfiles dir="${torque.schema.dir}" includes="**/*-schema.xml" />
      </uptodate>
    </target>
  
    <target
      name="om"
      depends="check-use-classpath, om-check"
      unless="torque.internal.om.uptodate"
      description="==> generates the Peer-based object model for your project">
  
      <echo message="+------------------------------------------+"/>
      <echo message="|                                          |"/>
      <echo message="| Generating Peer-based Object Model for   |"/>
      <echo message="| YOUR Torque project! Woo hoo!            |"/>
      <echo message="|                                          |"/>
      <echo message="+------------------------------------------+"/>
  
      <antcall target="om-classpath"/>
      <antcall target="om-template"/>
      <!-- antcall target="zip-base-om"/ -->
    </target>
  
    <target name="om-classpath" if="torque.internal.useClasspath">
      <torque-data-model
        contextProperties="${torque.contextProperties}"
        controlTemplate="${torque.template.om}"
        outputDirectory="${torque.java.dir}"
        outputFile="report.${torque.project}.om.generation"
        targetDatabase="${torque.database}"
        targetPackage="${torque.targetPackage}"
        useClasspath="${torque.useClasspath}">
        <fileset dir="${torque.schema.dir}"
          includes="${torque.schema.om.includes}"
          excludes="${torque.schema.om.excludes}"
        />
      </torque-data-model>
    </target>
  
    <target name="om-template" unless="torque.internal.useClasspath">
      <torque-data-model
        contextProperties="${torque.contextProperties}"
        controlTemplate="${torque.template.om}"
        outputDirectory="${torque.java.dir}"
        outputFile="report.${torque.project}.om.generation"
        targetDatabase="${torque.database}"
        targetPackage="${torque.targetPackage}"
        templatePath="${torque.templatePath}">
        <fileset dir="${torque.schema.dir}"
          includes="${torque.schema.om.includes}"
          excludes="${torque.schema.om.excludes}"
        />
      </torque-data-model>
    </target>
  
  
    <!-- ================================================================ -->
    <!-- G E N E R A T E  O M  Z I P  F I L E                             -->
    <!-- ================================================================ -->
    <!-- Moves the files out of your source tree and into a zip file.     -->
    <!-- ================================================================ -->
  
    <target name="check-om-zip">
      <condition property="torque.internal.omzip.src.base">
        <equals arg1="${torque.omzip.src.base}" arg2="true"/>
      </condition>
      <condition property="torque.internal.omzip.src.extension">
        <equals arg1="${torque.omzip.src.extension}" arg2="true"/>
      </condition>
      <condition property="torque.internal.omzip.bin.base">
        <equals arg1="${torque.omzip.bin.base}" arg2="true"/>
      </condition>
      <condition property="torque.internal.omzip.bin.extension">
        <equals arg1="${torque.omzip.bin.extension}" arg2="true"/>
      </condition>
      <condition property="torque.internal.omzip.deleteFiles">
        <equals arg1="${torque.omzip.deleteFiles}" arg2="true"/>
      </condition>
    </target>
  
    <target
      name="om-zip"
      depends="check-om-zip"
      description="==> moves source om files to separate jar and out of the source tree">
  
      <echo message="+------------------------------------------+"/>
      <echo message="|                                          |"/>
      <echo message="| Zipping the Object Model files for YOUR  |"/>
      <echo message="| Torque project! Woo hoo!                 |"/>
      <echo message="|                                          |"/>
      <echo message="+------------------------------------------+"/>
  
      <!-- Perform the package to path converison. -->
      <torque-package-to-path
        name="torque.internal.omzip.packagePath"
        package="${torque.targetPackage}"
      />
  
      <!-- See if the source files need jar'ed. -->
      <antcall target="om-zip-worker">
        <param name="torque.internal.omzip.type" value="src"/>
        <param name="torque.internal.omzip.pattern" value="base"/>
        <param name="torque.internal.omzip.files" value="java"/>
        <param name="torque.internal.omzip.dir" value="${torque.java.dir}"/>
      </antcall>
      <antcall target="om-zip-worker">
        <param name="torque.internal.omzip.type" value="src"/>
        <param name="torque.internal.omzip.pattern" value="extension"/>
        <param name="torque.internal.omzip.files" value="java"/>
        <param name="torque.internal.omzip.dir" value="${torque.java.dir}"/>
      </antcall>
      <!-- See if the class files need jar'ed. -->
      <antcall target="om-zip-worker">
        <param name="torque.internal.omzip.type" value="bin"/>
        <param name="torque.internal.omzip.pattern" value="base"/>
        <param name="torque.internal.omzip.files" value="class"/>
        <param name="torque.internal.omzip.dir" value="${torque.compile.build.dir}"/>
      </antcall>
      <antcall target="om-zip-worker">
        <param name="torque.internal.omzip.type" value="bin"/>
        <param name="torque.internal.omzip.pattern" value="extension"/>
        <param name="torque.internal.omzip.files" value="class"/>
        <param name="torque.internal.omzip.dir" value="${torque.compile.build.dir}"/>
      </antcall>
    </target>
  
    <target
      name="om-zip-worker"
      if="torque.internal.omzip.${torque.internal.omzip.type}.${torque.internal.omzip.pattern}">
  
      <!-- Base files that typically aren't modified. -->
      <patternset id="torque.internal.omzip.pattern.base">
        <include name="${torque.internal.omzip.packagePath}/${torque.basePrefix}*.${torque.internal.omzip.files}"/>
        <include name="${torque.internal.omzip.packagePath}/map/*MapBuilder.${torque.internal.omzip.files}"/>
      </patternset>
      <!-- Extension files that typically are modified. -->
      <patternset id="torque.internal.omzip.pattern.extension">
        <include name="${torque.internal.omzip.packagePath}/*.${torque.internal.omzip.files}"/>
      </patternset>
  
      <jar
        jarfile="${torque.omzip.dir}/${torque.project}-om-${torque.internal.omzip.type}.jar"
        update="true">
        <fileset dir="${torque.internal.omzip.dir}">
          <patternset refid="torque.internal.omzip.pattern.${torque.internal.omzip.pattern}"/>
        </fileset>
      </jar>
  
      <antcall target="om-zip-worker-delete"/>
  
    </target>
  
    <target
      name="om-zip-worker-delete"
      if="torque.internal.omzip.deleteFiles">
  
      <!-- Base files that typically aren't modified. -->
      <patternset id="torque.internal.omzip.pattern.base">
        <include name="${torque.internal.omzip.packagePath}/${torque.basePrefix}*.*"/>
        <include name="${torque.internal.omzip.packagePath}/map/*MapBuilder.*"/>
      </patternset>
      <!-- Extension files that typically are modified. -->
      <patternset id="torque.internal.omzip.pattern.extension">
        <include name="${torque.internal.omzip.packagePath}/*.*"/>
      </patternset>
  
      <delete>
        <fileset dir="${torque.internal.omzip.dir}">
          <patternset refid="torque.internal.omzip.pattern.${torque.internal.omzip.pattern}"/>
        </fileset>
      </delete>
  
    </target>
  
    <!-- =================================================================== -->
    <!-- C O M P I L E  O M                                                  -->
    <!-- =================================================================== -->
  
    <target
      name="compile"
      description="==> compiles the OM classes">
  
      <mkdir dir="${torque.compile.build.dir}"/>
  
      <javac
        debug="${torque.compile.debug}"
        deprecation="${torque.compile.deprecation}"
        destdir="${torque.compile.build.dir}"
        optimize="${torque.compile.optimize}"
        srcdir="${torque.compile.src.dir}">
        <classpath refid="torque-classpath"/>
      </javac>
    </target>
  
    <!-- =================================================================== -->
    <!-- S Q L  T O  X M L                                                   -->
    <!-- =================================================================== -->
    <!-- Create an xml schema from an sql schema.                            -->
    <!--                                                                     -->
    <!--  inputFile: The input sql file. This must be valid sql file but     -->
    <!--             it not not be in any specific format.                   -->
    <!-- outputFile: The file where the xml schema will be written           -->
    <!-- =================================================================== -->
  
    <target
      name="sql2xml"
      description="==> creates an xml schema from an sql schema">
  
      <torque-sql-transform
        inputFile="${torque.schema.dir}/schema.sql"
        outputFile="${torque.schema.dir}/schema.xml"
      />
    </target>
  
    <!-- ================================================================== -->
    <!-- J A V A D O C                                                      -->
    <!-- ================================================================== -->
  
    <target
      name="javadocs"
      description="==> generates the API documentation">
  
      <mkdir dir="${torque.javadoc.dir}"/>
  
      <javadoc
        author="true"
        destdir="${torque.javadoc.dir}"
        packagenames="${torque.targetPackage}.*"
        private="true"
        sourcepath="${torque.java.dir}"
        use="true"
        version="true">
        <classpath refid="torque-classpath"/>
      </javadoc>
    </target>
  
    <!-- =================================================================== -->
    <!-- O J B   S T U F F                                                   -->
    <!-- =================================================================== -->
  
    <target
      name="ojb-repository"
      description="==> generates the repository for ojb (experimental)">
  
      <echo message="+------------------------------------------+"/>
      <echo message="|                                          |"/>
      <echo message="| Generating OJB repository                |"/>
      <echo message="|                                          |"/>
      <echo message="+------------------------------------------+"/>
  
      <torque-data-model
        contextProperties="${torque.contextProperties}"
        controlTemplate="${torque.template.ojb}"
        targetDatabase="${torque.database}"
        targetPackage="${torque.targetPackage}"
        outputDirectory="${torque.ojb.dir}"
        outputFile="report.${torque.project}.ojb.generation"
        sqldbmap="${torque.sql.dir}/sqldb.map"
        templatePath="${torque.templatePath}"
        useClasspath="${torque.useClasspath}">
        <fileset dir="${torque.schema.dir}"
          includes="${torque.schema.ojb.includes}"
          excludes="${torque.schema.ojb.excludes}"
        />
      </torque-data-model>
    </target>
  
    <target
      name="ojb-model"
      description="==> generates an object model for ojb (experimental)">
  
      <echo message="+------------------------------------------+"/>
      <echo message="|                                          |"/>
      <echo message="| Generating OJB model                     |"/>
      <echo message="|                                          |"/>
      <echo message="+------------------------------------------+"/>
  
      <torque-data-model
        contextProperties="${torque.contextProperties}"
        controlTemplate="${torque.template.ojbModel}"
        targetDatabase="${torque.database}"
        targetPackage="${torque.targetPackage}"
        outputDirectory="${torque.ojb.dir}"
        outputFile="report.${torque.project}.ojb.generation"
        sqldbmap="${torque.sql.dir}/sqldb.map"
        templatePath="${torque.templatePath}"
        useClasspath="${torque.useClasspath}">
        <fileset dir="${torque.schema.dir}"
          includes="${torque.schema.ojb.includes}"
          excludes="${torque.schema.ojb.excludes}"
        />
      </torque-data-model>
    </target>
  
    <!--
      Deprecated targets with the project- prefix.
    -->
    <target name="project-sql">
      <echo message="The 'project-sql' target is deprecated. Please use the 'sql' target instead."/>
      <antcall target="sql"/>
    </target>
    <target name="project-om">
      <echo message="The 'project-om' target is deprecated. Please use the 'om' target instead."/>
      <antcall target="om"/>
    </target>
    <target name="project-doc">
      <echo message="The 'project-doc' target is deprecated. Please use the 'doc' target instead."/>
      <antcall target="doc"/>
    </target>
    <target name="project-create-db">
      <echo message="The 'project-create-db' target is deprecated. Please use the 'create-db' target instead."/>
      <antcall target="create-db"/>
    </target>
    <target name="project-insert-sql">
      <echo message="The 'project-insert-sql' target is deprecated. Please use the 'insert-sql' target instead."/>
      <antcall target="insert-sql"/>
    </target>
    <target name="project-jdbc">
      <echo message="The 'project-jdbc' target is deprecated. Please use the 'jdbc' target instead."/>
      <antcall target="jdbc"/>
    </target>
    <target name="project-datasql">
      <echo message="The 'project-datasql' target is deprecated. Please use the 'datasql' target instead."/>
      <antcall target="datasql"/>
    </target>
    <target name="project-datadump">
      <echo message="The 'project-datadump' target is deprecated. Please use the 'datadump' target instead."/>
      <antcall target="datadump"/>
    </target>
    <target name="project-datadtd">
      <echo message="The 'project-datadtd' target is deprecated. Please use the 'datadtd' target instead."/>
      <antcall target="datadtd"/>
    </target>
    <target name="project-sql2xml">
      <echo message="The 'project-sql2xml' target is deprecated. Please use the 'sql2xml' target instead."/>
      <antcall target="sql2xml"/>
    </target>
    <target name="project-ojb-repository">
      <echo message="The 'project-ojb-repository' target is deprecated. Please use the 'ojb-repository' target instead."/>
      <antcall target="ojb-repository"/>
    </target>
    <target name="project-ojb-model">
      <echo message="The 'project-obj-model' target is deprecated. Please use the 'ojb-model' target instead."/>
      <antcall target="ojb-model"/>
    </target>
  
  </project>
  
  
  
  
  1.1                  jakarta-commons-sandbox/periodicity/maven.xml
  
  Index: maven.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <project default="java:jar">
    <preGoal name="java:compile">
      <ant antfile="build-torque.xml"
           target="om"/>
    </preGoal>
  </project>  
    
  
  
  
  
  1.2       +97 -66    jakarta-commons-sandbox/periodicity/conf/build/build.om.properties
  
  Index: build.om.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/periodicity/conf/build/build.om.properties,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.om.properties	25 Mar 2002 09:24:17 -0000	1.1
  +++ build.om.properties	3 Oct 2002 04:07:57 -0000	1.2
  @@ -1,30 +1,47 @@
   # -------------------------------------------------------------------
  -# 
  -# P E R I O D I C I T Y  O M  C O N F I G U R A T I O N  F I L E
  -# 
  +#
  +# T O R Q U E  C O N F I G U R A T I O N  F I L E
  +#
  +# -------------------------------------------------------------------
  +# This file contains the most commonly used properties. For a
  +# a complete list of build properties, please refer to:
  +#   http://jakarta.apache.org/turbine/torque/properties-reference.xml
   # -------------------------------------------------------------------
   
  +
   # -------------------------------------------------------------------
  -# 
  -#  P E R I O D I C I T Y  P R O J E C T
  +#
  +#  P R O J E C T
   #
   # -------------------------------------------------------------------
  -# This is the name of your Turbine project. Your generated sources
  -# will be named using the project name selected below. If your
  +# This is the name of your Torque project. Your non-Java generated 
  +# files will be named using the project name selected below. If your
   # project=killerapp then you will have a generated:
   #
  -# killerapp-schema.sql
  +#   killerapp-schema.sql
  +#
  +# The custom is then to also rename your project XML schema from
  +# project-schema.xml to killerapp-schema.xml. This is required 
  +# for a few targets such as datasql, datadump, and datadtd.
  +# -------------------------------------------------------------------
  +
  +torque.project=periodicity
  +
  +
  +# -------------------------------------------------------------------
  +#
  +#  T A R G E T  D A T A B A S E
   #
  -# IMPORTANT!
  -# This means that your project schema MUST be named
  -# killerapp-schema.xml and it MUST be placed in the
  -# schema directory for Torque to work property.
  +# -------------------------------------------------------------------
  +# This is the target database, only considered when generating
  +# the SQL for your Turbine project. Your possible choices are:
   #
  -# The object model sources generated are independent of
  -# the project name selected.
  +#   axion, cloudscape, db2, db2400, hypersonic, interbase, mssql,
  +#   mysql, oracle, postgresql, sapdb, sybase
   # -------------------------------------------------------------------
   
  -project = periodicity
  +torque.database=mysql
  +
   
   # -------------------------------------------------------------------
   #
  @@ -34,74 +51,88 @@
   # These settings will allow you to customize the way your
   # Peer-based object model is created.
   # -------------------------------------------------------------------
  -# addSaveMethod=true adds tracking code to determine how to save objects
  +# addGetByNameMethod
  +#   If true, Torque adds methods to get database fields by name/position.
   #
  -# addGetByNameMethod=true adds methods to get fields by name/position
  +# addIntakeRetrievable
  +#   If true, the data objects will implement Intake's Retrievable 
  +#   interface
   #
  -# complexObjectModel=true generates an om with collection support
  +# addSaveMethod
  +#   If true, Torque adds tracking code to determine how to save objects.
   #
  -# addTimeStamp=true puts time stamps in generated files
  +# addTimeStamp
  +#   If true, Torque true puts time stamps in generated om files.
   #
  -# addIntakeRetrievable=implement Intake's Retrievable interface
  -# -------------------------------------------------------------------
  -
  -targetPackage=org.apache.commons.periodicity.om
  -basePrefix=Base
  -addSaveMethod=true
  -addGetByNameMethod=true
  -complexObjectModel=true
  -addTimeStamp=true
  -addIntakeRetrievable=false
  -
  -# -------------------------------------------------------------------
  +# basePrefix
  +#   A string to pre-pend to the file names of base data and peer objects.
   #
  -#  D O C U M E N T A T I O   S E T T I N G S
  +# complexObjectModel
  +#   If true, Torque generates data objects with collection support and 
  +#   methods to easily retreive foreign key relationships.
   #
  +# overloadKeySetters
  +#   If false, this prevents overloading of the setter method for
  +#   primary/foreign keys.  This is useful when working with broken
  +#   JavaBean implementations.
  +#
  +# targetPackage
  +#   Sets the Java package the om files will generated to, e.g. 
  +#   "com.company.project.om".
  +#
  +# useClasspath
  +#   If true, Torque will not look in the <code>templatePath</code> directory,
  +#   for templates, but instead load them from the classpath, allowing you to 
  +#   use Torque without extracted it from the jar.
  +#
  +# useManagers
  +#   If true, Torque will generate Manager classes that use JCS for caching.
  +#   Still considered experimental.
   # -------------------------------------------------------------------
  -# These settings will allow you to customize the way your schema
  -# documentation is created.
  -# Valid formats are: html, anakia (for use with jakarta-site2)
  -# -------------------------------------------------------------------
  -documentationFormat=html
   
  -# -------------------------------------------------------------------
  -# You should NOT have to edit anything below here.
  -# -------------------------------------------------------------------
  +torque.targetPackage = org.apache.torque
   
  -# -------------------------------------------------------------------
  -# 
  -#  T E M P L A T E  P A T H
  -#
  -# -------------------------------------------------------------------
  +torque.addGetByNameMethod = true
  +torque.addIntakeRetrievable = false
  +torque.addSaveMethod = true
  +torque.addTimeStamp = true
  +torque.basePrefix = Base
  +torque.complexObjectModel = true
  +torque.overloadKeySetters = true
  +torque.useClasspath = true 
  +torque.useManagers = false
   
  -templatePath = templates
   
   # -------------------------------------------------------------------
  -# 
  -#  C O N T R O L  T E M P L A T E S
  +#
  +#  D A T A B A S E  S E T T I N G S
   #
   # -------------------------------------------------------------------
  -
  -SQLControlTemplate = sql/base/Control.vm
  -OMControlTemplate = om/Control.vm
  -idTableControlTemplate = sql/id-table/Control.vm
  -DataDTDControlTemplate = data/Control.vm
  -DataDumpControlTemplate = data/dump/Control.vm
  -DataSQLControlTemplate = sql/load/Control.vm
  -DocControlTemplate = doc/Control.vm
  -
  -# -------------------------------------------------------------------
  -# 
  -#  O U T P U T  D I R E C T O R Y
  +# JDBC connection settings. This is used by the JDBCToXML task that
  +# will create an XML database schema from JDBC metadata. These
  +# settings are also used by the SQL Ant task to initialize your
  +# Turbine system with the generated SQL.
   #
  +# sameJavaName
  +#   If true, the JDBC task will set the javaName attribute for the tables 
  +#   and columns to be the same as SQL name.
   # -------------------------------------------------------------------
   
  -outputDirectory=src
  +torque.database.createUrl = jdbc:postgresql://127.0.0.1:5432/template1
  +torque.database.buildUrl = jdbc:postgresql://127.0.0.1:5432/bookstore
  +torque.database.url = jdbc:postgresql://127.0.0.1:5432/bookstore
  +torque.database.driver = org.postgresql.Driver
  +torque.database.user = jvanzyl
  +torque.database.password =
  +torque.database.host = 127.0.0.1
   
  -# -------------------------------------------------------------------
  -# 
  -#  S C H E M A  D I R E C T O R Y
  +torque.sameJavaName = false
  +
  +# ---------------------------------------------------------------------------
   #
  -# -------------------------------------------------------------------
  +# S Q L  D I R E C T O R Y
  +#
  +# ---------------------------------------------------------------------------
   
  -schemaDirectory=schema
  +torque.schema.dir=src/xml
  +torque.sql.dir=${maven.build.dest}
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message