Scripts do not handle pathnames with spaces

Issue #97 resolved
Marisa Strong
created an issue

the startup scripts do not support pathnames with spaces in it. Need to enclose the CP variable in quotations to support this

Comments (4)

  1. Laurent Bihanic

    I made some patches for the UNIX scripts at https://bitbucket.org/lbihanic/jhove2-bnf. They include support for pathnames with spaces and computation of the JHOVE_HOME variable from the script location.

    For UNIX, computation of the classpath by Maven at assembly time is not necessary. The classpath can be dynamically computed at runtime:

    # CP must contain a colon-separated list of JARs used by JHOVE2.
    CP=$(echo ${JHOVE2_HOME}/lib/*.jar | sed -e 's/ /:/g')
    CP="${JHOVE2_HOME}/config:${JHOVE2_HOME}/config/droid:${CP}"
    
  2. Log in to comment