root/branches/1.1/generator/build.properties-sample

Revision 3, 5.3 kB (checked in by hans, 4 years ago)

Added exported CVS repository.

Line 
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 # -------------------------------------------------------------------
87
88 # classes will be put in (and  included from) this directory
89 # e.g. if package is "bookstore" then om will expect include('bookstore/Book.php'); to work.
90 # use dot-path notation -- e.g. my.bookstore -> my/bookstore.
91 #
92 propel.targetPackage = ${propel.project}
93
94 propel.addGenericAccessors = false
95 propel.addGenericMutators = false
96 propel.addSaveMethod = true
97 propel.addTimeStamp = true
98 propel.basePrefix = Base
99 propel.complexObjectModel = true
100 propel.targetPlatform = php5
101
102 # -------------------------------------------------------------------
103 #
104 #  D B   C O N N E C T I O N   S E T T I N G S
105 #
106 # -------------------------------------------------------------------
107 # Creole connection settings. These connection settings are used by
108 # build tagets that perform database operations (e.g. 'insert-sql',
109 # 'creole').
110 #
111 # You can set them here, but it's preferrable to set these properties
112 # in a project-specific build.properties file.
113 #
114
115 # If you want to use a custom driver, specify it below, otherwise
116 # leave it blank or comment it out to use Creole stock driver.
117 #
118 # propel.database.driver = creole.drivers.sqlite.SQLiteConnection
119
120 # Note that if you do not wish to specify the database (e.g. if you
121 # are using multiple databses) you can use the @DB@ token which
122 # will be replaced with a database at runtime.
123 #
124 # propel.database.url = mysql://root@localhost/bookstore
125
126 # Use the URL below to specify a DSN to used to create the database.
127 # Note that this URL should not contain the database name, as you will
128 # get an error if the database does not exist.
129 # (This does not apply to SQLite since the databse is automatically created
130 # when the connection is made -- if it does not already exist.)
131 #
132 # propel.database.createUrl = mysql://root@localhost/
133
134
135 #   This only applies to the 'creole' target.  If true, the Creole
136 #   task will set the phpName attribute for the tables and columns
137 #   to be the same as SQL name.
138
139 # propel.samePhpName = false
140
141 # -------------------------------------------------------------------
142 #
143 #  D A T A B A S E   B U I L D   C O N F I G
144 #
145 # -------------------------------------------------------------------
146 # Some databases provide some configuration options that can be set
147 # in this script. 
148 #
149 # === MySQL
150 # propel.mysql.tableType
151 #   Use this property to set the table type of generated tables (e.g. InnoDB, MyISAM).
Note: See TracBrowser for help on using the browser.