Use simplified javadocs fileset without restrict. This makes the macro useable with early ant versions, too

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1497273 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2013-06-27 09:54:02 +00:00
parent e0890ccc71
commit df48cae8e7
1 changed files with 2 additions and 3 deletions

View File

@ -1835,11 +1835,10 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites
<attribute name="docencoding" default="${file.encoding}"/> <attribute name="docencoding" default="${file.encoding}"/>
<sequential> <sequential>
<replace encoding="@{docencoding}" summary="true" taskname="patch-javadoc"> <replace encoding="@{docencoding}" summary="true" taskname="patch-javadoc">
<restrict> <fileset dir="@{dir}" casesensitive="false" includes="**/index.html,**/index.htm,**/toc.html,**/toc.htm">
<fileset dir="@{dir}" casesensitive="false" includes="**/index.html,**/index.htm,**/toc.html,**/toc.htm"/>
<!-- TODO: add encoding="@{docencoding}" to contains check, when we are on ANT 1.9.0: --> <!-- TODO: add encoding="@{docencoding}" to contains check, when we are on ANT 1.9.0: -->
<not><contains text="function validURL(url) {" casesensitive="true" /></not> <not><contains text="function validURL(url) {" casesensitive="true" /></not>
</restrict> </fileset>
<replacetoken><![CDATA[function loadFrames() {]]></replacetoken> <replacetoken><![CDATA[function loadFrames() {]]></replacetoken>
<replacevalue expandProperties="false"><![CDATA[if (targetPage != "" && !validURL(targetPage)) <replacevalue expandProperties="false"><![CDATA[if (targetPage != "" && !validURL(targetPage))
targetPage = "undefined"; targetPage = "undefined";