freemarker/jsp-api.patch

79 lines
3.3 KiB
Diff
Raw Permalink Normal View History

diff --git a/build.xml b/build.xml
index 92033ac..814774d 100644
--- a/build.xml
+++ b/build.xml
@@ -274,35 +274,21 @@
2020-08-19 14:08:14 +08:00
verify="yes" stubversion="1.2"
/>
- <ivy:cachepath conf="build.jsp2.0" pathid="ivy.dep.jsp2.0" />
+ <ivy:cachepath conf="build.jsp2.1" pathid="ivy.dep.jsp2.1" />
<javac srcdir="build/src-main-java-filtered" destdir="build/classes" deprecation="off"
2022-06-01 19:38:00 +08:00
debug="on" optimize="off" target="1.7" source="1.7" encoding="utf-8"
2020-08-19 14:08:14 +08:00
includeantruntime="false"
- classpathref="ivy.dep.jsp2.0"
+ classpathref="ivy.dep.jsp2.1"
2022-06-01 19:38:00 +08:00
bootclasspath="${boot.classpath.j2se1.7}"
2020-08-19 14:08:14 +08:00
includes="
freemarker/ext/jsp/**,
freemarker/ext/servlet/**,
freemarker/cache/WebappTemplateLoader.java"
excludes="
- freemarker/ext/jsp/_FreeMarkerPageContext21.java,
- freemarker/ext/jsp/FreeMarkerJspFactory21.java,
- freemarker/ext/jsp/FreeMarkerJspApplicationContext.java"
+ freemarker/ext/jsp/_FreeMarkerPageContext2.java,
+ freemarker/ext/jsp/FreeMarkerJspFactory2.java"
/>
2020-08-19 14:08:14 +08:00
- <!-- There's no build.jsp2.0, as those classes are part of the common build subset. -->
-
2020-08-19 14:08:14 +08:00
- <ivy:cachepath conf="build.jsp2.1" pathid="ivy.dep.jsp2.1" />
- <javac srcdir="build/src-main-java-filtered" destdir="build/classes" deprecation="off"
2022-06-01 19:38:00 +08:00
- debug="on" optimize="off" target="1.7" source="1.7" encoding="utf-8"
2020-08-19 14:08:14 +08:00
- includeantruntime="false"
- classpathref="ivy.dep.jsp2.1"
2022-06-01 19:38:00 +08:00
- bootclasspath="${boot.classpath.j2se1.7}"
2020-08-19 14:08:14 +08:00
- includes="
- freemarker/ext/jsp/_FreeMarkerPageContext21.java,
- freemarker/ext/jsp/FreeMarkerJspFactory21.java,
- freemarker/ext/jsp/FreeMarkerJspApplicationContext.java"
- />
2020-08-19 14:08:14 +08:00
<ivy:cachepath conf="build.jython2.0" pathid="ivy.dep.jython2.0" />
<javac srcdir="build/src-main-java-filtered" destdir="build/classes" deprecation="off"
diff --git a/ivy.xml b/ivy.xml
index dad9ff2..065a3ba 100644
--- a/ivy.xml
+++ b/ivy.xml
2020-08-19 14:08:14 +08:00
@@ -45,9 +45,6 @@
description="for building FreeMarker without dependencies that optinal dependencies"
/>
- <conf name="build.jsp2.0" extends="build.base"
- description="for building FreeMarker with JSP 2.0 support"
- />
<conf name="build.jsp2.1" extends="build.base"
description="for building FreeMarker with JSP 2.1 support"
/>
@@ -104,9 +101,7 @@
<exclude org="xml-apis" module="xml-apis" />
</dependency>
- <dependency org="javax.servlet.jsp" name="jsp-api" rev="2.0" conf="build.jsp2.0->default" />
- <dependency org="javax.servlet" name="servlet-api" rev="2.4" conf="build.jsp2.0->default" />
- <dependency org="javax.servlet.jsp" name="jsp-api" rev="2.1" conf="build.jsp2.1->default" />
+ <dependency org="javax.servlet" name="jsp-api" rev="2.1" conf="build.jsp2.1->default" />
<dependency org="javax.servlet" name="servlet-api" rev="2.5" conf="build.jsp2.1->default" />
<dependency org="rhino" name="js" rev="1.6R1" conf="build.base->default" />
@@ -183,7 +178,7 @@
<!-- Ensure that JSP versions don't accidentally hide each-other -->
- <conflict org="javax.servlet.jsp" module="jsp-api" manager="strict" />
+ <conflict org="javax.servlet" module="jsp-api" manager="strict" />
</dependencies>
</ivy-module>