db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: db-torque/src/generator/src/templates/sql/base Control.vm
Date Tue, 02 Dec 2003 02:35:10 GMT
dlr         2003/12/01 18:35:10

  Modified:    src/generator/src/templates/sql/base Control.vm
  Log:
  * src/generator/src/templates/sql/base/Control.vm
    Added handling for the case where $outFile already ends in the
    ".sql" extension, as there's no need to append it if it's already
    there.
  
  Revision  Changes    Path
  1.4       +5 -2      db-torque/src/generator/src/templates/sql/base/Control.vm
  
  Index: Control.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/base/Control.vm,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -u -r1.3 -r1.4
  --- Control.vm	25 Nov 2003 16:57:14 -0000	1.3
  +++ Control.vm	2 Dec 2003 02:35:10 -0000	1.4
  @@ -10,9 +10,12 @@
     
     Platform used: $platform.class.Name
     
  -  #set ( $outFile = "${database.FileName}.sql" )
  +  #set ($outFile = "$database.FileName")
  +  #if (!$outFile.toLowerCase().endsWith('.sql'))
  +    #set ($outFile = "${outFile}.sql")
  +  #end
   
  -  File to be created: $outFile
  +  SQL file to be created: $outFile
     
     #foreach ($tbl in $database.tables)
       Primary Key:#if ($tbl.hasPrimaryKey()) Yes #else No #end
  
  
  

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


Mime
View raw message