diff --git a/.idea/libraries/bld.xml b/.idea/libraries/bld.xml
index cf75013..bff4f62 100644
--- a/.idea/libraries/bld.xml
+++ b/.idea/libraries/bld.xml
@@ -2,11 +2,12 @@
-
+
-
+
+
@@ -14,4 +15,4 @@
-
\ No newline at end of file
+
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 9963c9f..1450e81 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,4 +1,3 @@
-
@@ -10,6 +9,11 @@
diff --git a/README.md b/README.md
index 0708889..ee07a6f 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
[](http://opensource.org/licenses/BSD-3-Clause)
[](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)
-[](https://rife2.com/bld)
+[](https://rife2.com/bld)
[](https://github.com/ethauvin/httpstatus/releases/latest)
[](https://oss.sonatype.org/content/repositories/snapshots/net/thauvin/erik/httpstatus/httpstatus/)
[](https://central.sonatype.com/artifact/net.thauvin.erik.httpstatus/httpstatus)
@@ -55,7 +55,7 @@ or
would display on a [501 status code](https://www.rfc-editor.org/rfc/rfc9110.html#name-501-not-implemented):
-```plain
+```console
Not Implemented
```
diff --git a/lib/bld/bld-wrapper.jar b/lib/bld/bld-wrapper.jar
index 752cd19..48bd8ab 100644
Binary files a/lib/bld/bld-wrapper.jar and b/lib/bld/bld-wrapper.jar differ
diff --git a/lib/bld/bld-wrapper.properties b/lib/bld/bld-wrapper.properties
index 8d37a87..a456ca5 100644
--- a/lib/bld/bld-wrapper.properties
+++ b/lib/bld/bld-wrapper.properties
@@ -1,7 +1,7 @@
bld.downloadExtensionJavadoc=false
bld.downloadExtensionSources=true
-bld.extension-pmd=com.uwyn.rife2:bld-pmd:0.9.2
-bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.1-SNAPSHOT
-bld.repositories=MAVEN_LOCAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES,MAVEN_CENTRAL
+bld.extension-pmd=com.uwyn.rife2:bld-pmd:0.9.5
+bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.2
+bld.repositories=MAVEN_CENTRAL,RIFE2_RELEASES,MAVEN_LOCAL,RIFE2_SNAPSHOTS
bld.downloadLocation=
-bld.version=1.7.5
+bld.version=1.8.0
diff --git a/src/bld/java/net/thauvin/erik/httpstatus/HttpStatusBuild.java b/src/bld/java/net/thauvin/erik/httpstatus/HttpStatusBuild.java
index 54a1e11..88657d8 100644
--- a/src/bld/java/net/thauvin/erik/httpstatus/HttpStatusBuild.java
+++ b/src/bld/java/net/thauvin/erik/httpstatus/HttpStatusBuild.java
@@ -63,6 +63,7 @@ public class HttpStatusBuild extends Project {
javaRelease = 17;
downloadSources = true;
+ autoDownloadPurge = true;
repositories = List.of(MAVEN_CENTRAL, SONATYPE_SNAPSHOTS);
scope(compile)
@@ -70,9 +71,9 @@ public class HttpStatusBuild extends Project {
.include(dependency("jakarta.servlet.jsp", "jakarta.servlet.jsp-api", version(3, 1, 1)))
.include(dependency("jakarta.el", "jakarta.el-api", version(5, 0, 1)));
scope(test)
- .include(dependency("org.assertj", "assertj-core", version(3, 24, 2)))
- .include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 10, 0)))
- .include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 0)));
+ .include(dependency("org.assertj", "assertj-core", version(3, 25, 2)))
+ .include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 10, 1)))
+ .include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 1)));
jarOperation().manifestAttribute(Attributes.Name.MAIN_CLASS, pkg + '.' + "Reasons");
@@ -93,11 +94,20 @@ public class HttpStatusBuild extends Project {
.version(version)
.description(description)
.url(url)
- .developer(new PublishDeveloper().id("ethauvin").name("Erik C. Thauvin").email("erik@thauvin.net")
- .url("https://erik.thauvin.net/"))
- .license(new PublishLicense().name("The BSD 3-Clause License")
- .url("http://opensource.org/licenses/BSD-3-Clause"))
- .scm(new PublishScm().connection("scm:git:" + url + ".git")
+ .developer(
+ new PublishDeveloper()
+ .id("ethauvin")
+ .name("Erik C. Thauvin")
+ .email("erik@thauvin.net")
+ .url("https://erik.thauvin.net/")
+ )
+ .license(
+ new PublishLicense()
+ .name("The BSD 3-Clause License")
+ .url("http://opensource.org/licenses/BSD-3-Clause")
+ )
+ .scm(new PublishScm()
+ .connection("scm:git:" + url + ".git")
.developerConnection("scm:git:git@github.com:ethauvin/" + name + ".git")
.url(url))
.signKey(property("sign.key"))
diff --git a/src/main/java/net/thauvin/erik/httpstatus/taglibs/CauseTag.java b/src/main/java/net/thauvin/erik/httpstatus/taglibs/CauseTag.java
index 6d54fe9..58366c1 100644
--- a/src/main/java/net/thauvin/erik/httpstatus/taglibs/CauseTag.java
+++ b/src/main/java/net/thauvin/erik/httpstatus/taglibs/CauseTag.java
@@ -32,11 +32,11 @@
package net.thauvin.erik.httpstatus.taglibs;
-import jakarta.servlet.jsp.JspWriter;
import jakarta.servlet.jsp.PageContext;
-import net.thauvin.erik.httpstatus.Utils;
-
import java.io.IOException;
+import net.thauvin.erik.httpstatus.Utils;
+import jakarta.servlet.jsp.JspWriter;
+
/**
* The <hs:cause>
tag returns the cause (if any) for the current HTTP Status Error Code.
@@ -54,6 +54,8 @@ public class CauseTag extends XmlSupport {
final PageContext pageContext = (PageContext) getJspContext();
final JspWriter out = pageContext.getOut();
+
+
final Throwable cause = pageContext.getErrorData().getThrowable().getCause();
Utils.outWrite(out, getCause(cause), defaultValue, escapeXml);
@@ -72,4 +74,4 @@ public class CauseTag extends XmlSupport {
return null;
}
}
-}
\ No newline at end of file
+}