Greetings,

Using NAnt to automate several Subversion tasks on
our repositories, I've run into an issue with <exec>
calling Subversion's svnadmin dump.  I don't believe
it's a problem with svnadmin per se.

Here is the culprit:

<exec program="${svnadmin}" 
  failonerror="false" 
  output="${svnadmin-dump.output}" 
  resultproperty="svnadmin-dump.result">
    <arg value="dump"/>
    <arg value="${repos}"/>
</exec>

This does generate the dump file, however I have
to run Nant with -quiet (otherwise ALL the output
is shown!) and when I try to load the repository,
svnadmin complains:

"svn: Malformed dumpfile header"

Calling svnadmin dump from the commandline against
the same repository, and comparing this against the
dump file generated from NAnt, the NAnt dump is ~60%
bigger, missing some information at the top, and the
binary data is all out of whack.  NAnt also takes at
least 5 times longer to generate the dump file.

I've hacked a workaround for it, by creating a dos
batch file (dump.bat) which itself calls svnadmin:

call %1 %2 %3 > %4

And then changing the <exec> call in NAnt to:

<exec program="dump.bat" 
  failonerror="false" 
  resultproperty="svnadmin-dump.result">
    <arg value="${svnadmin}"/>
    <arg value="dump"/>
    <arg value="${repos}"/>
    <arg value="${svnadmin-dump.output}"/>
</exec>

But this does seem like a bit of a kludge, something
weird (at least to me) is happening in NAnt, or in 
way I'm using <exec>.

Run from latest CVS build of NAnt (Build 0.85.1859.0)
with the latest (stable) release of SVN (1.1.3)

peace,
si


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to