It is possible to use XPathRecordReader directly with a couple of lines of code as demonstrated in the JUnit testcases. just add the stax jars in the classpath
On Mon, Sep 7, 2009 at 5:58 PM, Fergus McMenemie<fer...@twig.me.uk> wrote: >>This testcase is quite independent of anything in Solr. It is a >>standalone utility and the only dependency is stax. >>discalimer (I run these testcases from Intellij and command line) >>BTW are you using XpathRecordReader outside of DIH? > > Nobel, > > Is there a better way to test and play with XPathRecordReader.java > other than > > ant -Dtestcase=TestXPathRecordReader test > > Which takes 8secs to run here? I am not using XpathRecordReader > outside of DIH, but looking to see how I would add support for > xpaths such as //a. > > Fergus. > >> >>On Mon, Sep 7, 2009 at 3:26 PM, Fergus McMenemie<fer...@twig.me.uk> wrote: >>> Hello all, >>> >>> I would appreciate help from somebody who has set up Solr within >>> netbeans, I am wanting to do more work with DIH and particularly its >>> XpathEntityProcessor stuff. I wish to preform the following from >>> within the IDE >>> >>> ant -Dtestcase=TestXPathRecordReader.java test >>> >>> I have spent a few hours playing Whac-A-Mole with classpath and source >>> settings. In the end I got it down to zero flags, but I then added >>> some test cases and the scanner thing then went off and flagged dozens >>> files with undefined classes I removed my change but the rescan did not >>> remove the dozens of flagged files. >>> >>> PS: I am a total netbeans newbie. >>> >>> -- >>> >>> =============================================================== >>> Fergus McMenemie Email:fer...@twig.me.uk >>> Techmore Ltd Phone:(UK) 07721 376021 >>> >>> Unix/Mac/Intranets Analyst Programmer >>> =============================================================== >>> >> >> >> >>-- >>----------------------------------------------------- >>Noble Paul | Principal Engineer| AOL | http://aol.com > > -- > > =============================================================== > Fergus McMenemie Email:fer...@twig.me.uk > Techmore Ltd Phone:(UK) 07721 376021 > > Unix/Mac/Intranets Analyst Programmer > =============================================================== > -- ----------------------------------------------------- Noble Paul | Principal Engineer| AOL | http://aol.com