From 06e20520bd59ed1f4932b8785abd8ba6eff3b4e5 Mon Sep 17 00:00:00 2001 From: Cheryl King Date: Fri, 3 May 2024 14:24:50 -0500 Subject: [PATCH] Handle Java version above 8 for compileJSPs task --- src/main/java/io/openliberty/tools/ant/jsp/CompileJSPs.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/openliberty/tools/ant/jsp/CompileJSPs.java b/src/main/java/io/openliberty/tools/ant/jsp/CompileJSPs.java index e5a293ea..6a34be9a 100644 --- a/src/main/java/io/openliberty/tools/ant/jsp/CompileJSPs.java +++ b/src/main/java/io/openliberty/tools/ant/jsp/CompileJSPs.java @@ -1,5 +1,5 @@ /** - * (C) Copyright IBM Corporation 2014, 2020. + * (C) Copyright IBM Corporation 2014, 2024. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -384,7 +384,7 @@ private void writeServerXML(File serverDir) throws FileNotFoundException { ps.println(""); } ps.println(""); - ps.print(""); + ps.print(""); ps.println(""); ps.println(""); ps.println(""); @@ -501,6 +501,8 @@ public void setSource(String src) { source = "17"; } else if ("1.8".equals(src) || "8".equals(src)) { source = "18"; + } else { // for Java 11 and beyond + source = src; } }