Skip to content

Commit

Permalink
upgrade to netty/4.1.116
Browse files Browse the repository at this point in the history
  • Loading branch information
pquiring committed Jan 14, 2025
1 parent 68e2e69 commit 8d61440
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 8 deletions.
6 changes: 5 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@
<antcall target="jar-xmlgraphics-commons"/>
<antcall target="jar-xml-apis-ext"/>
<antcall target="jar-commons-lang3"/>
<antcall target="jar-netty-all"/>
<antcall target="jar-netty-common"/>
<antcall target="jar-netty-buffer"/>
<antcall target="jar-netty-transport"/>
<antcall target="jar-netty-handler"/>
<antcall target="jar-netty-codec"/>
<antcall target="jar-plc4j-api"/>
<antcall target="jar-plc4j-spi"/>
<antcall target="jar-plc4j-transport-tcp"/>
Expand Down
32 changes: 28 additions & 4 deletions get-jars.xml
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,29 @@
<maven name="xml-apis-ext" path="xml-apis" version="${xml-apis-ext-version}"/>
</target>

<available property="have-netty-all" file="${lib}/netty-all-${netty-version}.jar"/>
<target name="get-netty-all" unless="have-netty-all">
<maven name="netty-all" path="io/netty" version="${netty-version}"/>
<available property="have-netty-common" file="${lib}/netty-common-${netty-version}.jar"/>
<target name="get-netty-common" unless="have-netty-common">
<maven name="netty-common" path="io/netty" version="${netty-version}"/>
</target>

<available property="have-netty-buffer" file="${lib}/netty-buffer-${netty-version}.jar"/>
<target name="get-netty-buffer" unless="have-netty-buffer">
<maven name="netty-buffer" path="io/netty" version="${netty-version}"/>
</target>

<available property="have-netty-transport" file="${lib}/netty-transport-${netty-version}.jar"/>
<target name="get-netty-transport" unless="have-netty-transport">
<maven name="netty-transport" path="io/netty" version="${netty-version}"/>
</target>

<available property="have-netty-handler" file="${lib}/netty-handler-${netty-version}.jar"/>
<target name="get-netty-handler" unless="have-netty-handler">
<maven name="netty-handler" path="io/netty" version="${netty-version}"/>
</target>

<available property="have-netty-codec" file="${lib}/netty-codec-${netty-version}.jar"/>
<target name="get-netty-codec" unless="have-netty-codec">
<maven name="netty-codec" path="io/netty" version="${netty-version}"/>
</target>

<available property="have-plc4j-api" file="${lib}/plc4j-api-${plc4j-version}.jar"/>
Expand Down Expand Up @@ -279,7 +299,11 @@
<antcall target="get-batik-all"/>
<antcall target="get-xmlgraphics-commons"/>
<antcall target="get-xml-apis-ext"/>
<antcall target="get-netty-all"/>
<antcall target="get-netty-common"/>
<antcall target="get-netty-buffer"/>
<antcall target="get-netty-transport"/>
<antcall target="get-netty-handler"/>
<antcall target="get-netty-codec"/>
<antcall target="get-plc4j-api"/>
<antcall target="get-plc4j-spi"/>
<antcall target="get-plc4j-transport-tcp"/>
Expand Down
20 changes: 18 additions & 2 deletions install-jars.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,24 @@
<copyjar name="xml-apis-ext" version="${xml-apis-ext-version}" path="${jarpath}"/>
</target>

<target name="jar-netty-all">
<copyjar name="netty-all" version="${netty-version}" path="${jarpath}"/>
<target name="jar-netty-common">
<copyjar name="netty-common" version="${netty-version}" path="${jarpath}"/>
</target>

<target name="jar-netty-buffer">
<copyjar name="netty-buffer" version="${netty-version}" path="${jarpath}"/>
</target>

<target name="jar-netty-transport">
<copyjar name="netty-transport" version="${netty-version}" path="${jarpath}"/>
</target>

<target name="jar-netty-handler">
<copyjar name="netty-handler" version="${netty-version}" path="${jarpath}"/>
</target>

<target name="jar-netty-codec">
<copyjar name="netty-codec" version="${netty-version}" path="${jarpath}"/>
</target>

<target name="jar-plc4j-api">
Expand Down
1 change: 1 addition & 0 deletions src/javaforce/controls/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public boolean connect(String url) {
if (!netty) {
netty = true;
JFLog.log("Disabling netty unsafe usage!");
System.setProperty("org.jboss.netty.debug", "true");
System.setProperty("io.netty.allocator.numDirectArenas", "0");
System.setProperty("io.netty.noPreferDirect", "true");
System.setProperty("io.netty.noUnsafe", "true");
Expand Down
2 changes: 1 addition & 1 deletion versions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
<property name="xmlgraphics-commons-version" value="2.8"/>
<property name="xml-apis-ext-version" value="1.3.04"/>
<property name="plc4j-version" value="0.12.0"/>
<property name="netty-version" value="4.1.63.Final"/>
<property name="netty-version" value="4.1.116.Final"/>
</project>

0 comments on commit 8d61440

Please sign in to comment.