diff --git a/apps/BOB/src/net/i2p/BOB/BOB.java b/apps/BOB/src/net/i2p/BOB/BOB.java index a0cc6224fbfedc6041992860aff52c01eaa88bbb..97dfc904e962777aa494e373b28aea86fe4f0cd5 100644 --- a/apps/BOB/src/net/i2p/BOB/BOB.java +++ b/apps/BOB/src/net/i2p/BOB/BOB.java @@ -38,6 +38,7 @@ import net.i2p.I2PAppContext; import net.i2p.app.*; import net.i2p.client.I2PClient; import net.i2p.util.I2PAppThread; +import net.i2p.util.Log; import net.i2p.util.PortMapper; import net.i2p.util.SimpleTimer2; @@ -111,7 +112,9 @@ import net.i2p.util.SimpleTimer2; * BOB, main command socket listener, launches the command parser engine. * * @author sponge + * @deprecated Please port applications to SAMv3 */ +@Deprecated public class BOB implements Runnable, ClientApp { public final static String PROP_CONFIG_LOCATION = "BOB.config"; @@ -140,6 +143,7 @@ public class BOB implements Runnable, ClientApp { private volatile ServerSocket listener; private volatile Thread _runner; + private volatile boolean _warned; /** * Stop BOB gracefully @@ -342,6 +346,12 @@ public class BOB implements Runnable, ClientApp { } if (g) { + if (!_warned) { + _warned = true; + String s = "BOB is deprecated. Please port applications to SAMv3."; + _context.logManager().getLog(BOB.class).logAlways(Log.WARN, s); + _log.warn(s); + } DoCMDS conn_c = new DoCMDS(spin, lock, server, props, database, _log); Thread t = new I2PAppThread(conn_c); t.setName("BOB.DoCMDS " + i); diff --git a/apps/BOB/src/net/i2p/BOB/package.html b/apps/BOB/src/net/i2p/BOB/package.html index f028c94398690cc446c4931a47e15920cf00d508..12f90dc8b182e7847bb575e4b9eb65e66a1561d4 100644 --- a/apps/BOB/src/net/i2p/BOB/package.html +++ b/apps/BOB/src/net/i2p/BOB/package.html @@ -1,5 +1,5 @@ <html> <body> - <p>BOB, the Basic Open Bridge, allows TCP applications to talk over I2P.</p> + <p>BOB, the Basic Open Bridge, allows TCP applications to talk over I2P - DEPRECATED - Please port applications to SAMv3.</p> </body> </html>