Changeset 37674
- Timestamp:
- 2023-04-18T18:27:39+12:00 (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/DerbyWrapper.java
r37610 r37674 63 63 String port = GlobalProperties.getProperty("derby.server.port");//, "8327"); GS' default derby port. 64 64 if(port.indexOf("@") == -1) { // if there are still @placeholders@ in global.properties, then use fallback values 65 PORT = port;66 65 DERBYSERVER = GlobalProperties.getProperty("derby.server");//, "localhost"); 67 66 } else { 68 PORT= "8327"; // This setting is used by installer. 8327 is GS default derby port. Note: Out-of-box derby defaults to port 152767 port = "8327"; // This setting is used by installer. 8327 is GS default derby port. Note: Out-of-box derby defaults to port 1527 69 68 DERBYSERVER = "localhost"; 70 69 } 70 71 // Check any -D JVM properties passed to GS3 jarfile and, iff set, use it in preference to any PORT already found 72 // See https://stackoverflow.com/questions/5045608/proper-usage-of-java-d-command-line-parameters 73 PORT = System.getProperty("derby.server.port", port); 74 71 75 PROTOCOL = "jdbc:derby://"+DERBYSERVER+":"+PORT+"/"; // "jdbc:derby://localhost:8327"; // by default 72 76 //System.out.println("@@@ PROTOCOL:" + PROTOCOL); //check in installer
Note:
See TracChangeset
for help on using the changeset viewer.