Ignore:
Timestamp:
2018-08-14T15:50:12+12:00 (6 years ago)
Author:
ak19
Message:

All the changes (still preliminary) that use tomcat.https.port and tomcat.http.port to determine tomcat.port and write it out to build.xml. Now the server application won't quite work: it can't change the port numbers as its code only knows to write out the tomcat.port, and the actual tomcat port (https or http) will remain unaffected. But I'll fix this later, as there may be a better way to do this.

Location:
main/trunk/greenstone3/src/java/org/greenstone
Files:
2 edited

Legend:

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

    r29845 r32334  
    5252        catch(Exception e){
    5353        logger.error(e);
     54        System.err.println("Unable to proceed. Port number property " + BaseServer.Property.WEB_PORT + " doesn't exist\nor contains a non-numeric value");
     55        exit(-1);
    5456    }
    5557
  • main/trunk/greenstone3/src/java/org/greenstone/util/GlobalProperties.java

    r27869 r32334  
    153153
    154154            //protocol
    155             if (properties.getProperty("tomcat.protocol") == null || properties.getProperty("tomcat.protocol").equals(""))
     155            if (properties.getProperty("server.protocol") == null || properties.getProperty("server.protocol").equals(""))
    156156            {
    157157                protocolSpecifier = "http://";
     
    159159            else
    160160            {
    161                 if (properties.getProperty("tomcat.protocol").endsWith("://"))
    162                 {
    163                     protocolSpecifier = properties.getProperty("tomcat.protocol");
     161                if (properties.getProperty("server.protocol").endsWith("://"))
     162                {
     163                    protocolSpecifier = properties.getProperty("server.protocol");
    164164                }
    165165                else
    166166                {
    167                     protocolSpecifier = properties.getProperty("tomcat.protocol") + "://";
     167                    protocolSpecifier = properties.getProperty("server.protocol") + "://";
    168168                }
    169169            }
Note: See TracChangeset for help on using the changeset viewer.