ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/build.xml
(Generate patch)

Comparing jsr166/build.xml (file contents):
Revision 1.35 by tim, Thu May 29 15:53:58 2003 UTC vs.
Revision 1.36 by tim, Thu May 29 17:29:08 2003 UTC

# Line 327 | Line 327
327        </fileset>
328      </copy>
329  
330 +    <!-- Not needed now, used for doccheck filtering:
331 +    <property name="generic.declarations"
332 +             value="public interface E {} public interface T {} public interface K {} public interface V {}"
333 +    />
334 +    -->
335 +
336      <copy todir="${build.filter.src.dir}">
337        <fileset dir="${src.dir}">
338          <exclude name="**/*.html"/>
339          <patternset refid="emulation.excludes"/>
340        </fileset>
341        <filterchain>
342 +
343 +        <!--
344 +         # This filter gets rid of angle-bracketed type parameters
345 +         # so that javadoc can run on the result. The following
346 +         # heuristic seems to work:
347 +         #
348 +         # For all lines not starting with space(s)-asterisk-space(s),
349 +         #   replace <something> with a space, where there may be more
350 +         #   than one right angle bracket at the end, and "something"
351 +         #   must not contain parens or pipes. (This may need some
352 +         #   tweaking.)
353 +         -->
354 +
355          <filterreader classname="jsr166.ant.filters.ReplaceFilter"
356                        classpath="${build.ant.dir}">
338          <!--
339           # These arguments are to get rid of angle-bracketed type
340           # parameters so that javadoc can run on the result. The
341           # following heuristic that seems to work:
342           #
343           # For all lines not starting with space(s)-asterisk-space(s),
344           #   replace <something> with a space, where there may be more
345           #   than one right angle bracket at the end, and "something"
346           #   must not contain parens or pipes. (This may need some
347           #   tweaking.)
348           -->
357            <param name="notmatching" value="^\s+\*\s.*$"/>
358 <          <param name="pattern" value="&lt;[^|>()]+?>+"/>
358 >          <param name="pattern"     value="&lt;[^|>()]+?>+"/>
359            <param name="replacement" value=" "/>
360          </filterreader>
361 +
362 +
363 +        <!--
364 +         # This filter uncomments lines beginning with "//@" so that
365 +         # javadoc can see imports that are needed to resolve links
366 +         # but that shouldn't be in the compiled code.
367 +         -->
368 +
369          <filterreader classname="jsr166.ant.filters.ReplaceFilter"
370                        classpath="${build.ant.dir}">
371 <          <!--
372 <           # These arguments are to uncomment lines beginning with
357 <           # "//@" so that javadoc can see imports that are needed
358 <           # to resolve links but that shouldn't be in the compiled
359 <           # code.
360 <           -->
361 <          <param name="matching" value="^//@.*$"/>
362 <          <param name="pattern" value="^//@"/>
371 >          <param name="matching"    value="^//@.*$"/>
372 >          <param name="pattern"     value="^//@"/>
373            <param name="replacement" value=""/>
374          </filterreader>
375 +
376 +
377 +        <!--
378 +         # The next two filters try to make the source look like
379 +         # something that doccheck can process. The first removes
380 +         # -source 1.4 assertions and the second adds in a bunch
381 +         # of single letter public nested marker interfaces so that
382 +         # the generic type parameters are recognized.
383 +         #
384 +         # Currently commented out because doccheck doesn't work. :-(
385 +         -->
386 +
387 +        <!--
388 +        <filterreader classname="jsr166.ant.filters.ReplaceFilter"
389 +                      classpath="${build.ant.dir}">
390 +          <param name="matching"    value="^\s*assert[\s ].*$"/>
391 +          <param name="pattern"     value="assert"/>
392 +          <param name="replacement" value="//assert"/>
393 +        </filterreader>
394 +
395 +        <filterreader classname="jsr166.ant.filters.ReplaceFilter"
396 +                      classpath="${build.ant.dir}">
397 +          <param name="matching"    value="^(.*(class|interface|implements) .*|)\{.*$"/>
398 +          <param name="pattern"     value="$"/>
399 +          <param name="replacement" value=" ${generic.declarations}"/>
400 +        </filterreader>
401 +        -->
402 +
403        </filterchain>
404      </copy>
405  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines