Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
5fd38241
Commit
5fd38241
authored
Jan 05, 2016
by
Dave Cridland
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #485 from guusdk/OF-998
OF-998: Ant should resolve DTDs locally
parents
20eb8c48
d3f242e7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1042 additions
and
0 deletions
+1042
-0
build.xml
build/build.xml
+20
-0
web-app_2_3.dtd
build/lib/ant/web-app_2_3.dtd
+1022
-0
No files found.
build/build.xml
View file @
5fd38241
...
@@ -129,6 +129,23 @@
...
@@ -129,6 +129,23 @@
<fileset
dir=
"${ant.home}/lib"
includes=
"ant.jar"
/>
<fileset
dir=
"${ant.home}/lib"
includes=
"ant.jar"
/>
</path>
</path>
<!-- Reference DTDs and XSDs on the classpath, to prevent them from being looked up online. -->
<xmlcatalog
id=
"dtds"
>
<!-- Provided on the classpath (by Jetty/Jasper) -->
<entity
publicId=
"http://java.sun.com/xml/ns/j2ee"
location=
"javax/servlet/jsp/resources/jsp_2_0.xsd"
/>
<entity
publicId=
"http://java.sun.com/xml/ns/javaee"
location=
"javax/servlet/jsp/resources/jsp_2_1.xsd"
/>
<entity
publicId=
"http://java.sun.com/xml/ns/javaee"
location=
"javax/servlet/jsp/resources/jsp_2_2.xsd"
/>
<entity
publicId=
"http://xmlns.jcp.org/xml/ns/javaee"
location=
"javax/servlet/jsp/resources/jsp_2_3.xsd"
/>
<entity
publicId=
"http://java.sun.com/JSP/Page"
location=
"javax/servlet/jsp/resources/jspxml_2_0.xsd"
/>
<entity
publicId=
"http://java.sun.com/xml/ns/j2ee"
location=
"javax/servlet/jsp/resources/web-jsptaglibrary_2_0.xsd"
/>
<entity
publicId=
"http://java.sun.com/xml/ns/javaee"
location=
"javax/servlet/jsp/resources/web-jsptaglibrary_2_1.xsd"
/>
<dtd
publicId=
"http://java.sun.com/JSP/Page"
location=
"javax/servlet/jsp/resources/jspxml_2_0.dtd"
/>
<dtd
publicId=
"-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
location=
"javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd"
/>
<!-- Provided in the lib folder -->
<dtd
publicId=
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
location=
"${lib.ant.dir}/web-app_2_3.dtd"
/>
</xmlcatalog>
<!-- ======================================================================================= -->
<!-- ======================================================================================= -->
<!-- GLOBAL TASKDEFs -->
<!-- GLOBAL TASKDEFs -->
<!-- ======================================================================================= -->
<!-- ======================================================================================= -->
...
@@ -390,6 +407,7 @@
...
@@ -390,6 +407,7 @@
<for list="${dirlist}" param="plugin" trim="true">
<for list="${dirlist}" param="plugin" trim="true">
<sequential>
<sequential>
<xmltask source="${plugin.src.dir}/@{plugin}/plugin.xml" dest="${plugin.src.dir}/@{plugin}/plugins2.xml">
<xmltask source="${plugin.src.dir}/@{plugin}/plugin.xml" dest="${plugin.src.dir}/@{plugin}/plugins2.xml">
<xmlcatalog refid="dtds"/>
<insert path="/plugin/minOpenfireVersion[last()]" position="after">
<insert path="/plugin/minOpenfireVersion[last()]" position="after">
<![CDATA[
<![CDATA[
<development>
<development>
...
@@ -1461,12 +1479,14 @@
...
@@ -1461,12 +1479,14 @@
<!-- Copy the servlet and servlet-mapping elements from the original web.xml to a temp buffer.
<!-- Copy the servlet and servlet-mapping elements from the original web.xml to a temp buffer.
Note: The original web.xml can only contain one servlet and servlet-mapping -->
Note: The original web.xml can only contain one servlet and servlet-mapping -->
<xmltask
source=
"@{pluginsrc}/@{plugin}/src/web/WEB-INF/web.xml"
>
<xmltask
source=
"@{pluginsrc}/@{plugin}/src/web/WEB-INF/web.xml"
>
<xmlcatalog
refid=
"dtds"
/>
<copy
path=
"//web-app/servlet[last()]"
buffer=
"foobar"
/>
<copy
path=
"//web-app/servlet[last()]"
buffer=
"foobar"
/>
<copy
path=
"//web-app/servlet-mapping[last()]"
buffer=
"foobar2"
/>
<copy
path=
"//web-app/servlet-mapping[last()]"
buffer=
"foobar2"
/>
</xmltask>
</xmltask>
<!-- Add the copied servlet and servlet-mapping elements to the generated web.xml -->
<!-- Add the copied servlet and servlet-mapping elements to the generated web.xml -->
<xmltask
source=
"${plugin.dev.dest.dir}/@{plugin}/target/jspc/web.xml"
<xmltask
source=
"${plugin.dev.dest.dir}/@{plugin}/target/jspc/web.xml"
dest=
"${plugin.dev.dest.dir}/@{plugin}/target/web/WEB-INF/web.xml"
>
dest=
"${plugin.dev.dest.dir}/@{plugin}/target/web/WEB-INF/web.xml"
>
<xmlcatalog
refid=
"dtds"
/>
<insert
path=
"/web-app/servlet[last()]"
buffer=
"foobar"
<insert
path=
"/web-app/servlet[last()]"
buffer=
"foobar"
position=
"after"
/>
position=
"after"
/>
<insert
path=
"/web-app/servlet-mapping[last()]"
buffer=
"foobar2"
<insert
path=
"/web-app/servlet-mapping[last()]"
buffer=
"foobar2"
...
...
build/lib/ant/web-app_2_3.dtd
0 → 100644
View file @
5fd38241
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment