As you can see for rtf I need to do more than just download the jar file as there is not a precompiled version on the net. I have to download the source and then run a number of steps to get to the resulting jar. I'm not sure that the plugin's build.xml is the place to be doing this as it seems to be called twice.
The ant excerpts I sent were careful to only download things once.
http://www.mail-archive.com/nutch-developers%40lists.sourceforge.net/msg03602.html
Conditionals are not straightforward in Ant. First, <available/> is used to note whether things have already been downloaded. Then an "unless" attribute is used on the target that actually downloads things so that the target is conditioned on the results of the <available/>. Finally, override the "init-plugin" target to depend on the download task. You could unpack & build the RTF parser in either the download or the init-plugin task, as you wish.
Does that make sense?
Doug
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nutch-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nutch-developers
