Changeset 31970 for main/trunk


Ignore:
Timestamp:
2017-09-15T20:49:31+12:00 (7 years ago)
Author:
ak19
Message:

Unused, but possibly useful, commented out code

Location:
main/trunk/gli
Files:
2 edited

Legend:

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

    r31649 r31970  
    8787    exit 1;
    8888fi
     89## if we're using a bundled java in GS2, then put the bundled java into the environment too (don't just use it to launch GLI)
     90#if [[ $javapath == *"/packages/jre"* ]]; then
     91#    if [ "$_version" -eq 2 ]; then
     92#   export JRE_HOME=$GSDLHOME/packages/jre
     93## Shouldn't be necessary to set JAVA_HOME to JRE_HOME. If only JRE_HOME exists, it should suffice for GLI:
     94#   ##export JAVA_HOME=$JRE_HOME
     95#   echo "@@@ SETTING JAVA ENV TO THE BUNDLED JRE: JRE_HOME: $JRE_HOME"
     96#   export PATH=$JRE_HOME/bin:$PATH
     97#    fi
     98#fi
     99
    89100
    90101## ---- Check that the GLI has been compiled ----
  • main/trunk/gli/src/org/greenstone/gatherer/util/SafeProcess.java

    r31843 r31970  
    308308        prcs = rt.exec(this.command_args);
    309309        } else { // launch process using cmd str with env params       
    310        
     310
     311        //log("Environment: ");
     312        //for(int i = 0; i < envp.length; i++) {
     313        //    log("\t" + envp[i]);
     314        //}
     315
    311316        if(this.dir == null) {
    312317            //log("\twith: " + Arrays.toString(this.envp));
Note: See TracChangeset for help on using the changeset viewer.