Hi Arnaud, Your approach sounds reasonable enough. I'm not a record loader expert, but with ant most issues I have are always concerning execution directory. You direct call from the command line is run from c:\tools\recordloader, but from where are you running ant? Same dir? I also recommend using arg value above arg line. If there could be spaces in your filenames, then they could mean trouble when using arg line..
Kind regards, Geert > drs. G.P.H. (Geert) Josten Consultant Daidalos BV Hoekeindsehof 1-4 2665 JZ Bleiswijk T +31 (0)10 850 1200 F +31 (0)10 850 1199 mailto:[email protected] http://www.daidalos.nl/ KvK 27164984 De informatie - verzonden in of met dit e-mailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > From: [email protected] > [mailto:[email protected]] On Behalf Of > Arnaud Roch > Sent: woensdag 28 juli 2010 9:04 > To: [email protected] > Subject: [MarkLogic Dev General] Ant and Marklogic > > Hi, > > I'm working with Ant to empty a MarkLogic database and load a > large amount of XML files (~70 000 files for ~3 ko each) on > this empty one. > > Now, I'm using RecordLoad, I'm reading the tutorial, try some > command from windows' cmd and so on. > > My problem is with this command (the first I've try): > > C:\Tools\RecordLoader>java -cp > recordloader.jar;xcc.jar;xpp3-1.1.4c.jar -DID_NAME=#FILENAME > -DCONNECTION_STRING=xcc://<mystringconnection>:9041/MyDB > com.marklogic.ps.RecordLoader > > I just wanted to see if it works (and it works) > > Then, I put this in Ant : > > <java classname="com.marklogic.ps.RecordLoader" > classpath="${RecordLoaderClasspath}"> > <arg line="-DID_NAME=#FILENAME"/> > <arg line="-DCONNECTION_STRING=${marklogic.server}"/> > </java> > > I start my ant command : ant -f exportMLSQL recordTest > > Then I can see that it's skipping my option ID_NAME and > CONNECTION_STRING ! Why ? I've try with "value" instead of > "line" same error. > > There is Exception too :[java] > com.marklogic.recordloader.FatalException: input files > specified, but none found . > > I didn't see any INPUT_FILE(S) in the RecordLoader README. > > Am I doing it wrong ? It's maybe another Trainee's Fail ! :) > > Other question is there an other/better solution to access a > MarkLogic database with Ant ? > > ________________________________ > > Votre vie privée l'est-elle vraiment ? Internet Explorer 8 > vous protège gratuitement > <http://clk.atdmt.com/FRM/go/232102478/direct/01/> > _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
