You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by he...@apache.org on 2005/09/05 17:21:38 UTC

svn commit: r278775 - in /jakarta/turbine/core/branches/TURBINE_2_3_BRANCH: maven.xml src/sql/ xdocs/changes.xml xdocs/howto/index.xml xdocs/howto/sql-howto.xml xdocs/navigation.xml

Author: henning
Date: Mon Sep  5 08:21:31 2005
New Revision: 278775

URL: http://svn.apache.org/viewcvs?rev=278775&view=rev
Log:
- Remove old src/sql directory
- add maven goal to build the SQL files to create
  the database
- add some docs about database creation


Added:
    jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/howto/sql-howto.xml   (with props)
Removed:
    jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/src/sql/
Modified:
    jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/maven.xml
    jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/changes.xml
    jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/howto/index.xml
    jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/navigation.xml

Modified: jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/maven.xml
URL: http://svn.apache.org/viewcvs/jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/maven.xml?rev=278775&r1=278774&r2=278775&view=diff
==============================================================================
--- jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/maven.xml (original)
+++ jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/maven.xml Mon Sep  5 08:21:31 2005
@@ -175,4 +175,14 @@
 
   </goal>
 
+  <!-- ================================================== -->
+  <!-- Build SQL files                                    -->
+  <!-- ================================================== -->
+  <goal name="sql" description="generate Torque SQL">
+    <echo>Building SQL files for ${torque.database}</echo>
+    <attainGoal name="torque:sql"/>
+    <attainGoal name="torque:id-table-init-sql"/>
+    <j:set var="outputDirectory" value="" />
+  </goal>
+
 </project>

Modified: jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/changes.xml
URL: http://svn.apache.org/viewcvs/jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/changes.xml?rev=278775&r1=278774&r2=278775&view=diff
==============================================================================
--- jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/changes.xml (original)
+++ jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/changes.xml Mon Sep  5 08:21:31 2005
@@ -26,6 +26,10 @@
 <body>
   <release version="2.3.2-dev" date="in CVS">
     <action type="update" dev="henning">
+      Add a maven goal to generate SQL with Torque. Removed old SQL files
+      from src/sql. Add some documentation on how to build the SQL files.
+    </action>
+    <action type="update" dev="henning">
       This release will have JDK 1.4.x as primary build platform. If you intend
       to build on an older (1.3) JDK, you must uncomment a number of dependency
       libraries in the project.xml descriptor.

Modified: jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/howto/index.xml
URL: http://svn.apache.org/viewcvs/jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/howto/index.xml?rev=278775&r1=278774&r2=278775&view=diff
==============================================================================
--- jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/howto/index.xml (original)
+++ jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/howto/index.xml Mon Sep  5 08:21:31 2005
@@ -40,6 +40,7 @@
         <li><a href="python-howto.html">Python Howto</a></li>
         <li><a href="security-howto.html">Security Howto</a></li>
         <li><a href="services-howto.html">Services Howto</a></li>
+        <li><a href="sql-howto.html">How to build the SQL files</a></li>
         <li><a href="url-rewriting-howto.html">URL rewriting Howto</a></li>
         <li><a href="context-howto.html">Velocity Context Howto</a></li>
         <li><a href="velocity-site-howto.html">Velocity Site Howto</a></li>

Added: jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/howto/sql-howto.xml
URL: http://svn.apache.org/viewcvs/jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/howto/sql-howto.xml?rev=278775&view=auto
==============================================================================
--- jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/howto/sql-howto.xml (added)
+++ jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/howto/sql-howto.xml Mon Sep  5 08:21:31 2005
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ Copyright 2001-2005 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License")
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<document>
+ <properties>
+  <title>SQL Howto</title>
+  <author email="henning@schmiedehausen.org">Henning P. Schmiedehausen</author>
+ </properties>
+
+ <body>
+
+  <section name="SQL files for Turbine">
+   <p>
+    The Turbine framework uses a database to store the following information:
+
+    <ul>
+     <li>The Scheduler service for persistent events</li>
+     <li>The Security service for user and related security information</li>
+    </ul>
+
+    The Torque generator can be used to create the SQL files to set up the 
+    necessary database tables.
+   </p>
+
+   <p>
+    To create the SQL files for a specific database, run the following maven
+    command from the root of the source distribution:
+   </p>
+
+   <source>
+    maven -Dtorque.database=&lt;database name&gt; sql
+   </source>
+
+   <p>
+    Default is to create SQL for the MySQL database.
+   </p>
+  </section>
+ </body>
+</document>
+
+
+

Propchange: jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/howto/sql-howto.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/howto/sql-howto.xml
------------------------------------------------------------------------------
    svn:keywords = Id Author

Modified: jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/navigation.xml
URL: http://svn.apache.org/viewcvs/jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/navigation.xml?rev=278775&r1=278774&r2=278775&view=diff
==============================================================================
--- jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/navigation.xml (original)
+++ jakarta/turbine/core/branches/TURBINE_2_3_BRANCH/xdocs/navigation.xml Mon Sep  5 08:21:31 2005
@@ -83,6 +83,7 @@
         <item name="Python Howto"        href="/howto/python-howto.html"/>
         <item name="Security Howto"      href="/howto/security-howto.html"/>
         <item name="Services Howto"      href="/howto/services-howto.html"/>
+        <item name="How to build the SQL files" href="/howto/sql-howto.html"/>
         <item name="URL rewriting Howto" href="/howto/url-rewriting-howto.html"/>
         <item name="Velocity Context Howto" href="/howto/context-howto.html"/>
         <item name="Velocity Site Howto" href="/howto/velocity-site-howto.html"/>



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org