Changeset 34113
- Timestamp:
- 2020-05-19T11:34:40+12:00 (4 years ago)
- Location:
- main/trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r32926 r34113 51 51 import org.greenstone.gatherer.greenstone.LocalLibraryServer; 52 52 import org.greenstone.gatherer.greenstone.Plugins; 53 import org.greenstone.gatherer.greenstone3.ProtocolPortProperties; 53 54 import org.greenstone.gatherer.greenstone3.ServletConfiguration; 54 55 import org.greenstone.gatherer.gui.GUIManager; … … 1252 1253 // specified in the build.properties located in the gsdl3_src_path 1253 1254 if (GS3) { 1255 // defaults 1254 1256 String host = "localhost"; 1255 1257 String port = "8383"; 1258 String context = "greenstone3"; 1259 String protocol = "http"; 1256 1260 1257 1261 File buildPropsFile = new File(Configuration.gsdl3_src_path + File.separator + "build.properties"); … … 1260 1264 try{ 1261 1265 props.load(new FileInputStream(buildPropsFile)); 1262 host = props.getProperty("tomcat.server", host); 1263 port = props.getProperty("tomcat.port", port); 1266 host = props.getProperty("tomcat.server", host); 1267 context = props.getProperty("greenstone.context", context); 1268 ProtocolPortProperties protocolPortProps = new ProtocolPortProperties(props); // can throw Exception 1269 // Use ProtocolPortProperties to get the tomcat port and protocol used 1270 protocol = protocolPortProps.getProtocol(); 1271 port = protocolPortProps.getPort(); 1264 1272 }catch(Exception e){ 1265 1273 DebugStream.println("Could not load build.properties file"); … … 1268 1276 props = null; 1269 1277 } 1270 String defaultURL = "http://"+host+":"+port+"/"+"greenstone3";1278 String defaultURL = protocol+"://"+host+":"+port+"/"+context; 1271 1279 field.setText(defaultURL); 1272 1280 field.selectAll(); -
main/trunk/gli/src/org/greenstone/gatherer/gui/FedoraLogin.java
r18412 r34113 37 37 38 38 import java.io.File; 39 import java.io.FileInputStream;40 import java.io.FileOutputStream;41 39 import java.io.IOException; 42 40
Note:
See TracChangeset
for help on using the changeset viewer.