Hi,
I've just started looking into using Torque to generate my database files
and peers. I'm running on win2k so I went looking for the torque.bat file
mentioned in the torque documentation. I couldn't find it in the tdk (1.1a9)
and it is not in the latest snapshot or CVS either... am I overlooking
something ?
I created one for myself by taking the default built.bat that gets generated
for a newapp and modifying it slightly (changing the BULDFILE prperty and
adding the turbine and velocity jar files to the classpath) and this seems
to work fine.
In case anyone wants to add this, I included my attempt below... it might
not be flexible enough for the TDK because of the hardcoded turbine and
velocity jar file names (which change often), but at least it is a start :)
Regards,
Age
------ torque.bat ---------------------------
I don't know where you would want to place this file relative to the tdk
root....
I guess either in %TDK_ROOT%\share\conf\torque or
%TDK_ROOT%\share\common\torque.
--------------------------------------------------
@echo off
REM --------------------------------------------
REM No need to edit anything past here
REM --------------------------------------------
set _BUILDFILE=%BUILDFILE%
set BUILDFILE=torque.xml
:final
set _CLASSPATH=%CLASSPATH%
if "%JAVA_HOME%" == "" goto javahomeerror
if exist %JAVA_HOME%\lib\tools.jar set
CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
set CLASSPATH=%CLASSPATH%;..\..\..\..\lib\ant.jar
set CLASSPATH=%CLASSPATH%;..\lib\xerces-1.1.3.jar
set CLASSPATH=%CLASSPATH%;..\lib\velocity-0.7.jar
set CLASSPATH=%CLASSPATH%;..\lib\turbine-2.1-dev-unreleased.jar
set _JAVAC=%JAVAC%
set JAVAC=classic
if not "%JIKES%" == "" set JAVAC=jikes
%JAVA_HOME%\bin\java.exe -classpath "%CLASSPATH%" -DJAVAC=%JAVAC%
org.apache.tools.ant.Main -buildfile %BUILDFILE% %1 %2 %3 %4 %5 %6 %7 %8 %9
goto end
REM -----------ERROR-------------
:javahomeerror
echo "ERROR: JAVA_HOME not found in your environment."
echo "Please, set the JAVA_HOME variable in your environment to match the"
echo "location of the Java Virtual Machine you want to use."
:end
set BUILDFILE=%_BUILDFILE%
set _BUILDFILE=
set CLASSPATH=%_CLASSPATH%
set _CLASSPATH=
set JAVAC=%_JAVAC%
set _JAVAC=
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]