System.exit(0);
}
- private static void addDevelPage() {
+ public static void addDevelPage() {
try {
Field instF = Gigi.class.getDeclaredField("instance");
Field pageF = Gigi.class.getDeclaredField("pages");
Log.getLogger(Launcher.class).warn("Couldn't set uid!");
}
}
+ if (conf.getMainProps().containsKey("testrunner")) {
+ DevelLauncher.addDevelPage();
+ }
}
private static ServerConnector createConnector(GigiConfig conf, Server s, HttpConfiguration httpConfig, boolean doHttps) throws GeneralSecurityException, IOException {
public static void clearCaches() throws IOException {
ObjectCache.clearAllCaches();
String type = testProps.getProperty("type");
- if (type.equals("local")) {
- URL u = new URL("https://" + getServerName() + "/manage");
- u.openConnection().getHeaderField("Location");
- }
+ URL u = new URL("https://" + getServerName() + "/manage");
+ u.openConnection().getHeaderField("Location");
}
private static Properties generateMainProps() {
Properties mainProps = new Properties();
+ mainProps.setProperty("testrunner", "true");
mainProps.setProperty("host", "127.0.0.1");
mainProps.setProperty("name.secure", testProps.getProperty("name.secure"));
mainProps.setProperty("name.www", testProps.getProperty("name.www"));