Ignore:
Timestamp:
2011-01-14T18:47:45+13:00 (13 years ago)
Author:
ak19
Message:

Changed the script files that launch GS applications to contain an extra Java VM argument called Xdock:name for Darwin (MacOS) machines that will set the program abbreviation as the visible name of the top Mac menubar when the application is running in the Dock menu at the bottom.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/gli.sh

    r22409 r23590  
    143143    # -Xprof           Function call profiling
    144144    # -Xloggc:<file>   Write garbage collection log
     145
     146    # -Xdock:name      To set the name of the app in the MacOS Dock bar
     147    # -Xdock:icon      Path to the MacOS Doc icon (not necessary for GS)   
     148    custom_vm_args=""
     149    if [ "$GSDLOS" = "darwin" ]; then
     150        custom_vm_args="-Xdock:name=$PROGABBR"
     151    fi
    145152   
    146153    exit_status=0
     
    148155# GS2 webLib
    149156    if [ "$PROGABBR" = "FLI" -o ! -f "$GSDLHOME/gs2-server.sh" ]; then
    150         "$javapath" -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar org.greenstone.gatherer.GathererProg -gsdl "$GSDLHOME" -gsdlos $GSDLOS $*
     157        "$javapath" -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar $custom_vm_args org.greenstone.gatherer.GathererProg -gsdl "$GSDLHOME" -gsdlos $GSDLOS $*
    151158        exit_status=$?
    152159# GS2 localLib
    153160    else
    154         "$javapath" -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar org.greenstone.gatherer.GathererProg -gsdl "$GSDLHOME" -gsdlos $GSDLOS -local_library "$GSDLHOME/gs2-server.sh" $*
     161        "$javapath" -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar $custom_vm_args org.greenstone.gatherer.GathererProg -gsdl "$GSDLHOME" -gsdlos $GSDLOS -local_library "$GSDLHOME/gs2-server.sh" $*
    155162        exit_status=$?
    156163    fi
    157164# GS3
    158165    elif [ "$_version" -eq 3 ]; then   
    159         "$javapath" -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar org.greenstone.gatherer.GathererProg -gsdl "$GSDLHOME" -gsdlos $GSDLOS -gsdl3 "$GSDL3HOME" -gsdl3src "$GSDL3SRCHOME" $*
     166        "$javapath" -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar $custom_vm_args org.greenstone.gatherer.GathererProg -gsdl "$GSDLHOME" -gsdlos $GSDLOS -gsdl3 "$GSDL3HOME" -gsdl3src "$GSDL3SRCHOME" $*
    160167        exit_status=$?
    161168    fi
Note: See TracChangeset for help on using the changeset viewer.