forked from I2P_Developers/i2p.i2p
merge of '4f47546a7fcac5e20d0d9ac04bcae904bb155cc9'
and '71ed1d74f02291ae56a495e97fae65970bfbdd30'
This commit is contained in:
@@ -101,7 +101,8 @@
|
||||
<manifest>
|
||||
<!-- top level installer will rename to jrobin.jar -->
|
||||
<!-- DTG added in 0.8.4, not in the classpath for very old installs, before we changed wrapper.config to specify * -->
|
||||
<attribute name="Class-Path" value="i2p.jar router.jar jrobin.jar desktopgui.jar" />
|
||||
<!-- very old installs don't have i2psnark,jstl,standard in the classpath... not added in WebAppConfiguration any more -->
|
||||
<attribute name="Class-Path" value="i2p.jar router.jar jrobin.jar desktopgui.jar i2psnark.jar jstl.jar standard.jar" />
|
||||
<attribute name="Implementation-Version" value="${full.version}" />
|
||||
<attribute name="Built-By" value="${build.built-by}" />
|
||||
<attribute name="Build-Date" value="${build.timestamp}" />
|
||||
|
||||
@@ -21,6 +21,7 @@ public class HomeHelper extends HelperBase {
|
||||
static final String PROP_SERVICES = "routerconsole.services";
|
||||
static final String PROP_FAVORITES = "routerconsole.favorites";
|
||||
static final String PROP_OLDHOME = "routerconsole.oldHomePage";
|
||||
private static final String PROP_SEARCH = "routerconsole.showSearch";
|
||||
|
||||
static final String DEFAULT_SERVICES =
|
||||
_x("Addressbook") + S + _x("Manage your I2P hosts file here (I2P domain name resolution)") + S + "/susidns/index" + S + I + "book_addresses.png" + S +
|
||||
@@ -62,6 +63,10 @@ public class HomeHelper extends HelperBase {
|
||||
return _context.getProperty(Messages.PROP_LANG) == null;
|
||||
}
|
||||
|
||||
public boolean shouldShowSearch() {
|
||||
return _context.getBooleanProperty(PROP_SEARCH);
|
||||
}
|
||||
|
||||
public String getServices() {
|
||||
List<App> plugins = NavHelper.getClientApps(_context);
|
||||
return homeTable(PROP_SERVICES, DEFAULT_SERVICES, plugins);
|
||||
|
||||
@@ -68,13 +68,7 @@ public class WebAppConfiguration implements Configuration {
|
||||
|
||||
File dir = libDir;
|
||||
String cp;
|
||||
if (ctxPath.equals("/susidns")) {
|
||||
// jars moved from the .war to lib/ in 0.7.12
|
||||
cp = "jstl.jar,standard.jar";
|
||||
} else if (ctxPath.equals("/i2psnark")) {
|
||||
// duplicate classes removed from the .war in 0.7.12
|
||||
cp = "i2psnark.jar";
|
||||
} else if (pluginDir.exists()) {
|
||||
if (pluginDir.exists()) {
|
||||
File consoleDir = new File(pluginDir, "console");
|
||||
Properties props = RouterConsoleRunner.webAppProperties(consoleDir.getAbsolutePath());
|
||||
cp = props.getProperty(RouterConsoleRunner.PREFIX + appName + CLASSPATH);
|
||||
@@ -101,6 +95,9 @@ public class WebAppConfiguration implements Configuration {
|
||||
path = dir.getAbsolutePath() + '/' + elem;
|
||||
// As of Jetty 6, we can't add dups to the class path, or
|
||||
// else it screws up statics
|
||||
// This is not a complete solution because the Windows no-wrapper classpath is set
|
||||
// by the launchi2p.jar (i2p.exe) manifest and is not detected below.
|
||||
// TODO: Add a classpath to the command line in i2pstandalone.xml?
|
||||
File jfile = new File(path);
|
||||
File jdir = jfile.getParentFile();
|
||||
if (systemCP.contains(jfile.toURI().toURL()) ||
|
||||
|
||||
@@ -40,6 +40,9 @@ input.default {
|
||||
<input type="submit" name="action" class="accept" value="<%=intl._("Save")%>" >
|
||||
</form>
|
||||
|
||||
<%
|
||||
if (homehelper.shouldShowSearch()) {
|
||||
%>
|
||||
<h3><%=intl._("Search Engines")%></h3>
|
||||
<form action="" method="POST">
|
||||
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
|
||||
@@ -53,6 +56,9 @@ input.default {
|
||||
<input type="submit" name="action" class="add" value="<%=intl._("Add item")%>" >
|
||||
</div>
|
||||
</form>
|
||||
<%
|
||||
} // shouldShowSearch()
|
||||
%>
|
||||
|
||||
<h3><%=intl._("Recommended Eepsites")%></h3>
|
||||
<form action="" method="POST">
|
||||
|
||||
@@ -89,6 +89,9 @@
|
||||
%>
|
||||
|
||||
<div class="home" id="home">
|
||||
<%
|
||||
if (homehelper.shouldShowSearch()) {
|
||||
%>
|
||||
<div class="search">
|
||||
<form action="/search.jsp" method="POST">
|
||||
<table class="search"><tr><td align="right">
|
||||
@@ -102,6 +105,9 @@
|
||||
</td></tr></table>
|
||||
</form>
|
||||
</div>
|
||||
<%
|
||||
} // shouldShowSearch()
|
||||
%>
|
||||
<div class="ag2">
|
||||
<h4 class="app"><%=intl._("Eepsites of Interest")%></h4>
|
||||
<jsp:getProperty name="homehelper" property="favorites" /><br>
|
||||
|
||||
@@ -240,7 +240,7 @@
|
||||
<jar destfile="./build/launchi2p.jar">
|
||||
<manifest>
|
||||
<attribute name="Main-Class" value="net.i2p.router.RouterLaunch" />
|
||||
<attribute name="Class-Path" value="lib/i2p.jar lib/router.jar lib/jbigi.jar lib/BOB.jar lib/sam.jar lib/mstreaming.jar lib/streaming.jar lib/routerconsole.jar lib/i2ptunnel.jar lib/org.mortbay.jetty.jar lib/javax.servlet.jar lib/jasper-compiler.jar lib/jasper-runtime.jar lib/commons-logging.jar lib/commons-el.jar lib/wrapper.jar lib/systray.jar lib/systray4j.jar lib/desktopgui.jar" />
|
||||
<attribute name="Class-Path" value="lib/i2p.jar lib/router.jar lib/jbigi.jar lib/BOB.jar lib/sam.jar lib/mstreaming.jar lib/streaming.jar lib/routerconsole.jar lib/i2ptunnel.jar lib/org.mortbay.jetty.jar lib/javax.servlet.jar lib/jasper-compiler.jar lib/jasper-runtime.jar lib/commons-logging.jar lib/commons-el.jar lib/wrapper.jar lib/systray.jar lib/systray4j.jar lib/desktopgui.jar lib/i2psnark.jar lib/jrobin.jar lib/jstl.jar lib/standard.jar lib/jetty-i2p.jar lib/jetty-java5-threadpool.jar lib/jetty-rewrite-handler.jar lib/jetty-sslengine.jar lib/jetty-start.jar lib/jetty-util.jar" />
|
||||
<attribute name="Built-By" value="${build.built-by}" />
|
||||
<attribute name="Build-Date" value="${build.timestamp}" />
|
||||
<attribute name="Base-Revision" value="${workspace.version}" />
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2012-04-20 zzz
|
||||
* Remove search box
|
||||
* Fix i2psnark dir when started from Windows no-wrapper
|
||||
(ticket #627)
|
||||
|
||||
2012-04-14 kytv
|
||||
* Update wrapper to v3.5.14
|
||||
* Update geoip.txt from Maxmind's April 2012 database
|
||||
|
||||
@@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 27;
|
||||
public final static long BUILD = 28;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
||||
Reference in New Issue
Block a user