mpoeschl    02/01/04 04:53:24

  Added:       .        build-torque.xml build.properties build.xml
                        build-turbine-sql.xml
  Log:
  move the build files to the top-level directory and use lib.repo like for all other 
turbine repos
  after updating gump we can remove the /build and /lib dirs
  
  Revision  Changes    Path
  1.1                  jakarta-turbine-2/build-torque.xml
  
  Index: build-torque.xml
  ===================================================================
  <project name="Torque" default="main" basedir=".">
  
    <!-- ================================================================== -->
    <!-- Create torque.jar for stand-alone use outside the context          -->
    <!-- of the TDK.                                                        -->
    <!-- ================================================================== -->
  
    <!--
      Everything needed is here because I'll probably move this
      into a separate xml file and use an ant call from here.
      this build file is getting big! :-)
    -->
  
    <target name="main">
  
      <property name="torque.dir" value="${build.dir}/torque/torque"/>
      <mkdir dir="${torque.dir}"/>
      <mkdir dir="${torque.dir}/lib"/>
  
      <copy todir="${torque.dir}/lib">
        <fileset dir=".">
          <include name="ant-*.jar"/>
        </fileset>
        <fileset dir="lib">
          <include name="xerces-*.jar"/>
          <include name="velocity-*.jar"/>
          <include name="village-*.jar"/>
        </fileset>
      </copy>
  
      <filter token="TORQUE_HOME" value="."/>
      <filter token="JARS" value="lib/*.jar"/>
  
      <copy todir="${torque.dir}" filtering="yes">
        <fileset dir="conf/torque"/>
      </copy>
  
      <jar jarfile="${torque.dir}/lib/torque.jar">
        <fileset dir="${build.dir}/classes"/>
      </jar>
  
      <!-- fix permissions -->
      <chmod dir="${torque.dir}" perm="ugo+rx" includes="**/*.sh" />
  
      <zip zipfile="${build.dir}/torque.zip"
        basedir="${build.dir}/torque"
      />
  
      </target>
  
  </project>
  
  
  
  1.1                  jakarta-turbine-2/build.properties
  
  Index: build.properties
  ===================================================================
  # -------------------------------------------------------------------
  # B U I L D  P R O P E R T I E S
  # -------------------------------------------------------------------
  # These properties are used by the Turbine build, you may override
  # any of these default values by placing property values in
  # your ${user.home}/build.properties file.
  # -------------------------------------------------------------------
  
  name = Turbine
  version = 2.2b1
  project = turbine
  package = org.apache.${project}
  final.name = ${project}-${version}
  final.dir = ${final.name}/
  
  build.dir = ./bin
  build.src = ${build.dir}/src
  build.dest = ${build.dir}/classes
  build.xdocs = ${build.dir}/xdocs
  build.docs = ${build.dir}/docs
  src.dir = ./src
  src.java.dir = ${src.dir}/java
  src.dtd.dir = ${src.dir}/dtd
  conf.dir = ./conf
  
  javadoc.destdir = ./docs/apidocs
  jakarta.site2 = ../jakarta-site2
  docs.src = ./xdocs
  docs.dest = ./docs
  
  turbine.jars = lib
  year = 1999-2002
  debug = on
  optimize = off
  deprecation = off
  jdom.jar = jdom-b7.jar
  
  # You must set values for the JAR file properties listed here, or in
  # your ${user.home}/build.properties or local build.properties file in
  # order to build Torque:
  
  activation.jar = ${lib.repo}/activation-1.0.1.jar
  commons-collections.jar = ${lib.repo}/commons-collections.jar
  ecs.jar = ${lib.repo}/ecs-1.4.1.jar
  regexp.jar = ${lib.repo}/jakarta-regexp-1.3-dev.jar
  jdbc.jar = ${lib.repo}/jdbc2_0-stdext.jar
  jndi.jar = ${lib.repo}/jndi-1.2.1.jar
  jta.jar = ${lib.repo}/jta1.0.1.jar
  junit.jar = ${lib.repo}/junit-3.7.jar
  log4j.jar = ${lib.repo}/log4j-1.1.3.jar
  javamail.jar = ${lib.repo}/mail-1.2.jar
  oro.jar = ${lib.repo}/oro.jar
  servlet.jar = ${lib.repo}/servlet.jar
  velocity.jar = ${lib.repo}/velocity-1.3-dev.jar
  village.jar = ${lib.repo}/village-1.5.3-dev.jar
  xalan.jar = ${lib.repo}/xalan-2.1.0.jar
  xerces.jar = ${lib.repo}/xerces-1.4.4.jar
  xmlrpc.jar = ${lib.repo}/xmlrpc.jar
  
  castor.jar = ${lib.repo}/castor-0.9.3.9.jar
  freemarker.jar = ${lib.repo}/freemarker-1.7.jar
  webmacro.jar = ${lib.repo}/webmacro-1.0.jar
  
  
  
  1.1                  jakarta-turbine-2/build.xml
  
  Index: build.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <!-- Build file for Turbine -->
  
  <project name="Turbine" default="jar" basedir=".">
  
      <!-- Give user a chance to override without editing this file
           (and without typing -D each time they invoke a target) -->
      <property file="${user.home}/build.properties" />
      <property file=".ant.properties" />
  
      <!-- Set default values for the build -->
      <property file="build.properties" />
  
      <!-- Construct compile classpath -->
      <path id="classpath">
          <pathelement location="${activation.jar}"/>
          <pathelement location="${commons-collections.jar}"/>
          <pathelement location="${ecs.jar}"/>
          <pathelement location="${regexp.jar}"/>
          <pathelement location="${jdbc.jar}"/>
          <pathelement location="${jndi.jar}"/>
          <pathelement location="${jta.jar}"/>
          <pathelement location="${junit.jar}"/>
          <pathelement location="${log4j.jar}"/>
          <pathelement location="${javamail.jar}"/>
          <pathelement location="${oro.jar}"/>
          <pathelement location="${servlet.jar}"/>
          <pathelement location="${velocity.jar}"/>
          <pathelement location="${village.jar}"/>
          <pathelement location="${xalan.jar}"/>
          <pathelement location="${xerces.jar}"/>
          <pathelement location="${xmlrpc.jar}"/>
          <pathelement location="${castor.jar}"/>
          <pathelement location="${freemarker.jar}"/>
          <pathelement location="${webmacro.jar}"/>
      </path>
  
      <!-- Build classpath -->
      <path id="classpath">
          <fileset dir="lib">
              <include name="**/*.jar"/>
          </fileset>
      </path>
  
      <!-- ================================================================== -->
      <!-- Prints useful build environment values                             -->
      <!-- ================================================================== -->
      <target name="env" depends="check_for_optional_packages">
          <echo message="java.home = ${java.home}"/>
          <echo message="user.home = ${user.home}"/>
          <echo message="java.class.path = ${java.class.path}"/>
          <echo message=""/>
      </target>
  
      <!-- ================================================================== -->
      <!-- Help on usage                                                      -->
      <!-- ================================================================== -->
      <target name="usage">
          <echo message="use -projecthelp to see the available targets"/>
      </target>
  
      <!-- ================================================================== -->
      <!-- Check to see what optional dependencies are available              -->
      <!-- ================================================================== -->
      <target name="check_for_optional_packages">
          <available property="jsdk2.2.present"
                     classname="javax.servlet.jsp.PageContext">
              <classpath refid="classpath"/>
          </available>
          <available property="junit.present"
                     classname="junit.framework.TestCase">
              <classpath refid="classpath"/>
          </available>
          <available property="freemarker.present"
                     classname="freemarker.template.Template">
              <classpath refid="classpath"/>
          </available>
          <available property="log4java.present"
                     classname="org.apache.log4j.Category">
              <classpath refid="classpath"/>
          </available>
          <available property="castor.present"
                     classname="org.exolab.castor.jdo.Database">
              <classpath refid="classpath"/>
          </available>
      </target>
  
      <!-- ================================================================== -->
      <!-- Prepares the build directory                                       -->
      <!-- ================================================================== -->
      <target name="prepare" depends="env">
          <mkdir dir="${build.dir}"/>
          <mkdir dir="${build.dest}"/>
          <mkdir dir="${build.src}"/>
  
          <copy todir="${build.src}/org" filtering="yes">
              <fileset dir="${src.java.dir}/org">
                  <include name="**/*.java"/>
                  <include name="**/*.properties"/>
                  <include name="**/package.html"/>
  
                  <exclude name="**/torque/output/**"/>
                  <exclude name="**/*Jsp*.java"/>
                  <exclude name="**/jsp/**"/>
                  <exclude name="**/*FreeMarker*.java"/>
                  <exclude name="**/freemarker/**"/>
                  <exclude name="**/assemblerbroker/util/python/*.java"/>
                  <exclude name="**/samples/newtorque/input/**/*.java"/>
                  <exclude name="**/*Test.java"/>
                  <exclude name="**/test/**"/>
                  <exclude name="**/services/logging/Log4JavaLogger.java"/>
                  <exclude name="**/services/castor/*.java"/>
              </fileset>
          </copy>
          <available classname="org.apache.velocity.anakia.AnakiaTask"
              property="AnakiaTask.present"/>
      </target>
  
      <!-- ================================================================== -->
      <!-- Adds Jsp related files to the build directory                      -->
      <!-- ================================================================== -->
      <target name="prepare-jsp" depends="prepare" if="jsdk2.2.present">
          <copy todir="${build.src}/org" filtering="yes">
              <fileset dir="${src.java.dir}/org">
                  <include name="**/*Jsp*.java"/>
                  <include name="**/jsp/**"/>
              </fileset>
          </copy>
      </target>
  
      <!-- ================================================================== -->
      <!-- Adds Freemarker related files to the build directory               -->
      <!-- ================================================================== -->
      <target name="prepare-freemarker" depends="prepare"
          if="freemarker.present">
          <copy todir="${build.src}/org" filtering="yes">
              <fileset dir="${src.java.dir}/org">
                  <include name="**/*FreeMarker*.java"/>
                  <include name="**/freemarker/**"/>
              </fileset>
          </copy>
      </target>
  
      <!-- ================================================================== -->
      <!-- Adds JPython related files to the build directory                  -->
      <!-- ================================================================== -->
      <target name="prepare-python" depends="prepare">
          <copy todir="${build.src}/org" filtering="yes">
              <fileset dir="${src.java.dir}/org">
                  <include name="**/assemblerbroker/util/python/*.java"/>
              </fileset>
          </copy>
      </target>
  
      <!-- ================================================================== -->
      <!-- Adds testcase files to the build directory                         -->
      <!-- ================================================================== -->
      <target name="prepare-tests" depends="prepare" if="junit.present">
          <copy todir="${build.src}/org" filtering="yes">
              <fileset dir="${src.java.dir}/org">
                  <include name="**/*Test.java"/>
                  <include name="**/test/**"/>
              </fileset>
          </copy>
      </target>
  
      <!-- ================================================================== -->
      <!-- Adds log4java files to the build directory                         -->
      <!-- ================================================================== -->
      <target name="prepare-log4java" depends="prepare" if="log4java.present">
          <copy todir="${build.src}/org" filtering="yes">
              <fileset dir="${src.java.dir}/org">
                  <include name="**/services/logging/Log4JavaLogger.java"/>
              </fileset>
          </copy>
      </target>
  
      <!-- ================================================================== -->
      <!-- Adds castor files to the build directory                           -->
      <!-- ================================================================== -->
      <target name="prepare-castor" depends="prepare" if="castor.present">
          <copy todir="${build.src}/org" filtering="yes">
              <fileset dir="${src.java.dir}/org">
                  <include name="**/services/castor/*.java"/>
              </fileset>
          </copy>
      </target>
  
      <!-- ================================================================== -->
      <!-- Compiles the source directory                                      -->
      <!-- ================================================================== -->
      <target name="compile"
              depends="prepare, prepare-jsp, prepare-freemarker,
                       prepare-log4java, prepare-castor"
              description="--> compiles the source code">
          <javac srcdir="${build.src}"
              destdir="${build.dest}"
              excludes="**/package.html"
              debug="${debug}"
              deprecation="${deprecation}"
              optimize="${optimize}">
  
              <classpath refid="classpath"/>
          </javac>
  
          <!-- copy database.dtd to the right place -->
          <copy file="${src.dtd.dir}/database.dtd"
                
todir="${build.dest}/org/apache/turbine/torque/engine/database/transform"/>
          <!-- copy intake.dtd to the right place -->
          <copy file="${src.dtd.dir}/intake.dtd"
             todir="${build.dest}/org/apache/turbine/services/intake/transform"/>
      </target>
  
      <!-- ================================================================== -->
      <!-- Compiles the source directory and creates a .jar file              -->
      <!-- ================================================================== -->
      <target name="jar"
              depends="compile"
              description="--> generates the turbine.jar file (default)">
          <jar jarfile="${build.dir}/${final.name}.jar"
              basedir="${build.dest}"
              excludes="**/package.html"/>
      </target>
  
      <!-- ================================================================== -->
      <!-- jars the source directory                                          -->
      <!-- ================================================================== -->
      <target name="jarsrc"
              depends="prepare"
              description="--> generates the turbine.src.jar file containing source 
only">
          <jar jarfile="${build.dir}/${final.name}.src.jar"
              basedir="${build.src}"
              excludes="**/package.html"/>
      </target>
  
      <!-- ================================================================== -->
      <!-- Creates the API documentation                                      -->
      <!-- ================================================================== -->
      <target name="javadocs"
              depends="prepare"
              description="--> generates the API documentation">
          <mkdir dir="${javadoc.destdir}"/>
          <javadoc
              sourcepath="${build.src}"
              packagenames="org.apache.turbine.*,org.apache.java.*,org.apache.jserv.*"
              destdir="${javadoc.destdir}"
              author="true"
              private="true"
              version="true"
              use="true"
              windowtitle="${name} ${version} API"
              doctitle="${name} ${version} API"
              bottom="Copyright &amp;copy; ${year} Apache Software Foundation. All 
Rights Reserved."
          >
              <classpath refid="classpath"/>
      </javadoc>
      </target>
  
      <!-- ================================================================== -->
      <!-- Package                                                            -->
      <!-- ================================================================== -->
      <target name="package" depends="jar,javadocs">
          <mkdir dir="${final.dir}"/>
          <mkdir dir="${final.dir}/src/java"/>
  
          <copy todir="${final.dir}/src/java">
              <fileset dir="${build.dir}/src"/>
          </copy>
  
          <copy todir="${final.dir}/docs">
              <fileset dir="docs">
                  <exclude name="**/dist/**"/>
              </fileset>
          </copy>
  
          <copy todir="${final.dir}/build">
              <fileset dir="build"/>
          </copy>
  
          <copy todir="${final.dir}/lib">
              <fileset dir="lib"/>
          </copy>
  
          <copy file="${build.dir}/${final.name}.jar"
                tofile="${final.dir}/${final.name}.jar"/>
      </target>
  
      <!-- ================================================================== -->
      <!-- Packages the distribution with ZIP                                 -->
      <!-- ================================================================== -->
      <target name="package-zip"
              depends="package"
              description="--> generates the Turbine distribution as .zip">
          <delete file="${final.name}.zip"/>
          <zip zipfile="${final.name}.zip" basedir="."
               includes="**/${final.name}/**"/>
      </target>
  
      <!-- ================================================================== -->
      <!-- Packages the distribution with TAR-GZIP                            -->
      <!-- ================================================================== -->
      <target name="package-tgz"
              depends="package"
              description="--> generates the Turbine distribution as .tar.gz">
          <delete file="${final.name}.tar"/>
          <delete file="${final.name}.tar.gz"/>
          <tar tarfile="${final.name}.tar" basedir="."
               includes="**/${final.name}/**"/>
          <gzip zipfile="${final.name}.tar.gz"
                    src="${final.name}.tar"/>
      </target>
  
      <!-- ================================================================== -->
      <!-- Packages the distribution with ZIP and TAG-GZIP                    -->
      <!-- ================================================================== -->
      <target name="package-all"
              depends="package-zip, package-tgz"
              description="--> generates the .tar.gz and .zip distributions">
      </target>
  
      <!-- ================================================================== -->
      <!-- Same as package-all. It is just here for compatibility.            -->
      <!-- ================================================================== -->
      <target name="dist" depends="package-all">
      </target>
  
      <!-- ================================================================== -->
      <!-- Cleans up the build directory                                      -->
      <!-- ================================================================== -->
      <target name="clean" description="--> cleans up the build directory">
          <delete dir="${build.dir}"/>
      </target>
  
      <!-- ================================================================== -->
      <!-- Make Turbine documentation                                         -->
      <!-- ================================================================== -->
      <target name="check_for_jdom">
          <available property="jdom.present"
             classname="org.jdom.JDOMException">
              <classpath>
                  <pathelement location="${jakarta.site2}/lib/${jdom.jar}"/>
              </classpath>
          </available>
      </target>
      <target depends="check_for_jdom" name="docs-prepare-error"
              unless="jdom.present">
          <echo>
              The Jakarta-Site2 module is not present! Please check
              to make sure that you have checked it out from CVS.
  
              &lt;http://jakarta.apache.org/site/jakarta-site2.html&gt;
          </echo>
      </target>
  
      <target name="docs"
              depends="docs-prepare-error"
              description="--> generates the HTML documentation"
              if="jdom.present">
  
          <taskdef name="anakia"
              classname="org.apache.velocity.anakia.AnakiaTask">
              <classpath>
                  <fileset dir="${jakarta.site2}/lib">
                      <include name="*.jar"/>
                  </fileset>
              </classpath>
          </taskdef>
  
          <anakia basedir="${docs.src}" destdir="${docs.dest}/"
               extension=".html" style="./site.vsl"
               projectFile="stylesheets/project.xml"
               excludes="**/stylesheets/** empty.xml"
               includes="**/*.xml"
               lastModifiedCheck="true"
               templatePath="${jakarta.site2}/xdocs/stylesheets">
          </anakia>
  
          <copy todir="${docs.dest}/images" filtering="no">
              <fileset dir="${docs.src}/images">
                  <include name="**/*.gif"/>
                  <include name="**/*.jpeg"/>
                  <include name="**/*.jpg"/>
              </fileset>
          </copy>
          <!-- In case we have CSS someday
          <copy todir="${docs.dest}" filtering="no">
              <fileset dir="${docs.src}">
                  <include name="**/*.css"/>
              </fileset>
          </copy>
          -->
  
      </target>
  
      <!-- ================================================================== -->
      <!-- Compile testcases                                                  -->
      <!-- ================================================================== -->
      <target name="compile-tests" depends="prepare-tests, compile"
              if="junit.present"/>
  
      <!-- ================================================================== -->
      <!-- Run testcases                                                      -->
      <!-- ================================================================== -->
      <target name="run-tests" depends="compile-tests" if="junit.present"
              description="--> runs all available testcases">
          <junit printsummary="no" haltonfailure="yes">
              <classpath>
                  <pathelement location="${build.dest}"/>
                  <path refid="classpath"/>
                  <pathelement path="${classpath}"/>
              </classpath>
  
              <formatter type="plain" usefile="false"/>
  
              <batchtest>
                  <fileset dir="${build.src}">
                      <include name="**/*Test.java"/>
                  </fileset>
              </batchtest>
          </junit>
      </target>
  
      <!-- ================================================================== -->
      <!-- Run an single testcase                                             -->
      <!-- ================================================================== -->
      <target name="run-singletest" if="testcase" depends="compile-tests">
          <junit printsummary="no" haltonfailure="yes">
              <classpath>
                  <pathelement location="${build.dest}"/>
                  <path refid="classpath" />
                  <pathelement path="${classpath}"/>
              </classpath>
  
              <formatter type="plain" usefile="false"/>
  
              <test name="${testcase}"/>
          </junit>
      </target>
  
      <!-- ================================================================== -->
      <!-- Create torque.jar for stand-alone use outside the context          -->
      <!-- of the TDK.                                                        -->
      <!-- ================================================================== -->
      <target name="torque"
              depends="compile"
              description="--> generates the torque distribution">
          <ant antfile="build-torque.xml">
            <property name="build.dir" value="${build.dir}"/>
          </ant>
      </target>
  
      <!-- ================================================================== -->
      <!-- Create intake.jar for stand-alone use outside the context          -->
      <!-- of the TDK.                                                        -->
      <!-- ================================================================== -->
      <target name="intake"
              depends="compile"
              description="--> generates the intake distribution">
          <ant antfile="build-intake.xml">
            <property name="build.dir" value="${build.dir}"/>
          </ant>
      </target>
  
      <!-- ================================================================== -->
      <!-- Create the Turbine SQL for all the supported DBs.                  -->
      <!-- ================================================================== -->
      <target name="turbine-sql"
              depends="compile"
              description="--> generates the Turbine SQL for all the supported DBs">
          <ant antfile="build-turbine-sql.xml"/>
      </target>
  
      <!-- ================================================================== -->
      <!-- I N S T A L L  J A R                                               -->
      <!-- ================================================================== -->
  
      <target name="install-jar" depends="jar"
              description="--> Installs .jar file in ${lib.repo}">
        <copy todir="${lib.repo}" filtering="no">
          <fileset dir="${build.dir}">
            <include name="${final.name}.jar"/>
          </fileset>
        </copy>
      </target>
  
  </project>
  
  
  
  1.1                  jakarta-turbine-2/build-turbine-sql.xml
  
  Index: build-turbine-sql.xml
  ===================================================================
  <project name="Turbine SQL" default="main" basedir=".">
  
    <!-- ================================================================ -->
    <!-- I N I T  T A R G E T                                             -->
    <!-- ================================================================ -->
    <!-- We are placing the taskdef initialization in a target of its     -->
    <!-- because the classpath will not be loaded within the taskdef      -->
    <!-- if the taskdef is a child of the project. It must be placed      -->
    <!-- with a target to work. This is a work around for a problem       -->
    <!-- in Ant, but it solves the problem of not having to alter         -->
    <!-- the classpath in the .sh|.bat scripts.                           -->
    <!-- ================================================================ -->
  
    <target name="init">
  
      <taskdef name="torque-sql" classname="org.apache.turbine.torque.TorqueSQLTask">
        <classpath>
          <fileset dir="bin">
            <include name="*.jar"/>
          </fileset>
          <pathelement location="${velocity.jar}"/>
          <pathelement location="${commons-collections.jar}"/>
          <pathelement location="${log4j.jar}"/>
          <pathelement location="${xerces.jar}"/>
        </classpath>
      </taskdef>
  
      <property name="schemaDirectory" value="./conf/master"/>
      <property name="SQLControlTemplate" value="sql/base/Control.vm"/>
      <property name="idTableControlTemplate" value="sql/id-table/Control.vm"/>
      <property name="securityControlTemplate" value="sql/security/Control.vm"/>
      <property name="outputDirectory" value="src/sql"/>
      <property name="templatePath" value="./conf/torque/templates"/>
  
    </target>
  
  
    <!-- ================================================================ -->
    <!-- M A I N  T A R G E T                                             -->
    <!-- ================================================================ -->
    <!-- Generate Turbine SQL schema for supported DBs                    -->
    <!-- ================================================================ -->
  
    <target name="main" depends="init">
  
      <antcall target="db2"/>
      <antcall target="hypersonic"/>
      <antcall target="interbase"/>
      <antcall target="mysql"/>
      <antcall target="oracle"/>
      <antcall target="postgresql"/>
      <antcall target="sybase"/>
  
    </target>
  
    <target name="db2">
      <!-- DB2 -->
      <antcall target="turbine-sql">
        <param name="database" value="db2"/>
      </antcall>
      <antcall target="turbine-id-table-sql">
        <param name="database" value="db2"/>
      </antcall>
      <antcall target="turbine-id-table-init-sql">
        <param name="database" value="db2"/>
      </antcall>
      <antcall target="turbine-security-sql">
        <param name="database" value="db2"/>
      </antcall>
    </target>
  
    <target name="hypersonic">
      <!-- Hypersonic -->
      <antcall target="turbine-sql">
        <param name="database" value="hypersonic"/>
      </antcall>
      <antcall target="turbine-id-table-sql">
        <param name="database" value="hypersonic"/>
      </antcall>
      <antcall target="turbine-id-table-init-sql">
        <param name="database" value="hypersonic"/>
      </antcall>
      <antcall target="turbine-security-sql">
        <param name="database" value="hypersonic"/>
      </antcall>
    </target>
  
    <target name="interbase">
      <!-- Interbase -->
      <antcall target="turbine-sql">
        <param name="database" value="interbase"/>
      </antcall>
      <antcall target="turbine-id-table-sql">
        <param name="database" value="interbase"/>
      </antcall>
      <antcall target="turbine-id-table-init-sql">
        <param name="database" value="interbase"/>
      </antcall>
      <antcall target="turbine-security-sql">
        <param name="database" value="interbase"/>
      </antcall>
    </target>
  
    <target name="oracle">
      <!-- Oracle -->
      <antcall target="turbine-sql">
        <param name="database" value="oracle"/>
      </antcall>
      <antcall target="turbine-id-table-sql">
        <param name="database" value="oracle"/>
      </antcall>
      <antcall target="turbine-id-table-init-sql">
        <param name="database" value="oracle"/>
      </antcall>
      <antcall target="turbine-security-sql">
        <param name="database" value="oracle"/>
      </antcall>
    </target>
  
    <target name="mysql">
      <!-- MySQL -->
      <antcall target="turbine-sql">
        <param name="database" value="mysql"/>
      </antcall>
      <antcall target="turbine-id-table-sql">
        <param name="database" value="mysql"/>
      </antcall>
      <antcall target="turbine-id-table-init-sql">
        <param name="database" value="mysql"/>
      </antcall>
      <antcall target="turbine-security-sql">
        <param name="database" value="mysql"/>
      </antcall>
    </target>
  
    <target name="postgresql">
      <!-- PostgreSQL -->
      <antcall target="turbine-sql">
        <param name="database" value="postgresql"/>
      </antcall>
      <antcall target="turbine-id-table-sql">
        <param name="database" value="postgresql"/>
      </antcall>
      <antcall target="turbine-id-table-init-sql">
        <param name="database" value="postgresql"/>
      </antcall>
      <antcall target="turbine-security-sql">
        <param name="database" value="postgresql"/>
      </antcall>
    </target>
  
    <target name="sybase">
      <!-- Sybase -->
      <antcall target="turbine-sql">
        <param name="database" value="sybase"/>
      </antcall>
      <antcall target="turbine-id-table-sql">
        <param name="database" value="sybase"/>
      </antcall>
      <antcall target="turbine-id-table-init-sql">
        <param name="database" value="sybase"/>
      </antcall>
      <antcall target="turbine-security-sql">
        <param name="database" value="sybase"/>
      </antcall>
    </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="turbine-sql">
  
      <echo message="+----------------------------------------------+"/>
      <echo message="| Generating Turbine SQL schema for ${database} "/>
      <echo message="+----------------------------------------------+"/>
  
      <torque-sql
        controlTemplate="${SQLControlTemplate}"
        outputDirectory="${outputDirectory}"
        templatePath="${templatePath}"
        outputFile="${database}-turbine.sql"
        xmlFile="${schemaDirectory}/turbine-schema.xml"
        targetDatabase="${database}"
      />
  
    </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="turbine-id-table-sql">
  
      <echo message="+------------------------------------------+"/>
      <echo message="|                                          |"/>
      <echo message="| Generating SQL for YOUR Turbine project! |"/>
      <echo message="| Woo hoo!                                 |"/>
      <echo message="|                                          |"/>
      <echo message="+------------------------------------------+"/>
  
      <torque-sql
        controlTemplate="${SQLControlTemplate}"
        outputDirectory="${outputDirectory}"
        templatePath="${templatePath}"
        outputFile="${database}-id-table-schema.sql"
        xmlFile="${schemaDirectory}/id-table-schema.xml"
        targetDatabase="${database}"
      />
  
    </target>
  
    <!-- ================================================================ -->
    <!-- G E N E R A T E  T U R B I N E  I D  B R O K E R  I N I T  S Q L -->
    <!-- ================================================================ -->
  
    <target name="turbine-id-table-init-sql">
  
      <echo message="+------------------------------------------+"/>
      <echo message="|                                          |"/>
      <echo message="| Generating TURBINE initialization SQL    |"/>
      <echo message="| for ID Broker system!                    |"/>
      <echo message="|                                          |"/>
      <echo message="+------------------------------------------+"/>
  
      <torque-sql
        contextProperties="conf/torque/templates/sql/id-table/turbine.props"
        controlTemplate="${idTableControlTemplate}"
        outputDirectory="${outputDirectory}"
        templatePath="${templatePath}"
        outputFile="${database}-turbine-id-table-init.sql"
        xmlFile="${schemaDirectory}/turbine-schema.xml"
        targetDatabase="${database}"
      />
  
    </target>
  
    <!-- ================================================================ -->
    <!-- T U R B I N E  S E C U R I T Y  S Y S T E M  S Q L               -->
    <!-- ================================================================ -->
  
    <target name="turbine-security-sql">
  
      <echo message="+------------------------------------------+"/>
      <echo message="|                                          |"/>
      <echo message="| Generating Turbine security system SQL!  |"/>
      <echo message="|                                          |"/>
      <echo message="+------------------------------------------+"/>
  
      <!-- This could probably be a simple texen task -->
  
      <torque-sql
        contextProperties="conf/torque/templates/sql/id-table/project.props"
        controlTemplate="${securityControlTemplate}"
        outputDirectory="${outputDirectory}"
        templatePath="${templatePath}"
        outputFile="${database}-turbine-security.sql"
        xmlFile="${schemaDirectory}/${project}-schema.xml"
        targetDatabase="${database}"
      />
  
    </target>
  
  </project>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to