I am trying to dynamically build a list of package names to subsequently
feed into a javadoc task.
Here is the task I am trying so far:
<target name="pkglist">
<apply executable="echo" type="dir" dest="." output="pkglist.out" >
<srcfile/>
<fileset dir="$src" excludes="**/SCCS" includes="com/wcom/nw/**"/>
<mapper type="identity"/>
</apply>
<replace file="dirlist.out" token="${src}/" value=""/>
<replace file="dirlist.out" token="/" value="."/>
</target>
This works pretty well with the exception that it includes higher level
directory names that I would like excluded because they are empty and cause
javadoc to terminate.
Example output:
com.wcom.nw <-- empty
com.wcom.nw.core <-- empty
com.wcom.nw.core.lookup
com.wcom.nw.core.lookup.entry
com.wcom.nw.core.service
com.wcom.nw.core.log
com.wcom.nw.tools <-- empty
com.wcom.nw.tools.browser
com.wcom.nw.service
Any ideas on how to eliminate these empty directories or is there a better
approach that I haven't thought about?
Thanks,
Chris