jstrachan 01/05/10 12:10:44
Modified: . common.xml
Log:
Patched the build to escape the < and > characters from the example web apps JSP
such that the foo.jsp now generates a foo.txt which can be included in JSP to show the
source via a <%@ include file=foo.txt %> directive. I've used this mechanism on the
log taglib.
Revision Changes Path
1.4 +13 -0 jakarta-taglibs/common.xml
Index: common.xml
===================================================================
RCS file: /home/cvs/jakarta-taglibs/common.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- common.xml 2001/05/10 12:07:30 1.3
+++ common.xml 2001/05/10 19:10:41 1.4
@@ -132,6 +132,19 @@
<fileset dir="${examples.src}/web" includes="*.jsp"/>
<mapper type="glob" from="*.jsp" to="*.txt"/>
</copy>
+
+ <!-- now escape the .txt files -->
+ <replace dir="${build.examples}">
+ <include name="**/*.txt"/>
+ <replacetoken><![CDATA[<]]></replacetoken>
+ <replacevalue><![CDATA[<]]></replacevalue>
+ </replace>
+ <replace dir="${build.examples}">
+ <include name="**/*.txt"/>
+ <replacetoken><![CDATA[>]]></replacetoken>
+ <replacevalue><![CDATA[>]]></replacevalue>
+ </replace>
+
<antcall target="${examples.post}"/>
</target>