stephenh 2002/10/30 18:52:39
Modified: src/maven-plugin project.properties plugin.properties
plugin.jelly maven.xml build-torque.xml
src/maven-plugin/xdocs index.xml
Log:
Removed funky CRLF problem; converted to straight Unix files.
Revision Changes Path
1.2 +4 -4 jakarta-turbine-torque/src/maven-plugin/project.properties
Index: project.properties
===================================================================
RCS file: /home/cvs/jakarta-turbine-torque/src/maven-plugin/project.properties,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- project.properties 29 Oct 2002 18:35:43 -0000 1.1
+++ project.properties 31 Oct 2002 02:52:38 -0000 1.2
@@ -1,4 +1,4 @@
-# -------------------------------------------------------------------
-# P R O J E C T P R O P E R T I E S
-# -------------------------------------------------------------------
-
+# -------------------------------------------------------------------
+# P R O J E C T P R O P E R T I E S
+# -------------------------------------------------------------------
+
1.2 +5 -5 jakarta-turbine-torque/src/maven-plugin/plugin.properties
Index: plugin.properties
===================================================================
RCS file: /home/cvs/jakarta-turbine-torque/src/maven-plugin/plugin.properties,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- plugin.properties 29 Oct 2002 18:35:43 -0000 1.1
+++ plugin.properties 31 Oct 2002 02:52:38 -0000 1.2
@@ -1,5 +1,5 @@
-# -------------------------------------------------------------------
-# P L U G I N P R O P E R T I E S
-# -------------------------------------------------------------------
-# Torque plugin
-# -------------------------------------------------------------------
+# -------------------------------------------------------------------
+# P L U G I N P R O P E R T I E S
+# -------------------------------------------------------------------
+# Torque plugin
+# -------------------------------------------------------------------
1.2 +117 -117 jakarta-turbine-torque/src/maven-plugin/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/jakarta-turbine-torque/src/maven-plugin/plugin.jelly,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- plugin.jelly 29 Oct 2002 18:35:43 -0000 1.1
+++ plugin.jelly 31 Oct 2002 02:52:38 -0000 1.2
@@ -1,117 +1,117 @@
-<?xml version="1.0"?>
-
-<project xmlns:j="jelly:core">
-
- <goal
- name="torque"
- description="delegate to torque:main"
- prereqs="torque:main"/>
-
- <goal
- name="torque:main"
- description="delegate to torque:main">
- <ant
- antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
- target="main"
- />
- </goal>
-
- <goal
- name="torque:sql"
- description="delegate to torque:sql">
- <ant
- antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
- target="sql"
- />
- </goal>
-
- <goal
- name="torque:doc"
- description="delegate to torque:doc">
- <ant
- antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
- target="doc"
- />
- </goal>
-
- <goal
- name="torque:create-db"
- description="delegate to torque:create-db">
- <ant
- antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
- target="create-db"
- />
- </goal>
-
- <goal
- name="torque:datadtd"
- description="delegate to torque:datadtd">
- <ant
- antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
- target="datadtd"
- />
- </goal>
-
- <goal
- name="torque:datadump"
- description="delegate to torque:datadump">
- <ant
- antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
- target="datadump"
- />
- </goal>
-
- <goal
- name="torque:datasql"
- description="delegate to torque:datasql">
- <ant
- antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
- target="datasql"
- />
- </goal>
-
- <goal
- name="torque:jdbc"
- description="delegate to torque:jdbc">
- <ant
- antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
- target="jdbc"
- />
- </goal>
-
- <goal
- name="torque:om"
- description="delegate to torque:om">
- <ant
- antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
- target="om"
- />
- </goal>
-
- <goal
- name="torque:insert-sql"
- description="delegate to torque:insert-sql">
- <ant
- antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
- target="insert-sql"
- />
- </goal>
-
- <goal
- name="torque:sql2xml"
- description="delegate to torque:sql2xml">
- <ant
- antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
- target="sql2xml"
- />
- </goal>
-
- <goal
- name="torque:id-table-init-sql"
- description="delegate to torque:id-table-init-sql">
- <ant
- antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
- target="id-table-init-sql"
- />
- </goal>
-</project>
+<?xml version="1.0"?>
+
+<project xmlns:j="jelly:core">
+
+ <goal
+ name="torque"
+ description="delegate to torque:main"
+ prereqs="torque:main"/>
+
+ <goal
+ name="torque:main"
+ description="delegate to torque:main">
+ <ant
+ antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
+ target="main"
+ />
+ </goal>
+
+ <goal
+ name="torque:sql"
+ description="delegate to torque:sql">
+ <ant
+ antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
+ target="sql"
+ />
+ </goal>
+
+ <goal
+ name="torque:doc"
+ description="delegate to torque:doc">
+ <ant
+ antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
+ target="doc"
+ />
+ </goal>
+
+ <goal
+ name="torque:create-db"
+ description="delegate to torque:create-db">
+ <ant
+ antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
+ target="create-db"
+ />
+ </goal>
+
+ <goal
+ name="torque:datadtd"
+ description="delegate to torque:datadtd">
+ <ant
+ antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
+ target="datadtd"
+ />
+ </goal>
+
+ <goal
+ name="torque:datadump"
+ description="delegate to torque:datadump">
+ <ant
+ antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
+ target="datadump"
+ />
+ </goal>
+
+ <goal
+ name="torque:datasql"
+ description="delegate to torque:datasql">
+ <ant
+ antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
+ target="datasql"
+ />
+ </goal>
+
+ <goal
+ name="torque:jdbc"
+ description="delegate to torque:jdbc">
+ <ant
+ antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
+ target="jdbc"
+ />
+ </goal>
+
+ <goal
+ name="torque:om"
+ description="delegate to torque:om">
+ <ant
+ antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
+ target="om"
+ />
+ </goal>
+
+ <goal
+ name="torque:insert-sql"
+ description="delegate to torque:insert-sql">
+ <ant
+ antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
+ target="insert-sql"
+ />
+ </goal>
+
+ <goal
+ name="torque:sql2xml"
+ description="delegate to torque:sql2xml">
+ <ant
+ antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
+ target="sql2xml"
+ />
+ </goal>
+
+ <goal
+ name="torque:id-table-init-sql"
+ description="delegate to torque:id-table-init-sql">
+ <ant
+ antfile="${maven.home}/plugins/maven-torque-plugin-1.0/build-torque.xml"
+ target="id-table-init-sql"
+ />
+ </goal>
+</project>
1.2 +67 -67 jakarta-turbine-torque/src/maven-plugin/maven.xml
Index: maven.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-torque/src/maven-plugin/maven.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- maven.xml 29 Oct 2002 18:35:43 -0000 1.1
+++ maven.xml 31 Oct 2002 02:52:38 -0000 1.2
@@ -1,67 +1,67 @@
-<project default="plugin"
- xmlns:j="jelly:core"
- xmlns:m="maven">
-
- <goal
- name="plugin">
-
- <j:if test="${sourcesPresent == 'true'}">
- <attainGoal name="java:compile"/>
- <attainGoal name="test:test"/>
- </j:if>
-
- <property name="assemblyDir" value="target/assemblyDir"/>
-
- <mkdir dir="${assemblyDir}"/>
-
- <copy todir="${assemblyDir}">
- <fileset dir=".">
- <exclude name="target/**"/>
- <exclude name="src/**"/>
- <exclude name="maven.xml"/>
- <exclude name="maven.log"/>
- </fileset>
- </copy>
-
- <j:if test="${sourcesPresent == 'true'}">
- <copy todir="${assemblyDir}">
- <fileset dir="target/classes"/>
- </copy>
- </j:if>
-
- <jar
- jarfile="${maven.build.dir}/${maven.final.name}.jar">
- <fileset dir="${assemblyDir}"/>
- </jar>
-
- <copy
- file="${maven.build.dir}/${maven.final.name}.jar"
- todir="${maven.repo.local}/maven/jars"
- />
-
- </goal>
-
- <goal name="plugin:install"
- prereqs="plugin"
- description="Install the plugin in Maven's plugins dir">
-
- <copy
- file="${maven.build.dir}/${maven.final.name}.jar"
- todir="${maven.home}/plugins"
- />
-
- </goal>
-
- <goal name="plugin:deploy"
- prereqs="plugin"
- description="Install an unpacked version of the plugin">
-
- <mkdir dir="${maven.home}/plugins/${maven.final.name}"/>
- <unzip
- src="${maven.build.dir}/${maven.final.name}.jar"
- dest="${maven.home}/plugins/${maven.final.name}"
- />
-
- </goal>
-
-</project>
+<project default="plugin"
+ xmlns:j="jelly:core"
+ xmlns:m="maven">
+
+ <goal
+ name="plugin">
+
+ <j:if test="${sourcesPresent == 'true'}">
+ <attainGoal name="java:compile"/>
+ <attainGoal name="test:test"/>
+ </j:if>
+
+ <property name="assemblyDir" value="target/assemblyDir"/>
+
+ <mkdir dir="${assemblyDir}"/>
+
+ <copy todir="${assemblyDir}">
+ <fileset dir=".">
+ <exclude name="target/**"/>
+ <exclude name="src/**"/>
+ <exclude name="maven.xml"/>
+ <exclude name="maven.log"/>
+ </fileset>
+ </copy>
+
+ <j:if test="${sourcesPresent == 'true'}">
+ <copy todir="${assemblyDir}">
+ <fileset dir="target/classes"/>
+ </copy>
+ </j:if>
+
+ <jar
+ jarfile="${maven.build.dir}/${maven.final.name}.jar">
+ <fileset dir="${assemblyDir}"/>
+ </jar>
+
+ <copy
+ file="${maven.build.dir}/${maven.final.name}.jar"
+ todir="${maven.repo.local}/maven/jars"
+ />
+
+ </goal>
+
+ <goal name="plugin:install"
+ prereqs="plugin"
+ description="Install the plugin in Maven's plugins dir">
+
+ <copy
+ file="${maven.build.dir}/${maven.final.name}.jar"
+ todir="${maven.home}/plugins"
+ />
+
+ </goal>
+
+ <goal name="plugin:deploy"
+ prereqs="plugin"
+ description="Install an unpacked version of the plugin">
+
+ <mkdir dir="${maven.home}/plugins/${maven.final.name}"/>
+ <unzip
+ src="${maven.build.dir}/${maven.final.name}.jar"
+ dest="${maven.home}/plugins/${maven.final.name}"
+ />
+
+ </goal>
+
+</project>
1.2 +845 -845 jakarta-turbine-torque/src/maven-plugin/build-torque.xml
Index: build-torque.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-torque/src/maven-plugin/build-torque.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- build-torque.xml 29 Oct 2002 18:35:43 -0000 1.1
+++ build-torque.xml 31 Oct 2002 02:52:38 -0000 1.2
@@ -1,845 +1,845 @@
-<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="build.properties"/>
- <property name="torque.contextProperties" value="${build.properties}"/>
- <property file="${torque.contextProperties}"/>
- <property name="lib.dir" value="lib"/>
- <property name="torque.lib.dir" value="${lib.dir}"/>
- <property name="torque.jar" value="torque-3.0-b4.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">
- <pathelement location="torque.jar.fullpath"/>
- <fileset dir="${torque.lib.dir}">
- <include name="**/commons-beanutils-1.4.jar"/>
- <include name="**/commons-collections-2.0.jar"/>
- <include name="**/commons-configuration-1.0-dev.jar"/>
- <include name="**/commons-dbcp-1.0-dev-20020806.jar"/>
- <include name="**/commons-lang-1.0-b1.jar"/>
- <include name="**/commons-logging-1.0.jar"/>
- <include name="**/commons-pool-1.0.jar"/>
- <include name="**/jcs-1.0-dev.jar"/>
- <include name="**/jdbc-2.0.jar"/>
- <include name="**/jndi-1.2.1.jar"/>
- <include name="**/log4j-1.2.6.jar"/>
- <include name="**/stratum-1.0-b3.jar"/>
- <include name="**/tomcat-naming-common.jar"/>
- <include name="**/${torque.jar}"/>
- <include name="**/velocity-1.3.jar"/>
- <include name="**/village-1.5.3.jar"/>
- <include name="**/xercesImpl-2.0.2.jar"/>
- <include name="**/xmlParserAPIs-2.0.2.jar"/>
- <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">
-
- <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">
-
- <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="check-datadtd"
- depends="check-run-only-on-schema-change"
- if="torque.internal.runOnlyOnSchemaChange">
- <uptodate
- property="torque.internal.datadtd.uptodate"
- targetfile="${torque.output.dir}/${project}-data.dtd">
- <srcfiles dir="${torque.schema.dir}" includes="**/*-schema.xml"/>
- </uptodate>
- </target>
-
- <target
- name="datadtd"
- unless="torque.internal.datadtd.uptodate"
- depends="check-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">
-
- <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">
-
- <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>
-
+<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="build.properties"/>
+ <property name="torque.contextProperties" value="${build.properties}"/>
+ <property file="${torque.contextProperties}"/>
+ <property name="lib.dir" value="lib"/>
+ <property name="torque.lib.dir" value="${lib.dir}"/>
+ <property name="torque.jar" value="torque-3.0-rc2-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">
+ <pathelement location="torque.jar.fullpath"/>
+ <fileset dir="${torque.lib.dir}">
+ <include name="**/commons-beanutils-1.4.jar"/>
+ <include name="**/commons-collections-2.0.jar"/>
+ <include name="**/commons-configuration-1.0-dev.jar"/>
+ <include name="**/commons-dbcp-1.0-dev-20020806.jar"/>
+ <include name="**/commons-lang-1.0-b1.jar"/>
+ <include name="**/commons-logging-1.0.jar"/>
+ <include name="**/commons-pool-1.0.jar"/>
+ <include name="**/jcs-1.0-dev.jar"/>
+ <include name="**/jdbc-2.0.jar"/>
+ <include name="**/jndi-1.2.1.jar"/>
+ <include name="**/log4j-1.2.6.jar"/>
+ <include name="**/stratum-1.0-b3.jar"/>
+ <include name="**/tomcat-naming-common.jar"/>
+ <include name="**/${torque.jar}"/>
+ <include name="**/velocity-1.3.jar"/>
+ <include name="**/village-1.5.3.jar"/>
+ <include name="**/xercesImpl-2.0.2.jar"/>
+ <include name="**/xmlParserAPIs-2.0.2.jar"/>
+ <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">
+
+ <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">
+
+ <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="check-datadtd"
+ depends="check-run-only-on-schema-change"
+ if="torque.internal.runOnlyOnSchemaChange">
+ <uptodate
+ property="torque.internal.datadtd.uptodate"
+ targetfile="${torque.output.dir}/${project}-data.dtd">
+ <srcfiles dir="${torque.schema.dir}" includes="**/*-schema.xml"/>
+ </uptodate>
+ </target>
+
+ <target
+ name="datadtd"
+ unless="torque.internal.datadtd.uptodate"
+ depends="check-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">
+
+ <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">
+
+ <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.2 +19 -19 jakarta-turbine-torque/src/maven-plugin/xdocs/index.xml
Index: index.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-torque/src/maven-plugin/xdocs/index.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- index.xml 29 Oct 2002 18:35:43 -0000 1.1
+++ index.xml 31 Oct 2002 02:52:38 -0000 1.2
@@ -1,19 +1,19 @@
-<?xml version="1.0"?>
-<document>
-
- <properties>
- <title>Maven Torque Plugin</title>
- <author email="[EMAIL PROTECTED]">Stephen Haberman</author>
- </properties>
-
- <body>
- <section name="Maven Torque Plugin">
- <p>
- This plug-in simply delegates to the build-torque.xml file
- shipped with the plug-in and will read the Torque templates
- from the classpath instead of relying on copies of
- templates in your source tree.
- </p>
- </section>
- </body>
-</document>
+<?xml version="1.0"?>
+<document>
+
+ <properties>
+ <title>Maven Torque Plugin</title>
+ <author email="[EMAIL PROTECTED]">Stephen Haberman</author>
+ </properties>
+
+ <body>
+ <section name="Maven Torque Plugin">
+ <p>
+ This plug-in simply delegates to the build-torque.xml file
+ shipped with the plug-in and will read the Torque templates
+ from the classpath instead of relying on copies of
+ templates in your source tree.
+ </p>
+ </section>
+ </body>
+</document>
--
To unsubscribe, e-mail: <mailto:turbine-torque-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-torque-dev-help@;jakarta.apache.org>