Apache – Why are the svn ant tasks failing

antapache-flexsvnsvnant

I am trying to run a build script and I keep getting errors during a specific svn task. When I try to build the target from the command line, I get an authentication error. When I run the build from flex builder I get an error saying "please get a newer Subversion client". From what I can tell there is a root issue that can be seen here when doing an ant -verbose:

svn_update:
    [echo] Updating the project source...
     [svn] Using javahl
     [svn] <Update> started ...
     [svn] update /Users/dave/Documents/Flex Builder 3/AssetLibrary -r HEAD --force
     [svn] At revision 373.
     [svn] <Update> finished.
     [ant] Exiting /Users/dave/Documents/Flex Builder 3/Simulation/build-template/commonbuild.xml.
     [ant] Exiting /Users/dave/Documents/Flex Builder 3/AssetLibrary/build.xml.
    [echo] Updating DataService Source

...

svn_update:
    [echo] Updating the project source...
     [svn] Using command line
     [svn] <Update> started ...
     [svn] up -r HEAD /Users/dave/Documents/Flex Builder 3/DataService --non-interactive
     [svn] svn: OPTIONS of 'https://svn.example.com/{redacted}': authorization failed: Could not authenticate to server: ignored NTLM challenge, rejected Basic challenge (https://svn.example.com)
     [svn] <Update> failed !
     [ant] Exiting /Users/dave/Documents/Flex Builder 3/Simulation/build-template/commonbuild.xml.
     [ant] Exiting /Users/dave/Documents/Flex Builder 3/DataService/build.xml.
     [ant] Exiting /Users/dave/Documents/Flex Builder 3/Simulation/build.xml.

As you can see, the second (failing) svn_update target is using command line, and the first (working) update is using javahl. I am using the default attributes for svn, so javahl should default to be used.

I updated my svnant jars to 1.3.0.

Would love some help with this one!

Dave

Best Answer

First thing that's catching my eye is that the javahl one isn't calling the update on the same directory as the last one:

/Users/david.marr/Documents/Flex Builder 3/AssetLibrary

vs.

/Users/david.marr/Documents/Flex Builder 3/DataService

It could be that there is some other SVN problem underlying and you're just getting a misleading error message. Also, are you sure url https://svn.frogdesign.com/{redacted} is being parsed correct whatnot? "{redacted}" doesn't look like ANT syntax to me, and neither a regular url.

Related Topic