Install script in standalone zanata server download has several problems on Windows

Description

Description of problem:
In the zip for "Zanata Server (with installer)" downloaded from http://zanata.org/download/ the installation batch file at <server>/bin/zanata-installer/install.bat fails because the classpath is wrapped in single-quotes, which do not appear to be valid for quoting a command line argument on Windows. The installer will run if the contents of install.bat are changed to:

java -cp ".;groovy-all-2.1.5.jar" groovy.lang.GroovyShell InstallZanata.groovy

Once the installer is running, some of the inputs are skipped:

  • user is prompted for the version

  • user enters a version then presses <Enter>

  • user is prompted for the host

  • user is prompted for the port

  • user enters a port number and presses <Enter>

  • user is prompted for the schema

  • user is prompted for the username

  • etc.

so there is no opportunity to enter host, schema and so on. It is likely that the script is reading the windows line end "\r\n" as two separate newlines, in addition to not clearing the input buffer between prompts.

There is also no option to re-run the installer - if I make a mistake I have to wipe out the whole directory and start again.

Environment

None

Status

Assignee

Unassigned

Reporter

David Mason

Labels

Tested Version/s

None

Components

Priority

unspecified
Configure