Return-Path: Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 38607 invoked from network); 20 Feb 2003 12:58:36 -0000 Received: from scizophrenia.postimees.ee (HELO saruman.postimees.ee) (213.168.24.13) by daedalus.apache.org with SMTP; 20 Feb 2003 12:58:36 -0000 Received: by saruman.postimees.ee (Postfix, from userid 5002) id 4BDD568BBF; Thu, 20 Feb 2003 14:54:16 +0200 (EET) Received: from apache.org (ttgw2.postimees.ee [213.168.24.2]) by saruman.postimees.ee (Postfix) with ESMTP id A742568BBC for ; Thu, 20 Feb 2003 14:54:15 +0200 (EET) Message-ID: <3E54D0C3.3070709@apache.org> Date: Thu, 20 Feb 2003 14:57:39 +0200 From: Neeme Praks User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; et-EE; rv:1.2.1) Gecko/20021130 X-Accept-Language: et MIME-Version: 1.0 To: Turbine Torque Developers List Subject: Re: Converting build-torque.xml to jelly script References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------070800010803050303020808" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------070800010803050303020808 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I've already done it :-P However, to make things 100% maven friendly (to get rid of the contextProperties setting and loading properties from file), we need to pass the variables from JellyContext to VelocityContext. I figured out that I can get those from JellyContext.getVariables() (returns Map), but now I need a way to populate these into the ExtendedProperties that the Ant tasks build. I'll send some patches soon ;-) Rgds, Neeme Quinton McCombs :: > I was hoping this would be the case. I am about 80% complete now.... > > > >>-----Original Message----- >>From: Scott Eade [mailto:seade@backstagetech.com.au] >>Sent: Wednesday, February 19, 2003 2:29 PM >>To: Torque Developers List >>Subject: Re: Converting build-torque.xml to jelly script >> >> >>I agree +1. >> >>On 20/02/2003 5:53 AM, "Quinton McCombs" >> wrote: >> >> >>>Any reason not to use a jelly script for the torque plugin >> >>instead of >> >>>calling the ant build file? This would allow us to >> >>completely do away >> >>>with the torque.jar and torque.lib settings..... >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org >>For additional commands, e-mail: torque-dev-help@db.apache.org >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org > For additional commands, e-mail: torque-dev-help@db.apache.org > > --------------070800010803050303020808 Content-Type: text/plain; name="plugin.properties" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="plugin.properties" # ------------------------------------------------------------------- # P L U G I N P R O P E R T I E S # ------------------------------------------------------------------- # Torque plugin # ------------------------------------------------------------------- # Note: lib.dir/torque.lib.dir and build.properties/ # torque.contextProperties are set manually in the build-torque.xml # file as they need to be defined before this file can be loaded from # the classpath. # # Old properties that are commented out are just place holders to # help organize things. # ------------------------------------------------------------------- # ------------------------------------------------------------------- # # B A S I C P R O P E R T I E S # # ------------------------------------------------------------------- torque.home = . torque.project = need to override this! torque.database = postgresql torque.targetPackage = org.apache.torque torque.runOnlyOnSchemaChange = true # ------------------------------------------------------------------- # # D I R E C T O R I E S # # ------------------------------------------------------------------- torque.output.dir = ${torque.home}/src torque.schema.dir = ${torque.home}/schema torque.templatePath = templates torque.useClasspath = true torque.doc.dir = ${torque.output.dir}/doc torque.java.dir = ${torque.output.dir}/java torque.javadoc.dir = ${torque.output.dir}/javadoc torque.ojb.dir = ${torque.output.dir}/ojb torque.sql.dir = ${torque.output.dir}/sql torque.omzip.dir = ${torque.output.dir} # ------------------------------------------------------------------- # # D A T A B A S E S E T T I N G S # # ------------------------------------------------------------------- torque.database.createUrl = jdbc:postgresql://127.0.0.1:5432/template1 torque.database.buildUrl = jdbc:postgresql://127.0.0.1:5432/bookstore torque.database.url = jdbc:postgresql://127.0.0.1:5432/bookstore torque.database.driver = org.postgresql.Driver torque.database.user = postgres torque.database.password = torque.database.host = 127.0.0.1 torque.database.schema = torque.database.name = torque.database.manualCreation = false torque.saveJavaName = false # ------------------------------------------------------------------- # # T E M P L A T E V A R I A B L E S # # ------------------------------------------------------------------- torque.addGetByNameMethod = true torque.addIntakeRetrievable = false torque.retrievableInterface = org.apache.turbine.om.Retrievable torque.addSaveMethod = true torque.addTimeStamp = true torque.basePrefix = Base torque.complexObjectModel = true torque.saveException = Exception torque.useClasspath = true torque.useManagers = false torque.omzip.src.base = false torque.omzip.src.extension = false torque.omzip.bin.base = false torque.omzip.bin.extension = false torque.omzip.deleteFiles = false torque.generateDeprecated = true # ------------------------------------------------------------------- # # M I S C . S E T T I N G S # # ------------------------------------------------------------------- torque.idTableXMLFile = torque.doc.format = html torque.doc.html.normalFont = font-family: Verdana; font-size: 10pt; torque.doc.html.fkColor = afe295 torque.initialID = 1001 # ------------------------------------------------------------------- # # C O N T R O L T E M P L A T E S # # ------------------------------------------------------------------- torque.template.sql = sql/base/Control.vm torque.template.om = om/Control.vm torque.template.idTable = sql/id-table/Control.vm torque.template.dataDtd = data/Control.vm torque.template.dataDump = data/dump/Control.vm torque.template.dataSql = sql/load/Control.vm torque.template.doc = doc/Control.vm torque.template.sqlDbInit = sql/db-init/Control.vm torque.template.ojb = ojb/repository/Control.vm torque.template.ojbModel = ojb/model/Control.vm # ------------------------------------------------------------------- # # C O M P I L E S E T T I N G S # # ------------------------------------------------------------------- torque.compile.src.dir = ${torque.java.dir} torque.compile.build.dir = bin/classes torque.compile.debug = on torque.compile.deprecation = off torque.compile.optimize = off # ------------------------------------------------------------------- # # I N C L U D E A N D E X C L U D E S E T T I N G S # # ------------------------------------------------------------------- torque.schema.sql.includes = *-schema.xml torque.schema.sql.excludes = torque.schema.doc.includes = *-schema.xml torque.schema.doc.excludes = torque.schema.create-db.includes = *-schema.xml torque.schema.create-db.excludes = torque.schema.init-sql.includes = *-schema.xml torque.schema.init-sql.excludes = id-table-schema.xml torque.schema.om.includes = *-schema.xml torque.schema.om.excludes = id-table-schema.xml torque.schema.ojb.includes = *-schema.xml torque.schema.ojb.excludes = --------------070800010803050303020808 Content-Type: text/xml; name="plugin.jelly" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="plugin.jelly" Executing the create-db.sql script... --------------070800010803050303020808--