stephenh 2002/11/01 09:19:54
Modified: src/maven-plugin plugin.jelly
Log:
Created a torque.mavenPlugin.antFile property that defaults to
${maven.home}/plugins/maven-torque-plugin-3.0-rc2-dev/build-torque.xml". Allows users
to change which build-torque.xml the plugin uses to execute Torque tasks.
Revision Changes Path
1.4 +16 -12 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.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- plugin.jelly 31 Oct 2002 02:56:33 -0000 1.3
+++ plugin.jelly 1 Nov 2002 17:19:54 -0000 1.4
@@ -2,6 +2,10 @@
<project xmlns:j="jelly:core">
+ <property
+ name="torque.mavenPlugin.antFile"
+ value="${maven.home}/plugins/maven-torque-plugin-3.0-rc2-dev/build-torque.xml"/>
+
<goal
name="torque"
description="delegate to torque:main"
@@ -11,7 +15,7 @@
name="torque:main"
description="delegate to torque:main">
<ant
-
antfile="${maven.home}/plugins/maven-torque-plugin-3.0-rc2-dev/build-torque.xml"
+ antfile="${torque.mavenPlugin.antFile}"
target="main"
/>
</goal>
@@ -20,7 +24,7 @@
name="torque:sql"
description="delegate to torque:sql">
<ant
-
antfile="${maven.home}/plugins/maven-torque-plugin-3.0-rc2-dev/build-torque.xml"
+ antfile="${torque.mavenPlugin.antFile}"
target="sql"
/>
</goal>
@@ -29,7 +33,7 @@
name="torque:doc"
description="delegate to torque:doc">
<ant
-
antfile="${maven.home}/plugins/maven-torque-plugin-3.0-rc2-dev/build-torque.xml"
+ antfile="${torque.mavenPlugin.antFile}"
target="doc"
/>
</goal>
@@ -38,7 +42,7 @@
name="torque:create-db"
description="delegate to torque:create-db">
<ant
-
antfile="${maven.home}/plugins/maven-torque-plugin-3.0-rc2-dev/build-torque.xml"
+ antfile="${torque.mavenPlugin.antFile}"
target="create-db"
/>
</goal>
@@ -47,7 +51,7 @@
name="torque:datadtd"
description="delegate to torque:datadtd">
<ant
-
antfile="${maven.home}/plugins/maven-torque-plugin-3.0-rc2-dev/build-torque.xml"
+ antfile="${torque.mavenPlugin.antFile}"
target="datadtd"
/>
</goal>
@@ -56,7 +60,7 @@
name="torque:datadump"
description="delegate to torque:datadump">
<ant
-
antfile="${maven.home}/plugins/maven-torque-plugin-3.0-rc2-dev/build-torque.xml"
+ antfile="${torque.mavenPlugin.antFile}"
target="datadump"
/>
</goal>
@@ -65,7 +69,7 @@
name="torque:datasql"
description="delegate to torque:datasql">
<ant
-
antfile="${maven.home}/plugins/maven-torque-plugin-3.0-rc2-dev/build-torque.xml"
+ antfile="${torque.mavenPlugin.antFile}"
target="datasql"
/>
</goal>
@@ -74,7 +78,7 @@
name="torque:jdbc"
description="delegate to torque:jdbc">
<ant
-
antfile="${maven.home}/plugins/maven-torque-plugin-3.0-rc2-dev/build-torque.xml"
+ antfile="${torque.mavenPlugin.antFile}"
target="jdbc"
/>
</goal>
@@ -83,7 +87,7 @@
name="torque:om"
description="delegate to torque:om">
<ant
-
antfile="${maven.home}/plugins/maven-torque-plugin-3.0-rc2-dev/build-torque.xml"
+ antfile="${torque.mavenPlugin.antFile}"
target="om"
/>
</goal>
@@ -92,7 +96,7 @@
name="torque:insert-sql"
description="delegate to torque:insert-sql">
<ant
-
antfile="${maven.home}/plugins/maven-torque-plugin-3.0-rc2-dev/build-torque.xml"
+ antfile="${torque.mavenPlugin.antFile}"
target="insert-sql"
/>
</goal>
@@ -101,7 +105,7 @@
name="torque:sql2xml"
description="delegate to torque:sql2xml">
<ant
-
antfile="${maven.home}/plugins/maven-torque-plugin-3.0-rc2-dev/build-torque.xml"
+ antfile="${torque.mavenPlugin.antFile}"
target="sql2xml"
/>
</goal>
@@ -110,7 +114,7 @@
name="torque:id-table-init-sql"
description="delegate to torque:id-table-init-sql">
<ant
-
antfile="${maven.home}/plugins/maven-torque-plugin-3.0-rc2-dev/build-torque.xml"
+ antfile="${torque.mavenPlugin.antFile}"
target="id-table-init-sql"
/>
</goal>
--
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>