From 7269f5873f07416ba864d7707d2b0dbe9089b132 Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Tue, 31 Dec 2024 23:17:34 -0500 Subject: [PATCH 1/2] Move new file to path.of to file --- .../src/test/java/waffle/jetty/StartEmbeddedJetty.java | 3 ++- .../src/test/java/waffle/jetty/StartEmbeddedJetty.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/JNA/waffle-jetty-jakarta/src/test/java/waffle/jetty/StartEmbeddedJetty.java b/Source/JNA/waffle-jetty-jakarta/src/test/java/waffle/jetty/StartEmbeddedJetty.java index 424c835809..37b1246796 100644 --- a/Source/JNA/waffle-jetty-jakarta/src/test/java/waffle/jetty/StartEmbeddedJetty.java +++ b/Source/JNA/waffle-jetty-jakarta/src/test/java/waffle/jetty/StartEmbeddedJetty.java @@ -26,6 +26,7 @@ import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; +import java.nio.file.Path; import org.apache.jasper.servlet.JspServlet; import org.eclipse.jetty.ee10.servlet.ServletHolder; @@ -61,7 +62,7 @@ private StartEmbeddedJetty() { public static void main(final String[] args) throws Exception { final String path = "../waffle-demo/waffle-filter"; - final File dir = new File(path); + final File dir = Path.of(path).toFile(); if (!dir.exists()) { throw new FileNotFoundException("Can not find webapp: " + dir.getAbsolutePath()); } diff --git a/Source/JNA/waffle-jetty/src/test/java/waffle/jetty/StartEmbeddedJetty.java b/Source/JNA/waffle-jetty/src/test/java/waffle/jetty/StartEmbeddedJetty.java index c7e26bef94..ede939b266 100644 --- a/Source/JNA/waffle-jetty/src/test/java/waffle/jetty/StartEmbeddedJetty.java +++ b/Source/JNA/waffle-jetty/src/test/java/waffle/jetty/StartEmbeddedJetty.java @@ -26,6 +26,7 @@ import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; +import java.nio.file.Path; import org.apache.jasper.servlet.JspServlet; import org.eclipse.jetty.ee8.servlet.ServletHolder; @@ -61,7 +62,7 @@ private StartEmbeddedJetty() { public static void main(final String[] args) throws Exception { final String path = "../waffle-demo/waffle-filter"; - final File dir = new File(path); + final File dir = Path.of(path).toFile(); if (!dir.exists()) { throw new FileNotFoundException("Can not find webapp: " + dir.getAbsolutePath()); } From 541a8714bba650a643d2e352b9875356837fe465 Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Tue, 31 Dec 2024 23:28:50 -0500 Subject: [PATCH 2/2] [ci] Update readme --- Source/JNA/src/site/markdown/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/JNA/src/site/markdown/README.md b/Source/JNA/src/site/markdown/README.md index 2c62e295c6..07362094fd 100644 --- a/Source/JNA/src/site/markdown/README.md +++ b/Source/JNA/src/site/markdown/README.md @@ -7,7 +7,7 @@ WAFFLE - Windows Authentication Framework [![Coverage Status Sonar](https://sonarcloud.io/api/project_badges/measure?project=Waffle_waffle&metric=coverage)](https://sonarcloud.io/component_measures?id=Waffle_waffle&metric=coverage) [![Coverage Status Coveralls](https://coveralls.io/repos/Waffle/waffle/badge.svg?branch=master&service=github)](https://coveralls.io/github/Waffle/waffle?branch=master) [![Maven central](https://maven-badges.herokuapp.com/maven-central/com.github.waffle/waffle-jna/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.waffle/waffle-jna) -[![releases](https://img.shields.io/github/v/release/Waffle/waffle)](https://github.com/Waffle/waffle/releases/tag/waffle-parent-3.4.0) +[![releases](https://img.shields.io/github/v/release/Waffle/waffle)](https://github.com/Waffle/waffle/releases/tag/waffle-parent-3.5.0) [![MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Project Stats](https://www.openhub.net/p/waffle/widgets/project_thin_badge.gif)](https://www.openhub.net/p/waffle) [![Github All Releases](https://img.shields.io/github/downloads/Waffle/waffle/total.svg)](https://github.com/Waffle/waffle/) @@ -29,7 +29,7 @@ Sites Essentials ---------- -* [Download Version 3.4.0](https://search.maven.org/remotecontent?filepath=com/github/waffle/waffle-distro/3.4.0/waffle-distro-3.4.0-distro.zip) +* [Download Version 3.5.0](https://search.maven.org/remotecontent?filepath=com/github/waffle/waffle-distro/3.5.0/waffle-distro-3.5.0-distro.zip) * [Waffle in Maven Central](https://search.maven.org/search?q=waffle) * [Waffle Snapshots](https://oss.sonatype.org/content/repositories/snapshots/com/github/waffle/) * [Get Waffle To Work in Tomcat, Jetty, WebSphere, etc.](Docs/ServletSingleSignOnSecurityFilter.md)