Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make easier for users to point to their geonetwork application #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 29, 2020

  1. Make easier for users to point to their geonetwork application

    If a new user executes the suggested command
    `./gemet-to-simpleskos.sh en fr de nl it` without updating the value of
    `GEONETWORK_HOME` inside `gemet-to-simpleskos.sh` it will fail with a
    confusing error:
    
    ```bash
    Creating thesaurus ...
    Error: Could not find or load main class net.sf.saxon.Transform
    ```
    
    This happens because the CLASSPATH for the java call should contain
    `$GEONETWORK_HOME/WEB-INF/lib/saxon-9.1.0.8b-patch.jar` and the
    `GEONETWORK_HOME` is set inside `gemet-to-simpleskos.sh` to a default
    path. If geonetwork is not present at that path the script will fail.
    
    A better approach is make the user set the `GEONETWORK_HOME` variable
    before calling the script.
    
    I also added a check to warn the user if the script could not locate
    the saxon jar. In this case it will print an error message and exit
    with an error code.
    amrtn committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    6730d2c View commit details
    Browse the repository at this point in the history