maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikas Phonsa <>
Subject RE: Multiple Seperate Database Projects
Date Tue, 02 Dec 2003 22:44:07 GMT
Well Craig whatever works !!!!

But tell me one thing, if I just change the following properties, wouldn't
it pick schema from the folder we want and place generated stuff in there, I
tried but somehow is not working right :

outputDirectory = src
schemaDirectory = schema

torque.output.dir = ${torque.home}/${outputDirectory}
torque.schema.dir = ${torque.home}/${schemaDirectory}

torque.doc.dir = ${torque.output.dir}/doc = ${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}



-----Original Message-----
From: Craig S. Cottingham [] 
Sent: Tuesday, December 02, 2003 2:15 PM
To: Maven Users List
Subject: Re: Multiple Seperate Database Projects

On Tue, 2003-12-02 at 15:58, Vikas Phonsa wrote:
> I want to make separate folders for different databases like Database1,
> Database2 etc and put the schema and for each database in
> its separate folder. And then specify the location of the Database/folder
> want to work on in the folder, so that the properties
> the schema is loaded from Database folders like from Database1 folder and
> also the generated sql and java classes are placed in different folder for
> each database.
> Could that be done ?

I do something similar to what you're asking for, but in a different

First, I keep all of the properties for controlling Torque in a single
XML file. Then, for each DBMS I support, I have a goal in maven.xml
which transforms the XML file using XSLT into, moves
that to the appropriate directory, attains the torque:sql goal, then
moves the resulting files to the appropriate subdirectory under target.

It's an ugly, ugly hack, compounded by the fact that I never could get
XSLT to work inside Maven, so I have to call out to a separate Ant build
file. If had to do it over again, I could probably find a cleaner way to
do it, but what I have works for me for now.

Craig S. Cottingham

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message