Changeset 18670

Show
Ignore:
Timestamp:
13.03.2009 13:14:12 (10 years ago)
Author:
ak19
Message:

Overloaded methods of BaseServer? getBrowserURL() and reload(), so that GlobalProperties? is only used in GS3's Server class now.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/server/Server3.java

    r18558 r18670  
    66import org.greenstone.server.BaseServer; 
    77import org.greenstone.server.BaseProperty; 
     8import org.greenstone.gsdl3.util.GlobalProperties; 
    89 
    910public class Server3 extends BaseServer 
     
    1213    public Server3(String gsdl3_src_home, String lang) 
    1314    { 
    14     super(gsdl3_src_home,lang);          
     15    super(gsdl3_src_home,lang, gsdl3_src_home+File.separatorChar+"build.properties"); 
    1516 
    1617    Property = new Server3Property(); 
     
    3637    } 
    3738     
     39    public String getBrowserURL() { 
     40    return GlobalProperties.getGSDL3WebAddress()+ build_properties.getProperty(BaseServer.Property.DEFAULT_SERVLET); 
     41    } 
     42 
     43    public void reload() { 
     44    GlobalProperties.reload(); // properties file may have changed, so reload it 
     45    } 
     46 
    3847    public static void main (String[] args)  
    3948    {