You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jo...@apache.org on 2002/02/18 22:37:25 UTC

cvs commit: jakarta-turbine-torque/src/conf build.xml

jon         02/02/18 13:37:25

  Modified:    src/conf build.xml
  Log:
  i need a SQL target where the idtable isn't generated for me.
  
  -jon
  
  Revision  Changes    Path
  1.25      +34 -0     jakarta-turbine-torque/src/conf/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/conf/build.xml,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- build.xml	24 Jan 2002 22:50:12 -0000	1.24
  +++ build.xml	18 Feb 2002 21:37:25 -0000	1.25
  @@ -78,6 +78,40 @@
   
     </target>
   
  +  <!-- Same as the project-sql target except that it does
  +       not generate the id-table -->
  +  <target
  +    name="project-sql-no-idtable"
  +    description="==> generates the SQL for your project">
  +
  +    <echo message="+------------------------------------------+"/>
  +    <echo message="|                                          |"/>
  +    <echo message="| Generating SQL for YOUR Turbine project! |"/>
  +    <echo message="| Woo hoo!                                 |"/>
  +    <echo message="|                                          |"/>
  +    <echo message="+------------------------------------------+"/>
  +
  +    <taskdef
  +      name="torque-sql"
  +      classname="org.apache.torque.task.TorqueSQLTask">
  +      <classpath refid="torque-classpath"/>
  +    </taskdef>
  +
  +    <torque-sql
  +      contextProperties="${build.properties}"
  +      controlTemplate="${SQLControlTemplate}"
  +      outputDirectory="${torque.home}/${outputDirectory}/sql"
  +      templatePath="${templatePath}"
  +      sqldbmap="${torque.home}/${outputDirectory}/sql/sqldb.map"
  +      outputFile="report.${project}.sql.generation"
  +      targetDatabase="${database}">
  +      <fileset dir="${torque.home}/${schemaDirectory}">
  +        <include name="*-schema.xml"/>
  +      </fileset>
  +    </torque-sql>
  +
  +  </target>
  +
     <!-- ================================================================ -->
     <!-- G E N E R A T E   D O C S                                        -->
     <!-- ================================================================ -->
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>