greenstone.org greenstone wiki greenstone trac planet greenstone

Changeset 16286

Show
Ignore:
Timestamp:
2008-07-02 19:07:28 (3 months ago)
Author:
ak19
Message:

Corrected previous commit. Scheduling is not dependent on GLI running from inside a GS2 installation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gli/trunk/src/org/greenstone/gatherer/collection/CollectionManager.java

    r16272 r16286  
    13491349    } 
    13501350 
    1351     /** At present, scheduling only works for GS2, only when GS2 is local and only when GLI runs from  
    1352      * within a GS2 installation. This method can be adjusted as scheduling becomes available for more 
    1353      * more situations. */ 
     1351    /** At present, scheduling only works for GS2 and only when GS2 is local. This 
     1352     * method can be adjusted as scheduling becomes available for more situations. */ 
    13541353    private boolean canDoScheduling() { 
    13551354        if(Gatherer.isGsdlRemote) { 
     
    13571356        }  
    13581357        if(Gatherer.GS3) { 
    1359             return false; 
    1360         } 
    1361          
    1362         // GS2's etc/main.cfg is necessary for scheduling, but scheduling looks for it locally:  
    1363         // it assumes GLI is inside a GS2 installation 
    1364         File mcfg = new File(LocalGreenstone.getDirectoryPath() + File.separator + "etc" + File.separator + "main.cfg"); 
    1365         if(!mcfg.exists()) { 
    1366             System.out.println("Cannot do scheduling, since there is no file: " + mcfg.getAbsolutePath()  
    1367                                + ".\nScheduling presently depends on GLI running from inside a GS2."); 
    13681358            return false; 
    13691359        }