db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tuncay Baskan (Internet Grubu)" <Tuncay.Bas...@intertech.com.tr>
Subject RE: Trouble with Torque
Date Fri, 27 Dec 2002 17:48:16 GMT
> -----Original Message-----
> From: f.b. [mailto:goffredo@almirena.com]
> Sent: Friday, December 27, 2002 9:35 AM
> To: Turbine Torque Users List
> Subject: Trouble with Torque
> Hi All,
> I've just downloaded Torque and want to use it as a stand-alone tool.
> I've got postgres installed and working, and did a succesful build of
> Torque from source. So everything should be ok. But ... when I run
> the example bookstore application ... nothing seems to be produced
> ... I get some empty files ... the screen messages tricked me into
> thinking something had been created but when I looked, nothing. 
> I don't know what files the bookstore example is supposed to create,
> I suppose some java files and stuff ... but in my case nothing at
> all is created! 

First, I'm new to Torque as well. I think Torque does not override
generated classes and sql scripts if there is no valuable change in
the schema file. I mean, it happened to me too. After running 
"ant -f torque-build.xml" once, subsequent runs did not change the
produced files. To workaround this I deleted the generated files/folders
and re-run the ant.

> What is supposed to be created by running ant -f torque-build.xml. ?

For all ant build files you can get help about the targets by simply
       "ant -projecthelp -f <build-file>"

That prints the available targets. If you look for "main" target, it says
(for build-torque.xml)
"main               ==> generates sql + om classes"

> The tutorial is not much help either ... I mean it doesn't actually
> say what the command ant -f torque-build.xml is supposed to produce. 

I think tutorial is very good. (Actually it lacks a little since it is
originally a
mail posted to a list) Your problem is with ant files not torque.
Btw, if you post your exact error message, or what you think you should
get but can't we may help you better.

Lastly, there is an article about Torque in this link:

> Regards
> Goffredo



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message