mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 00:38:16 +00:00
Verbose server provider info
This commit is contained in:
@@ -5,6 +5,7 @@ import java.net.MalformedURLException;
|
|||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
|
import org.parabot.core.Core;
|
||||||
import org.parabot.environment.api.utils.WebUtil;
|
import org.parabot.environment.api.utils.WebUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -19,9 +20,11 @@ public class ServerProviderInfo {
|
|||||||
this.properties = new Properties();
|
this.properties = new Properties();
|
||||||
try {
|
try {
|
||||||
String line;
|
String line;
|
||||||
|
Core.verbose("Reading info: " + providerInfo);
|
||||||
BufferedReader br = WebUtil.getReader(providerInfo, username, password);
|
BufferedReader br = WebUtil.getReader(providerInfo, username, password);
|
||||||
while ((line = br.readLine()) != null) {
|
while ((line = br.readLine()) != null) {
|
||||||
if(line.contains(": ")) {
|
if(line.contains(": ")) {
|
||||||
|
System.out.println(line);
|
||||||
properties.put(line.substring(0, line.indexOf(": ")), line.substring(line.indexOf(": ") + 2, line.length()));
|
properties.put(line.substring(0, line.indexOf(": ")), line.substring(line.indexOf(": ") + 2, line.length()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user