mpoeschl 02/02/13 06:21:08
Added: src/conf/database mssql mysql sapdb db2400 db2app db2net
oracle sybase hypersonic postgresql weblogic
instantdb
src/conf/master Torque.master default.properties build.xml
src/conf Torque.properties
Log:
add config templates and a build file to build a Torque.properties file
(will be used by the tdk)
Revision Changes Path
1.3 +1 -1 jakarta-turbine-torque/src/conf/database/mssql
1.3 +0 -1 jakarta-turbine-torque/src/conf/database/mysql
1.3 +0 -1 jakarta-turbine-torque/src/conf/database/sapdb
1.3 +0 -1 jakarta-turbine-torque/src/conf/database/db2400
1.3 +0 -1 jakarta-turbine-torque/src/conf/database/db2app
1.3 +0 -1 jakarta-turbine-torque/src/conf/database/db2net
1.3 +1 -2 jakarta-turbine-torque/src/conf/database/oracle
1.3 +1 -1 jakarta-turbine-torque/src/conf/database/sybase
1.3 +2 -3 jakarta-turbine-torque/src/conf/database/hypersonic
1.3 +0 -1 jakarta-turbine-torque/src/conf/database/postgresql
1.3 +2 -2 jakarta-turbine-torque/src/conf/database/weblogic
1.3 +0 -1 jakarta-turbine-torque/src/conf/database/instantdb
1.1 jakarta-turbine-torque/src/conf/master/Torque.master
Index: Torque.master
===================================================================
# -------------------------------------------------------------------
# $Id: Torque.master,v 1.1 2002/02/13 14:21:08 mpoeschl Exp $
#
# This is the configuration file for Torque.
#
# Note that strings containing "," (comma) characters must backslash
# escape the comma (i.e. '\,')
#
# -------------------------------------------------------------------
torque.applicationRoot = @APPLICATION_ROOT@
# -------------------------------------------------------------------
#
# L O G G I N G
#
# -------------------------------------------------------------------
# We use Log4J for all Torque logging and we embed the log4j
# properties within our application configuration.
# -------------------------------------------------------------------
# This first category is required and the category
# must be named 'default'. This is used for all logging
# where an explicit category is not specified.
log4j.category.org.apache.torque = ALL, org.apache.torque
log4j.appender.org.apache.torque = org.apache.log4j.FileAppender
log4j.appender.org.apache.torque.file = ${torque.applicationRoot}/logs/torque.log
log4j.appender.org.apache.torque.layout = org.apache.log4j.PatternLayout
log4j.appender.org.apache.torque.layout.conversionPattern = %d [%t] %-5p %c - %m%n
log4j.appender.org.apache.torque.append = false
# -------------------------------------------------------------------
#
# T O R Q U E P R O P E R T I E S
#
# -------------------------------------------------------------------
# These are your database settings. Look in the
# org.apache.torque.pool.* packages for more information.
#
# The parameters to connect to the default database. You MUST
# configure these properly.
# -------------------------------------------------------------------
torque.database.default=@DATABASE_DEFAULT@
torque.database.@[email protected] = @DATABASE_DRIVER@
torque.database.@[email protected] = @DATABASE_URL@
torque.database.@[email protected] = @DATABASE_USER@
torque.database.@[email protected] = @DATABASE_PASSWORD@
# The number of database connections to cache per ConnectionPool
# instance (specified per database).
torque.database.default.maxConnections=80
# The amount of time (in milliseconds) that database connections will be
# cached (specified per database).
#
# Default: one hour = 60 * 60 * 1000
torque.database.default.expiryTime=3600000
# The amount of time (in milliseconds) a connection request will have to wait
# before a time out occurs and an error is thrown.
#
# Default: ten seconds = 10 * 1000
torque.database.connectionWaitTimeout=10000
# The interval (in milliseconds) between which the PoolBrokerService logs
# the status of it's ConnectionPools.
#
# Default: No logging = 0 = 0 * 1000
torque.database.logInterval=0
# Determines if the quantity column of the IDBroker's id_table should
# be increased automatically if requests for ids reaches a high
# volume.
torque.idbroker.cleverquantity=true
1.1 jakarta-turbine-torque/src/conf/master/default.properties
Index: default.properties
===================================================================
application.root = .
database.name = torque
database.type = mysql
database.user = user
database.password = password
1.1 jakarta-turbine-torque/src/conf/master/build.xml
Index: build.xml
===================================================================
<?xml version="1.0"?>
<!-- Build configuration file for Torque -->
<project name="props-maker" default="generate-props" basedir=".">
<!-- Give user a chance to override without editing this file
(and without typing -D each time it compiles it -->
<property file="${user.home}/build.properties" />
<property file="default.properties" />
<property name="master.home" value="."/>
<property name="conf.home" value="../"/>
<property name="target.dir" value="../"/>
<property file="${conf.home}/database/${database.type}"/>
<property name="master" value="${master.home}/Torque.master"/>
<property name="copy" value="${target.dir}/Torque.properties"/>
<!-- =================================================================== -->
<!-- G E N E R A T E P R O P S -->
<!-- =================================================================== -->
<target name="generate-props" depends="configure"
description="--> generate properties file for Torque">
<echo message="Creating Torque.properties ..."/>
<delete file="${copy}"/>
<copy file="${master}" tofile="${copy}" filtering="on"/>
</target>
<!-- =================================================================== -->
<!-- C O N F I G U R E D A T A B A S E P R O P E R T I E S -->
<!-- =================================================================== -->
<target name="configure">
<filter token="DATABASE_DRIVER" value="${database.driver}"/>
<filter token="DATABASE_URL" value="${database.url}"/>
<filter token="DATABASE_ADAPTOR" value="${database.adaptor}"/>
<filter token="DATABASE_USER" value="${database.user}"/>
<filter token="DATABASE_PASSWORD" value="${database.password}"/>
<filter token="DATABASE_NAME" value="${database.name}"/>
<filter token="DATABASE_DEFAULT" value="default"/>
<filter token="PROJECT" value="${project}"/>
<filter token="APPLICATION_ROOT" value="${application.root}"/>
</target>
</project>
1.1 jakarta-turbine-torque/src/conf/Torque.properties
Index: Torque.properties
===================================================================
# -------------------------------------------------------------------
# $Id: Torque.properties,v 1.1 2002/02/13 14:21:08 mpoeschl Exp $
#
# This is the configuration file for Torque.
#
# Note that strings containing "," (comma) characters must backslash
# escape the comma (i.e. '\,')
#
# -------------------------------------------------------------------
torque.applicationRoot = .
# -------------------------------------------------------------------
#
# L O G G I N G
#
# -------------------------------------------------------------------
# We use Log4J for all Torque logging and we embed the log4j
# properties within our application configuration.
# -------------------------------------------------------------------
# This first category is required and the category
# must be named 'default'. This is used for all logging
# where an explicit category is not specified.
log4j.category.org.apache.torque = ALL, org.apache.torque
log4j.appender.org.apache.torque = org.apache.log4j.FileAppender
log4j.appender.org.apache.torque.file = ${torque.applicationRoot}/logs/torque.log
log4j.appender.org.apache.torque.layout = org.apache.log4j.PatternLayout
log4j.appender.org.apache.torque.layout.conversionPattern = %d [%t] %-5p %c - %m%n
log4j.appender.org.apache.torque.append = false
# -------------------------------------------------------------------
#
# T O R Q U E P R O P E R T I E S
#
# -------------------------------------------------------------------
# These are your database settings. Look in the
# org.apache.torque.pool.* packages for more information.
#
# The parameters to connect to the default database. You MUST
# configure these properly.
# -------------------------------------------------------------------
torque.database.default=default
torque.database.default.driver = org.gjt.mm.mysql.Driver
torque.database.default.url = jdbc:mysql://localhost:3306/torque
torque.database.default.username =
torque.database.default.password =
# The number of database connections to cache per ConnectionPool
# instance (specified per database).
torque.database.default.maxConnections=80
# The amount of time (in milliseconds) that database connections will be
# cached (specified per database).
#
# Default: one hour = 60 * 60 * 1000
torque.database.default.expiryTime=3600000
# The amount of time (in milliseconds) a connection request will have to wait
# before a time out occurs and an error is thrown.
#
# Default: ten seconds = 10 * 1000
torque.database.connectionWaitTimeout=10000
# The interval (in milliseconds) between which the PoolBrokerService logs
# the status of it's ConnectionPools.
#
# Default: No logging = 0 = 0 * 1000
torque.database.logInterval=0
# Determines if the quantity column of the IDBroker's id_table should
# be increased automatically if requests for ids reaches a high
# volume.
torque.idbroker.cleverquantity=true
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>