I'm just getting into Turbine, using TDK 2.1 with Turbine 2.2 under Win2k.
Following the instructions, I run into a problem when running the init
target:
create-database:
create-database.bat
D:\Programming\src\tdk\webapps\newapp\WEB-INF\src\sql\create-database.bat
tdk/webapps/newapp/WEB-INF/build/build.xml [122] Execute failed:
java.io.IOException: CreateProcess: ..\src\sql\create-database.bat error=2
BUILD FAILED
Investigating this turns up that "error=2" means that Ant couldn't find the
script file. I think this is due to the weird way you have to use Ant's
"exec" task under Win2k. In the build file, the line (122) that executes the
bat file is:
<exec executable="${fullPathOutputDirectory}/sql/${script}"
failonerror="yes"/>
If you change it to this, it works:
<exec dir="${fullPathOutputDirectory}/sql" executable="cmd.exe"
os="Windows 2000" failonerror="yes">
<arg line="/c ${script}"/>
</exec>
This is a somewhat problematic solution, as this exec statement works only
for Win2k, and Ant's exec task doesn't provide a way to say "all other OS's
execept Win2k".
One other comment: The GETTING_STARTED.txt file makes reference to the
./project/newapp.properties file, which does not exist. The one they mean is
<tdk>/webapps/newapp/WEB-INF/build/build.properties. This looks like a case
where a doc was not updated when Maven settled on using build.properties.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>