Managed to get plugin installing correctly.

This commit is contained in:
dev
2011-06-10 11:38:58 +00:00
parent 153bb23f0c
commit 7d36216ab0
8 changed files with 13 additions and 13 deletions

View File

@ -11,7 +11,7 @@
<delete file="plugin/i2ptunnel.config" />
<!-- get version number -->
<buildnumber file="scripts/build.number" />
<property name="release.number" value="0.0" />
<property name="release.number" value="0.0.0" />
<!-- make the update xpi2p -->
<!-- this contains everything except i2ptunnel.config -->

View File

@ -1,8 +1,8 @@
clientApp.0.main=net.i2p.zzzot.ZzzOTController
clientApp.0.name=ZzzOT
clientApp.0.main=net.i2p.i2pcontrol.I2PControlController
clientApp.0.name=I2PControl
clientApp.0.args=-d $PLUGIN start
clientApp.0.stopargs=-d $PLUGIN stop
clientApp.0.delay=15
clientApp.0.startOnLoad=true
# we also use i2p.jar and i2ptunnel.jar, they are in the standard router classpath
clientApp.0.classpath=$PLUGIN/lib/zzzot.jar,$I2P/lib/i2psnark.jar
clientApp.0.classpath=$PLUGIN/lib/I2PControl.jar,$I2P/lib/i2psnark.jar

View File

@ -1,7 +1,7 @@
name=I2PControl
signer=dev@robertfoss.se
consoleLinkName=I2PControl
consoleLinkURL=http://127.0.0.1:7662/I2PControl/index.jsp
consoleLinkURL=http://127.0.0.1:7657/I2PControl/index.jsp
description=Remote
author=hottuna
license=Apache 2.0

View File

@ -47,8 +47,8 @@ import org.mortbay.jetty.Server;
*
* @author zzz
*/
public class ZzzOTController {
private static final Log _log = I2PAppContext.getGlobalContext().logManager().getLog(ZzzOTController.class);
public class I2PControlController {
private static final Log _log = I2PAppContext.getGlobalContext().logManager().getLog(I2PControlController.class);
private static Server _server;
private static TunnelController _tunnel;
private static ZzzOT _zzzot;

View File

@ -155,7 +155,7 @@
} catch (NumberFormatException nfe) {};
}
Torrents torrents = ZzzOTController.getTorrents();
Torrents torrents = I2PControlController.getTorrents();
Map<String, Object> m = new HashMap();
if (fail) {
m.put("failure reason", msg);

View File

@ -1,4 +1,4 @@
<%@page import="net.i2p.i2pcontrol.ZzzOTController" %>
<%@page import="net.i2p.i2pcontrol.I2PControlController" %>
<html>
<head>
<title>I2PControl - Remote Control Server</title>
@ -7,8 +7,8 @@
I2PControl
<p>
<table cellspacing="8">
<tr><td>Torrents:<td align="right"><%=ZzzOTController.getTorrents().size()%>
<tr><td>Peers:<td align="right"><%=ZzzOTController.getTorrents().countPeers()%>
<tr><td>Torrents:<td align="right"><%=I2PControlController.getTorrents().size()%>
<tr><td>Peers:<td align="right"><%=I2PControlController.getTorrents().countPeers()%>
</table>
</body>
</html>

View File

@ -56,7 +56,7 @@
}
}
Torrents torrents = ZzzOTController.getTorrents();
Torrents torrents = I2PControlController.getTorrents();
// build 3-level dictionary
Map<String, Object> m = new HashMap();

View File

@ -54,7 +54,7 @@
out.println(Base64.encode(me + ' ' + US_MINUTES + " seedless"));
out.println(Base64.encode(me + ' ' + US_MINUTES + " eepsite"));
// all the peers
Torrents torrents = ZzzOTController.getTorrents();
Torrents torrents = I2PControlController.getTorrents();
for (InfoHash ihash : torrents.keySet()) {
Peers peers = torrents.get(ihash);
if (peers == null)