Return-Path: Mailing-List: contact turbine-torque-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list turbine-torque-user@jakarta.apache.org Received: (qmail 15676 invoked by uid 98); 20 Dec 2002 16:24:11 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Received: (qmail 15657 invoked from network); 20 Dec 2002 16:24:09 -0000 Received: from daedalus.apache.org (HELO apache.org) (63.251.56.142) by nagoya.betaversion.org with SMTP; 20 Dec 2002 16:24:09 -0000 Received: (qmail 44483 invoked by uid 500); 20 Dec 2002 16:22:55 -0000 Received: (qmail 44472 invoked from network); 20 Dec 2002 16:22:55 -0000 Received: from unknown (HELO fsonline.com) (206.196.80.108) by daedalus.apache.org with SMTP; 20 Dec 2002 16:22:55 -0000 Received: from [24.243.194.226] (HELO dev-null.com) by fsonline.com (CommuniGate Pro SMTP 3.3.2) with ESMTP id 3032744 for turbine-torque-user@jakarta.apache.org; Fri, 20 Dec 2002 10:48:36 -0600 Message-ID: <3E034610.9090604@dev-null.com> Date: Fri, 20 Dec 2002 10:32:16 -0600 From: Jim O'Quinn User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Turbine Torque Users List Subject: Re: ant -f build-torque.xml om References: <3E021597.2020708@dev-null.com> <036501c2a7a0$592443b0$28116880@lirae2k2> In-Reply-To: <036501c2a7a0$592443b0$28116880@lirae2k2> Content-Type: multipart/alternative; boundary="------------000905050209070803010406" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------000905050209070803010406 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Thanks! That did it. I must have missed that little detail somewhere. Thanks! Jim >If you have an existing db, and don't have a project schema file >in the schema folder, firt run 'ant -f build-torque.xml jdbc'. >Make sure that build.properties has db connection set up correctly. >This will create a schema file for your db. Rename it to >'projectname'-schema.xml, then run 'ant -f build-torque.xml om'. >This time make sure that db connection properties in >Torque.properties are configured correctly. > >You also can edit build-torque.xml to get the file name right. >I wonder if this can be done in CVS so people don't have to >do this. > >Ev > >----- Original Message ----- >From: "Jim O'Quinn" >To: >Sent: Thursday, December 19, 2002 12:53 PM >Subject: ant -f build-torque.xml om > > > > >>I'm so close! I'm trying to generate my class files from the database, >>but I seem to be missing something. When I run 'ant -f build-torque.xml >>*om*' it grinds away for a few seconds then generates a zero lengh >>'.om.generation' file. >> >>I have a build.properties file in my directory and it seems to find some >>properties. >> >>The velocity.log file says: [error] RHS of #set statement is null. >>Context will not be modified. om/Control.vm [line 4, column 1] >> >>The line in om/Control.vm is #set ( $dbprops = >>$properties.load("sql/base/$targetDatabase/db.props") ) >> >>The db.props file is in 'templates/base/postgresql'. >> >>Any idea what is missing or what I'm doing wrong? >> >>Thanks, >> >>Jim >> >> >>[oquinn@chato torque-3.0]$ ant -f build-torque.xml om >>Buildfile: build-torque.xml >> >>check-use-classpath: >> >>check-run-only-on-schema-change: >> >>om-check: >> >>om: >> [echo] +------------------------------------------+ >> [echo] | | >> [echo] | Generating Peer-based Object Model for | >> [echo] | YOUR Torque project! Woo hoo! | >> [echo] | | >> [echo] +------------------------------------------+ >> >>om-classpath: >> >>om-template: >>[torque-data-model] Using contextProperties file: >>/home/oquinn/cns/java/torque-3.0/build.properties >>[torque-data-model] *Cannot get default properties!* >>[torque-data-model] Generating to file >>/home/oquinn/cns/java/torque-3.0/src/java/report.cns_test.om.generation >> >>BUILD SUCCESSFUL >>Total time: 8 seconds >> >> >> >> > >-- >To unsubscribe, e-mail: >For additional commands, e-mail: > > > > > --------------000905050209070803010406--