Changeset 31970 for main

Show
Ignore:
Timestamp:
15.09.2017 20:49:31 (2 years ago)
Author:
ak19
Message:

Unused, but possibly useful, commented out code

Location:
main/trunk/gli
Files:
2 modified

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));