jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-taglibs common.xml
Date Thu, 10 May 2001 19:10:44 GMT
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[&lt;]]></replacevalue>
  +    </replace>
  +    <replace dir="${build.examples}">
  +      <include name="**/*.txt"/>
  +      <replacetoken><![CDATA[>]]></replacetoken>
  +      <replacevalue><![CDATA[&gt;]]></replacevalue>
  +    </replace>
  +
       <antcall target="${examples.post}"/>
     </target>
     
  
  
  

Mime
View raw message