I don't like them too much - they're not very elegant, but I have some 
fixes for a coupld of issues on the build-project script for a project 
under the TDK.

1) On Windows NT or 2000, the <exec> task in Ant tries to call a literal 
../src\sql\create-database.bat.

I *think* this is an Ant issue and the CORRECT fix would be to fix 
things in Ant.

However, a workaround is to set a targetPathSeparator in 
[appname].properties to \\ on Windows, then change the <exec> task in 
build-project.xml to read something like:
  <exec 
executable="..${targetPathSeparator}src${targetPathSeparator}sql${targetPathSeparator}${script}"/>

The problem with this is that %{outputDirectory} was used previously.  I 
figured since it was set in the section in [appname].properties in the 
area underneath You should NOT have to edit anything underneath here, 
that it would be OKAY as a temporary solution to hard-code the same path 
into the build-project.xml.

2) On Windows, \n's (CRLF's) are treated as 2 characters, so the chop 
commands in the Torque templates are not actually chopping the trailing 
comma.

Under build/bin/torque/templates, I created a windows directory and a 
unix directory.  I copied all the existing structure into those 
directories, and modified the templates in the windows directory to chop 
one extra character.  Then, in build-project.xml, I changed all the 
vtorque tasks that generate SQL to use ${templatePath}/${targetPlatform} 
for the templatePath.

Again, I'm not really sure I like the idea of having to keep separate 
templates for Windows and Unix.  But as a temporary solution, it's 
functional.

I have these solutions available, but don't necessarily want to check 
them in, because they're really kludges, not real fixes.

Will Stranathan



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to