gonzalo     01/07/12 05:30:14

  Modified:    conf/torque build.properties
               conf/torque/templates/om ExtensionObject.vm ExtensionPeer.vm
                        MapBuilder.vm MultiExtendObject.vm Object.vm
                        Peer.vm
  Log:
  Added a configuration parameter to torque, addTimeStamp,
  that allows the user to generate files with or without a
  timestamp. Default is true, timestamps will be generated.
  
  This is the same patch I had applied to 2.1... sorry, Jason!
  
  Revision  Changes    Path
  1.4       +9 -5      jakarta-turbine/conf/torque/build.properties
  
  Index: build.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/conf/torque/build.properties,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build.properties  2001/06/01 01:24:06     1.3
  +++ build.properties  2001/07/12 12:29:50     1.4
  @@ -54,17 +54,21 @@
   # These settings will allow you to customize the way your
   # Peer-based object model is created.
   # -------------------------------------------------------------------
  -# addSaveMethod=true, adds tracking code to determine how to save an
  -# object
  -# set complexObjectModel=true to generate an om with collection
  -# support
  +# addSaveMethod=true adds tracking code to determine how to save objects
  +#
  +# addGetByNameMethod=true adds methods to get fields by name/position
  +#
  +# complexObjectModel=true generates an om with collection support
  +#
  +# addTimeStamp=true puts time stamps in generated files
   # -------------------------------------------------------------------
   
   targetPackage=org.apache.turbine
  +basePrefix=Base
   addSaveMethod=true
   addGetByNameMethod=true
   complexObjectModel=true
  -basePrefix=Base
  +addTimeStamp=true
   
   # -------------------------------------------------------------------
   # 
  
  
  
  1.15      +2 -0      jakarta-turbine/conf/torque/templates/om/ExtensionObject.vm
  
  Index: ExtensionObject.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/conf/torque/templates/om/ExtensionObject.vm,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ExtensionObject.vm        2001/06/25 05:19:59     1.14
  +++ ExtensionObject.vm        2001/07/12 12:29:55     1.15
  @@ -13,10 +13,12 @@
   import org.apache.turbine.services.db.om.Persistent;
   
   /** 
  +#if ($addTimeStamp)
    * The skeleton for this class was autogenerated by Torque on:
    *
    * [$now]
    *
  +#end
    * You should add additional methods to this class to meet the
    * application requirements.  This class will only be generated as
    * long as it does not already exist in the output directory.
  
  
  
  1.9       +2 -0      jakarta-turbine/conf/torque/templates/om/ExtensionPeer.vm
  
  Index: ExtensionPeer.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/conf/torque/templates/om/ExtensionPeer.vm,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ExtensionPeer.vm  2001/06/25 05:19:59     1.8
  +++ ExtensionPeer.vm  2001/07/12 12:29:57     1.9
  @@ -22,10 +22,12 @@
   import ${package}.map.*;
   
   /** 
  +#if ($addTimeStamp)
    * The skeleton for this class was autogenerated by Torque on:
    *
    * [$now]
    *
  +#end
    *  You should add additional methods to this class to meet the
    *  application requirements.  This class will only be generated as
    *  long as it does not already exist in the output directory.
  
  
  
  1.23      +2 -0      jakarta-turbine/conf/torque/templates/om/MapBuilder.vm
  
  Index: MapBuilder.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/conf/torque/templates/om/MapBuilder.vm,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- MapBuilder.vm     2001/06/25 05:19:59     1.22
  +++ MapBuilder.vm     2001/07/12 12:29:58     1.23
  @@ -11,10 +11,12 @@
   import org.apache.turbine.services.db.map.TableMap;
   
   /**
  +#if ($addTimeStamp)
     *  This class was autogenerated by Torque on: 
     *
     * [$now]
     *
  +#end
     */
   public class ${table.JavaName}MapBuilder implements MapBuilder
   {
  
  
  
  1.7       +2 -0      jakarta-turbine/conf/torque/templates/om/MultiExtendObject.vm
  
  Index: MultiExtendObject.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/conf/torque/templates/om/MultiExtendObject.vm,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- MultiExtendObject.vm      2001/06/25 05:19:59     1.6
  +++ MultiExtendObject.vm      2001/07/12 12:30:00     1.7
  @@ -19,10 +19,12 @@
   #end
   
   /** 
  +#if ($addTimeStamp)
    * The skeleton for this class was autogenerated by Torque on:
    *
    * [$now]
    *
  +#end
    * You should add additional methods to this class to meet the
    * application requirements.  This class will only be generated as
    * long as it does not already exist in the output directory.
  
  
  
  1.63      +2 -0      jakarta-turbine/conf/torque/templates/om/Object.vm
  
  Index: Object.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/conf/torque/templates/om/Object.vm,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- Object.vm 2001/07/02 17:40:24     1.62
  +++ Object.vm 2001/07/12 12:30:01     1.63
  @@ -26,10 +26,12 @@
   #end
   
   /** 
  +#if ($addTimeStamp)
    * This class was autogenerated by Torque on:
    *
    * [$now]
    *
  +#end
    * You should not use this class directly.  It should not even be
    * extended all references should be to $table.JavaName 
    */
  
  
  
  1.66      +2 -0      jakarta-turbine/conf/torque/templates/om/Peer.vm
  
  Index: Peer.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/conf/torque/templates/om/Peer.vm,v
  retrieving revision 1.65
  retrieving revision 1.66
  diff -u -r1.65 -r1.66
  --- Peer.vm   2001/06/29 19:00:19     1.65
  +++ Peer.vm   2001/07/12 12:30:03     1.66
  @@ -27,10 +27,12 @@
   import ${package}.map.*;
   
   /**
  +#if ($addTimeStamp)
     * This class was autogenerated by Torque on:
     *
     * [$now]
     *
  +#end
     */
   public abstract class $basePrefix${table.JavaName}Peer 
       extends $table.BasePeer
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to