On Sun, Jan 20, 2002 at 12:47:21AM +0100, Fabian Moerchen wrote: > 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
I plan on completing the tutorial in the next few days. Hopefully it will help newcomers to the standalone version of Torque (like you and me). > 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? Definitely, I'm new to Torque as well, but the process you describe below is the very close to the process that I discovered so I hope its the recommended way cuz that is what I'm documenting!! (With the exception of the build process because there already is a document on it which I plan on updating after I finish the tutorial.) > > - 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. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
