You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Vikas Phonsa <VP...@suz.com> on 2003/11/13 23:33:10 UTC

Can't generate Java Source

Hi,

I am able to run ant -f build-torque.xml 
And it says "BUILD SUCCESSFUL'

It generates the stuff in the sql folder. But it doesn't generate any java
source in the java folder under src. Under the java folder I only get an
empty file name report.pitchers.om.generation.

Also I'm able to create my mysql database by running ant -f build-torque.xml
create-db.

But I can't get the java classes in src\java . 
Any ideas ?

Thanks


Vikas


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Re: Can't generate Java Source

Posted by Charles-Alexandre Sabourdin <ka...@dedaletechnology.com>.
Le Jeudi 13 Novembre 2003 23:33, Vikas Phonsa a écrit :
> Hi,
>
> I am able to run ant -f build-torque.xml
> And it says "BUILD SUCCESSFUL'
>
> It generates the stuff in the sql folder. But it doesn't generate any java
> source in the java folder under src. Under the java folder I only get an
> empty file name report.pitchers.om.generation.
>
> Also I'm able to create my mysql database by running ant -f
> build-torque.xml create-db.
>
> But I can't get the java classes in src\java .
> Any ideas ?
You have to use "compile":
ant -f build-torque.xml

The class are in TORQUE_GEN$/bin/

I personnaly use this script : (it separate every steps)

#!/bin/sh
#
# scripte de création des fichier
# sql, source, et classes à partie des
# Ficher *-schema.xml dans ./schema
#
#
echo "le fichier build.properties est bien configurer ?"&&
sleep 2 &&
echo "demarrage"&&
rm -rf scr/* &&
echo "create-db" &&
ant -f build-torque.xml create-db &&
echo "pause ctr-c pour arreter" &&
sleep 5 &&
echo "sql" &&
ant -f build-torque.xml sql &&
echo "pause ctr-c pour arreter" &&
sleep 5 &&
echo "id-table-init-sql" &&
ant -f build-torque.xml id-table-init-sql &&
echo "pause ctr-c pour arreter" &&
sleep 5 &&
echo "insert-sql" &&
ant -f build-torque.xml insert-sql &&
echo "pause ctr-c pour arreter" &&
sleep 5 &&
echo "om" &&
ant -f build-torque.xml om &&
echo "pause ctr-c pour arreter" &&
sleep 5 &&
echo "compile" &&
ant -f build-torque.xml compile;


-- 
Charles-Alexandre
SABOURDIN
-----------------


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org