Search code examples
svnantsvnant

Svnant enable logging


We are using SVN ant task for exporting project from SVN on Linux

<target name="export-from-svn">
    <svn refid="svn.settings">
        <export srcUrl="${svn.url}" destPath="path" />
    </svn>
</target>

Previosly it worked fine without any error. Nothing has been changed, however now it is stucked without any error or warnings. Is there any way to enable more verbose output. If I execute command manually "export -r HEAD ..." it works fine.

export-from-svn:
      [svn] Missing 'javahl' dependencies on the classpath !
      [svn] Using svnkit
      [svn] <Export> started ...
      [svn] export -r HEAD https://from /home/to

Solution

  • There doesn't seem to be attributes to enable more verbose logging in the svn tasks. You can try launching the Ant buildfile using ant -verbose .... But since you're saying the task is "stuck", then you may want to take a thread dump of the process to check the state of the threads in the JVM. You can locate the Ant build as a Java process and run jstack <pid> to dump the threads.