i know i'm breaking netiquette now but:

  EXCELLENT POSTING!!!




Fabian Moerchen wrote:

>hi
>
>after lots of tries and searching the mailinglist i finally got torque
>up and running as stand-alone with mysql. first of all you should read
>what's already on pete's tutorial at http://www.kazmier.com/~kaz/torque
>
>here's how i got it working from there and with the standard docs, so
>some knowledge is assumed. i'm new to torque though, so maybe this is
>not always the recommended way. but maybe some of this is also useful
>for the tutorial, pete?
>
>- download & extract jakarta-turbine-torque-src.tar.gz
>from http://jakarta.apache.org/builds/jakarta-turbine/nightly/
>
>- cd into & mkdir lib
>
>- echo "lib.repo=lib" > build.properties
>
>- ant update-jars (took 35s with DSL ;))
>
>- ant
>
>- ant install-jar
>
>- ant dist
>
>- cp bin/torque/torque/* <your project dir> -a
>  and cd there
>
>- replace or edit schema/project-schema.xml (optional)
>
>- edit schema/Torque.properties, especially the database settings
>
>- edit build.properties
>    project=<your project name> (optional)
>    targetPackage=<your package name> (optional)
>    and the database settings, i made
>    createDatabaseUrl and databaseUrl identical
>
>- cp mm-mysql-*.jar lib
>
>- place lib/*.jar in your CLASSPATH
>
>- "ant" now generates the SQL and JAVA files
>
>- edit schema/id-table-schema.xml: add name="<your db name>" 
>  to prevent "CREATE DATABASE default" error in script.
>  
>- "ant project-create-db project-insert-sql" 
>   now creates the database
>
>- in the java code you just need "Torque.init("Torque.properties");"
>  maybe with the right path (i used absolute for far).
>
>- from here on i use my own ant build file and just call the 
>  torque targets from there.
>
>hope this helps anyone
>
>bye
>fabian
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to