From: Drew T. <dt...@pd...> - 2010-04-16 22:54:14
|
Hi all, I'm very new to eXist, but think it's a great project! I just began using the Ant tasks for importing/exporting collections and resources. However, the extract Ant task seems to have a bug. When calling the following: <xdb:extract uri="${remote.exist.url}" user="${username}" password="${password}" destdir="${app.src.dir}" subcollections="true" createdirectories="true"/> The collections and subcollections are extracted, but, there is always one resource missing from each collection. Looking at the source code (line 137 of org.exist.ant.XMLDBExtractTask.java), it looks like the missing resource is the result of initializing the iteration variable to 1, instead of 0. When I modify the source code to start at 0 (vice 1), and recompile and run the Ant extract task, I see the results I am expecting (no missing resources). As I am not deeply familiar with the code, I was hoping someone could verify the bug or functionality of this feature. If the process calls for a bug entry and explanation, I'll be glad to file one. Thanks, Drew |