[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/propel-generator/ -> build.properties-sample (source)

   1  # -------------------------------------------------------------------
   2  #
   3  # P R O P E L  C O N F I G U R A T I O N  F I L E
   4  #
   5  # -------------------------------------------------------------------
   6  # This file contains some example properties.  Ideally properties
   7  # should be specified in the project-specific build.properties file;
   8  # however, this file can be used to specify non-default properties 
   9  # that you would like to use accross all of your Propel projects.
  10  # -------------------------------------------------------------------
  11  #
  12  
  13  propel.home = .
  14  
  15  # -------------------------------------------------------------------
  16  #
  17  #  P R O J E C T
  18  #
  19  # -------------------------------------------------------------------
  20  # This is the name of your Propel project. The name of your Propel
  21  # project is used (by default) to determine where the generator will
  22  # find needed configuration files and will place resuilting build
  23  # files. E.g. if your project is named 'killerapp', Propel will 
  24  # look here for schema.xml and runtime-conf.xml files:
  25  # 
  26  #   projects/killerapp/
  27  #
  28  # -------------------------------------------------------------------
  29  
  30  # You can set this here, but it's preferrable to set this in a 
  31  # project-specific build.properties file.
  32  #
  33  # propel.project = bookstore
  34  
  35  # -------------------------------------------------------------------
  36  #
  37  #  T A R G E T  D A T A B A S E
  38  #
  39  # -------------------------------------------------------------------
  40  # This is the target database, only considered when generating
  41  # the SQL for your Propel project. Your possible choices are:
  42  #
  43  #   mssql, mysql, oracle, pgsql, sqlite
  44  # -------------------------------------------------------------------
  45  
  46  # You can set this here, but it's preferrable to set this in a 
  47  # project-specific build.properties file.
  48  #
  49  # propel.database = mysql
  50  
  51  # -------------------------------------------------------------------
  52  #
  53  #  O B J E C T  M O D E L  I N F O R M A T I O N
  54  #
  55  # -------------------------------------------------------------------
  56  # These settings will allow you to customize the way your
  57  # Peer-based object model is created.
  58  # -------------------------------------------------------------------
  59  # addGenericAccessors
  60  #   If true, Propel adds methods to get database fields by name/position.
  61  #
  62  # addGenericMutators
  63  #   If true, Propel adds methods to set database fields by name/position.
  64  #
  65  # addSaveMethod
  66  #   If true, Propel adds tracking code to determine how to save objects.
  67  #
  68  # addTimeStamp
  69  #   If true, Propel true puts time stamps in phpdoc of generated om files.
  70  #
  71  # basePrefix
  72  #   A string to pre-pend to the file names of base data and peer objects.
  73  #
  74  # complexObjectModel
  75  #   If true, Propel generates data objects with collection support and 
  76  #   methods to easily retreive foreign key relationships.
  77  #
  78  # targetPackage
  79  #   Sets the PHP "package" the om files will generated to, e.g. 
  80  #   "com.company.project.om".
  81  #
  82  # targetPlatform
  83  #   Sets whether Propel is building classes for php5 (default) 
  84  #   or php4 (experimental).
  85  #
  86  # packageObjectModel
  87  #   Sets whether Propel is packaging ObjectModel fro several 
  88  #   [package].schema.xml files. The <database package="packageName">
  89  #   attribute has to be set then. (warning: this is experimental!)
  90  #
  91  # -------------------------------------------------------------------
  92  
  93  # classes will be put in (and  included from) this directory
  94  # e.g. if package is "bookstore" then om will expect include('bookstore/Book.php'); to work.
  95  # use dot-path notation -- e.g. my.bookstore -> my/bookstore.
  96  #
  97  propel.targetPackage = $propel.project}
  98  
  99  propel.addGenericAccessors = false
 100  propel.addGenericMutators = false
 101  propel.addSaveMethod = true
 102  propel.addTimeStamp = true
 103  propel.basePrefix = Base
 104  propel.complexObjectModel = true
 105  propel.targetPlatform = php5
 106  propel.packageObjectModel = false
 107  
 108  # -------------------------------------------------------------------
 109  #
 110  #  D B   C O N N E C T I O N   S E T T I N G S
 111  #
 112  # -------------------------------------------------------------------
 113  # Creole connection settings. These connection settings are used by
 114  # build tagets that perform database operations (e.g. 'insert-sql',
 115  # 'creole').
 116  #
 117  # You can set them here, but it's preferrable to set these properties
 118  # in a project-specific build.properties file.
 119  #
 120  
 121  # If you want to use a custom driver, specify it below, otherwise
 122  # leave it blank or comment it out to use Creole stock driver.
 123  #
 124  # propel.database.driver = creole.drivers.sqlite.SQLiteConnection
 125  
 126  # Note that if you do not wish to specify the database (e.g. if you
 127  # are using multiple databses) you can use the @DB@ token which
 128  # will be replaced with a database at runtime.
 129  #
 130  # propel.database.url = mysql://root@localhost/bookstore
 131  
 132  # Use the URL below to specify a DSN to used to create the database.
 133  # Note that this URL should not contain the database name, as you will
 134  # get an error if the database does not exist.
 135  # (This does not apply to SQLite since the databse is automatically created
 136  # when the connection is made -- if it does not already exist.)
 137  #
 138  # propel.database.createUrl = mysql://root@localhost/
 139  
 140  
 141  # -------------------------------------------------------------------
 142  #
 143  # C R E O L E  TO  X M L
 144  #
 145  # -------------------------------------------------------------------
 146  # These settings only applies to the 'creole' target.  
 147  # -------------------------------------------------------------------
 148  #
 149  # samePhpName 
 150  #   If true, the Creole task will set the phpName attribute for the 
 151  #   tables and columns to be the same as SQL name.
 152  #
 153  # addVendorInfo 
 154  #   If true, the Creole task will add vendor specific information 
 155  #   to the database schema
 156  #
 157  # addValidators 
 158  #   Bitfield like option to turn on/off addition of Validator and 
 159  #   Rule tags to the schema. Uses a boolean syntax like in php.ini.
 160  #   Allowed tokens are: 
 161  #      none       add no validators)
 162  #      all        add all validators)
 163  #      maxlength  add maxlengths for string type columns)
 164  #      maxvalue   add maxvalue for numeric columns)
 165  #      type       add notmatch validators for numeric columns)
 166  #      required   add required validators for required columns)
 167  #      unique     add unique validators for unique indexes)
 168  #   Allowed operators are: 
 169  #      &          bitwise AND 
 170  #      |          bitwise OR
 171  #      ~          bitwise NOT
 172  #
 173  # -------------------------------------------------------------------
 174  
 175  # propel.samePhpName = false
 176  # propel.addVendorInfo=true
 177  # propel.addValidators=none
 178  
 179  
 180  # -------------------------------------------------------------------
 181  #
 182  #  D A T A B A S E   B U I L D   C O N F I G
 183  #
 184  # -------------------------------------------------------------------
 185  # Some databases provide some configuration options that can be set
 186  # in this script.  
 187  #
 188  # === MySQL
 189  # propel.mysql.tableType
 190  #   Use this property to set the table type of generated tables (e.g. InnoDB, MyISAM).


Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7