On 6/20/07 8:17 AM, "Doğacan Güney" <[EMAIL PROTECTED]> wrote:
> Since you are doing compile-core, no plugins get compiled > (say, urlfilter-prefix), then when you do a ant test in feed > only protocol-file gets compiled. So, no urlfilter-prefix, no problem :). > I have to say that I am certain that I am not sure of what I just said. Can > you retry with just 'ant' instead of 'ant compile-core'? Heh, yep, that replicated the issue. Okay, so I agree with you with regards to the fix that you suggested, however the larger issue here is one of annoyance. Why should I have to have a version of the urlfilter-prefix plugin compiled for this issue to manifest itself? Plugin development is supposed to be independent, i.e., while developing the feed plugin I shouldn't need to care about how others have developed the urlfilter plugin, etc., or whether or not there is an appropriate test file there to use in unit testing. I have 2 suggestions: 1. We should make the urlfilter-prefix use more of a sensible default for its filters (e.g., a default filter perhaps) that takes effect when the plugin cannot find the specified .txt file. 2. We should think about this more general issue and come up with a way that plugin development in Nutch supports the use case that I was trying, which I find to be highly representative of what many other folks using Nutch are doing as well (i.e., why should I have to do a full rebuild/test of other plugins when I'm simply working on a single one? For my part in the interim, I will ensure that next time before I commit a plugin I make sure that it passes with the full ant clean compile-core test cycle. Doğacan, thanks for your help in tracking this down. Could you please commit an example test urlfilter file to make the unit test pass since you are going to make that change to use lib-xml anyways? Let me know okay, thanks! Cheers, Chris ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Nutch-developers mailing list Nutch-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nutch-developers