Update upstream. Fixup patch files for new log module and other changes from upstream. Update netty to 4.1.3.Final

This commit is contained in:
Troy Frew 2016-07-16 21:12:39 -04:00
parent 1056d858fa
commit f04680f98e
7 changed files with 97 additions and 59 deletions

@ -1 +1 @@
Subproject commit 1250088f98fc59d28736932fac88586594329ec2
Subproject commit c43f25e23b68f684e1ed06ee42e9d0e6cffa62b6

View File

@ -1,4 +1,4 @@
From e719f30fe98f178110c6a8343c389829e93c4f9f Mon Sep 17 00:00:00 2001
From 87f0343cc2c61facdaa577f2ae03c5297db9f905 Mon Sep 17 00:00:00 2001
From: Tux <write@imaginarycode.com>
Date: Thu, 19 May 2016 10:33:31 -0700
Subject: [PATCH] POM Changes
@ -235,6 +235,36 @@ index 6688153..f9615cf 100644
+ <name>Waterfall-Event</name>
+ <description>Generic java event dispatching API intended for use with Waterfall.</description>
</project>
diff --git a/log/pom.xml b/log/pom.xml
index b970df0..081923b 100644
--- a/log/pom.xml
+++ b/log/pom.xml
@@ -4,19 +4,19 @@
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>net.md-5</groupId>
- <artifactId>bungeecord-parent</artifactId>
+ <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-parent</artifactId>
<version>1.10-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
- <groupId>net.md-5</groupId>
- <artifactId>bungeecord-log</artifactId>
+ <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-log</artifactId>
<version>1.10-SNAPSHOT</version>
<packaging>jar</packaging>
- <name>BungeeCord-Log</name>
- <description>Simplistic and performant java.util.Logger based logger and console API designed for use with BungeeCord and Minecraft related applications.</description>
+ <name>Waterfall-Log</name>
+ <description>Simplistic and performant java.util.Logger based logger and console API designed for use with Waterfall and Minecraft related applications.</description>
<dependencies>
<dependency>
diff --git a/module/cmd-alert/pom.xml b/module/cmd-alert/pom.xml
index 3156334..0c076f9 100644
--- a/module/cmd-alert/pom.xml
@ -445,7 +475,7 @@ index a3bd632..a2b422c 100644
<dependencies>
<dependency>
diff --git a/pom.xml b/pom.xml
index 299f6fa..309f43d 100644
index 53d3db1..ead929e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,18 +9,18 @@
@ -490,7 +520,7 @@ index 299f6fa..309f43d 100644
</developer>
</developers>
@@ -50,24 +56,36 @@
@@ -51,24 +57,36 @@
</modules>
<scm>
@ -526,7 +556,7 @@ index 299f6fa..309f43d 100644
+
<properties>
<build.number>unknown</build.number>
<netty.version>4.0.33.Final</netty.version>
<netty.version>4.0.39.Final</netty.version>
- <maven.compiler.source>1.7</maven.compiler.source>
- <maven.compiler.target>1.7</maven.compiler.target>
+ <!-- Require Java 8 -->
@ -535,7 +565,7 @@ index 299f6fa..309f43d 100644
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@@ -116,36 +134,14 @@
@@ -117,36 +135,14 @@
</execution>
</executions>
</plugin>
@ -575,7 +605,7 @@ index 299f6fa..309f43d 100644
</plugin>
</plugins>
<pluginManagement>
@@ -180,4 +176,49 @@
@@ -181,4 +177,49 @@
</plugins>
</pluginManagement>
</build>
@ -663,7 +693,7 @@ index bac4690..7a74143 100644
<scope>compile</scope>
</dependency>
diff --git a/proxy/pom.xml b/proxy/pom.xml
index 700e327..9d792b5 100644
index 55bba90..f7277d6 100644
--- a/proxy/pom.xml
+++ b/proxy/pom.xml
@@ -4,18 +4,18 @@
@ -690,7 +720,7 @@ index 700e327..9d792b5 100644
<description>Proxy component of the Elastic Portal Suite</description>
<dependencies>
@@ -39,26 +39,26 @@
@@ -33,32 +33,32 @@
<scope>compile</scope>
</dependency>
<dependency>
@ -703,6 +733,14 @@ index 700e327..9d792b5 100644
</dependency>
<dependency>
- <groupId>net.md-5</groupId>
- <artifactId>bungeecord-log</artifactId>
+ <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-log</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
- <groupId>net.md-5</groupId>
- <artifactId>bungeecord-native</artifactId>
+ <groupId>io.github.waterfallmc</groupId>
+ <artifactId>waterfall-native</artifactId>
@ -767,5 +805,5 @@ index 8df9b12..1d76633 100644
<scope>compile</scope>
</dependency>
--
2.8.3
2.7.4 (Apple Git-66)

View File

@ -1,4 +1,4 @@
From 3daf09a3028b210960c6e169859f3d81513d93b2 Mon Sep 17 00:00:00 2001
From 22e693910307942ab8c324265daca16231ecb8e6 Mon Sep 17 00:00:00 2001
From: Tux <write@imaginarycode.com>
Date: Thu, 19 May 2016 11:28:45 -0700
Subject: [PATCH] Rename references from BungeeCord to Waterfall
@ -26,6 +26,19 @@ index 3c1bbe9..5e1773c 100644
bungee.start();
if ( !options.has( "noconsole" ) )
diff --git a/log/src/main/java/net/md_5/bungee/log/LogDispatcher.java b/log/src/main/java/net/md_5/bungee/log/LogDispatcher.java
index f1ccd4f..d703d6d 100644
--- a/log/src/main/java/net/md_5/bungee/log/LogDispatcher.java
+++ b/log/src/main/java/net/md_5/bungee/log/LogDispatcher.java
@@ -12,7 +12,7 @@ public class LogDispatcher extends Thread
public LogDispatcher(BungeeLogger logger)
{
- super( "BungeeCord Logger Thread" );
+ super( "Waterfall Logger Thread" );
this.logger = logger;
}
diff --git a/proxy/src/main/java/Test.java b/proxy/src/main/java/Test.java
index 9d51608..446dfe2 100644
--- a/proxy/src/main/java/Test.java
@ -40,7 +53,7 @@ index 9d51608..446dfe2 100644
while ( bungee.isRunning )
diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
index ac08d8e..8ce4ced 100644
index 9825b99..bed662d 100644
--- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
+++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
@@ -172,7 +172,7 @@ public class BungeeCord extends ProxyServer
@ -100,19 +113,6 @@ index c7547c7..82ff91a 100644
boolean restricted = get( "restricted", false, val );
InetSocketAddress address = Util.getAddr( addr );
ServerInfo info = ProxyServer.getInstance().constructServerInfo( name, address, motd, restricted );
diff --git a/proxy/src/main/java/net/md_5/bungee/log/LogDispatcher.java b/proxy/src/main/java/net/md_5/bungee/log/LogDispatcher.java
index f1ccd4f..d703d6d 100644
--- a/proxy/src/main/java/net/md_5/bungee/log/LogDispatcher.java
+++ b/proxy/src/main/java/net/md_5/bungee/log/LogDispatcher.java
@@ -12,7 +12,7 @@ public class LogDispatcher extends Thread
public LogDispatcher(BungeeLogger logger)
{
- super( "BungeeCord Logger Thread" );
+ super( "Waterfall Logger Thread" );
this.logger = logger;
}
--
2.7.4 (Apple Git-66)

View File

@ -1,4 +1,4 @@
From dedf4862695f0f2aae5d43f3acb1ac2f7e0104cb Mon Sep 17 00:00:00 2001
From 9815eaa1ddf85d5d73c6b2b2b5b67d8d8e6d3a59 Mon Sep 17 00:00:00 2001
From: Techcable <Techcable@techcable.net>
Date: Tue, 3 May 2016 20:31:52 -0700
Subject: [PATCH] Upgrade to netty 4.1
@ -7,15 +7,15 @@ Don't access a ByteBuf's underlying array with ByteBuf.array()
- ByteBuf.array() returns the underlying array storage, and does *not* return a view of the buffer as an array
diff --git a/pom.xml b/pom.xml
index 309f43d..6fe9ef4 100644
index ead929e..bd19538 100644
--- a/pom.xml
+++ b/pom.xml
@@ -82,7 +82,7 @@
@@ -83,7 +83,7 @@
<properties>
<build.number>unknown</build.number>
- <netty.version>4.0.33.Final</netty.version>
+ <netty.version>4.1.0.CR7</netty.version>
- <netty.version>4.0.39.Final</netty.version>
+ <netty.version>4.1.3.Final</netty.version>
<!-- Require Java 8 -->
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
@ -72,27 +72,27 @@ index bbaef39..e1344b3 100644
* Allow this packet to be sent as an "extended" packet.
*/
diff --git a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java
index dd00192..e941803 100644
index 977b3de..e941803 100644
--- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java
+++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java
@@ -199,7 +199,7 @@ public class ServerConnector extends PacketHandler
ByteBuf brand = ByteBufAllocator.DEFAULT.heapBuffer();
DefinedPacket.writeString( bungee.getName() + " (" + bungee.getVersion() + ")", brand );
- user.unsafe().sendPacket( new PluginMessage( "MC|Brand", brand.array().clone(), handshakeHandler.isServerForge() ) );
- user.unsafe().sendPacket( new PluginMessage( "MC|Brand", DefinedPacket.readArray( brand ), handshakeHandler.isServerForge() ) );
+ user.unsafe().sendPacket( new PluginMessage( "MC|Brand", brand, handshakeHandler.isServerForge() ) );
brand.release();
} else
{
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java
index cb9dbaf..2fcc7db 100644
index 3daab36..2fcc7db 100644
--- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java
+++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java
@@ -235,7 +235,7 @@ public class DownstreamBridge extends PacketHandler
brand.release();
brand = ByteBufAllocator.DEFAULT.heapBuffer();
DefinedPacket.writeString( bungee.getName() + " (" + bungee.getVersion() + ")" + " <- " + serverBrand, brand );
- pluginMessage.setData( brand.array().clone() );
- pluginMessage.setData( DefinedPacket.readArray( brand ) );
+ pluginMessage.setData( brand );
brand.release();
// changes in the packet are ignored so we need to send it manually

View File

@ -1,22 +1,22 @@
From 8a70c2911d76569ad26348f69161a8d425b8999d Mon Sep 17 00:00:00 2001
From 150ebe200bbed2b5822168b258f8b6443c8c6e89 Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Fri, 11 Sep 2015 23:50:52 -0400
Subject: [PATCH] Allow configuration of the log file path/filename
diff --git a/proxy/src/main/java/net/md_5/bungee/log/BungeeLogger.java b/proxy/src/main/java/net/md_5/bungee/log/BungeeLogger.java
index 94e924b..cde3194 100644
--- a/proxy/src/main/java/net/md_5/bungee/log/BungeeLogger.java
+++ b/proxy/src/main/java/net/md_5/bungee/log/BungeeLogger.java
@@ -27,7 +27,7 @@ public class BungeeLogger extends Logger
diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
index 177f4d7..4e7702bd 100644
--- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
+++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
@@ -206,7 +206,7 @@ public class BungeeCord extends ProxyServer
consoleReader = new ConsoleReader();
consoleReader.setExpandEvents( false );
try
{
- FileHandler fileHandler = new FileHandler( "proxy.log", 1 << 24, 8, true );
+ FileHandler fileHandler = new FileHandler( System.getProperty("bungee.log-file", "proxy.log"), 1 << 24, 8, true );
fileHandler.setFormatter( formatter );
addHandler( fileHandler );
- logger = new BungeeLogger( "BungeeCord", "proxy.log", consoleReader );
+ logger = new BungeeLogger( "BungeeCord", System.getProperty("bungee.log-file", "proxy.log"), consoleReader );
System.setErr( new PrintStream( new LoggingOutputStream( logger, Level.SEVERE ), true ) );
System.setOut( new PrintStream( new LoggingOutputStream( logger, Level.INFO ), true ) );
--
2.8.3
2.7.4 (Apple Git-66)

View File

@ -1,23 +1,23 @@
From 585b5449ed9e6be1f52a33e6eb19dd9ed7a5a41e Mon Sep 17 00:00:00 2001
From 122422dc3cd5b263372cd535c229ed716a5fc9f2 Mon Sep 17 00:00:00 2001
From: Tux <write@imaginarycode.com>
Date: Sun, 14 Feb 2016 01:03:27 -0500
Subject: [PATCH] Reduce max log size to 8MB and don't append to existing log
files
diff --git a/proxy/src/main/java/net/md_5/bungee/log/BungeeLogger.java b/proxy/src/main/java/net/md_5/bungee/log/BungeeLogger.java
index cde3194..54275f6 100644
--- a/proxy/src/main/java/net/md_5/bungee/log/BungeeLogger.java
+++ b/proxy/src/main/java/net/md_5/bungee/log/BungeeLogger.java
diff --git a/log/src/main/java/net/md_5/bungee/log/BungeeLogger.java b/log/src/main/java/net/md_5/bungee/log/BungeeLogger.java
index 9598fff..2a2e0ed 100644
--- a/log/src/main/java/net/md_5/bungee/log/BungeeLogger.java
+++ b/log/src/main/java/net/md_5/bungee/log/BungeeLogger.java
@@ -27,7 +27,7 @@ public class BungeeLogger extends Logger
try
{
- FileHandler fileHandler = new FileHandler( System.getProperty("bungee.log-file", "proxy.log"), 1 << 24, 8, true );
+ FileHandler fileHandler = new FileHandler( System.getProperty("bungee.log-file", "proxy.log"), 1 << 23, 8, false );
- FileHandler fileHandler = new FileHandler( filePattern, 1 << 24, 8, true );
+ FileHandler fileHandler = new FileHandler( filePattern, 1 << 23, 8, false );
fileHandler.setFormatter( formatter );
addHandler( fileHandler );
--
2.8.3
2.7.4 (Apple Git-66)

View File

@ -1,11 +1,11 @@
From 5c2ffee089e1c972084acee916d54c5f8802bb1f Mon Sep 17 00:00:00 2001
From f2c7fc036031311e09d1aad4b28c227993bf6fc5 Mon Sep 17 00:00:00 2001
From: DoctorDark <doctordark11@gmail.com>
Date: Sun, 14 Feb 2016 15:54:40 +0000
Subject: [PATCH] Allow the console to tab complete commands
diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
index d0739c1..fc5ca3a 100644
index f676f0e..5600b70 100644
--- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
+++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
@@ -205,6 +205,7 @@ public class BungeeCord extends ProxyServer
@ -14,7 +14,7 @@ index d0739c1..fc5ca3a 100644
consoleReader.setExpandEvents( false );
+ consoleReader.addCompleter( new ConsoleCommandCompleter( this ) );
logger = new BungeeLogger( this );
logger = new BungeeLogger( "BungeeCord", System.getProperty("bungee.log-file", "proxy.log"), consoleReader );
System.setErr( new PrintStream( new LoggingOutputStream( logger, Level.SEVERE ), true ) );
diff --git a/proxy/src/main/java/net/md_5/bungee/ConsoleCommandCompleter.java b/proxy/src/main/java/net/md_5/bungee/ConsoleCommandCompleter.java
new file mode 100644
@ -95,5 +95,5 @@ index 0000000..455b078
+ }
+}
--
2.8.3
2.7.4 (Apple Git-66)