I am using SVN ANT version 1.3.1, ANT 1.7.1, Java 1.6u, and the SVN repo is 1.6 (I think - the prod\db\format
file says "4".)
I have two SVN targets (I wonder if the "commit" task isn't completing before the "copy" task attempts to execute, which is why I will quote it as part of my build.xml.)
I am attempting to tag a release as a production version (seems like a fairly common task for an ANT build relying on SVN-ANT, right?) I can do the following on the command line:
svn copy http://svnserver/svn/prod/Production/App \
http://svnserver/svn/prod/Archive/App/1.5 \
-m "Tagging Release of App as Version 1.5"
and I get, of course
Committed revision 27.
However, when I try:
<target name="check-in" >
<svn refid="svn.settings">
<commit message="${application.name} - Committed to Prod" >
<fileset dir="${src.dir}">
<include name= "**/*"/>
</fileset>
</commit>
</svn>
</target>
<target name="tag-version-number" depends="check-in" >
<svn refid="svn.settings">
<copy
srcUrl="http://svnserver/svn/prod/Production/App/"
destUrl="http://svnserver/svn/prod/Archive/App/1.5/"
message="Tagging Release of App as Version 1.5">
</copy>
</svn>
</target>
I'm getting back weird errors:
check-in:
tag-version-number:
[svn] svn: File not found: revision 28, path '/Production/App/Production/App'
[svn] svn: '/svn/prod/!svn/bc/28/Production/summons' path not found: 404 Not Found (http://svnserver)
[svn] svn: File not found: revision 28, path '/Production/App/Production/App'
[svn] svn: '/svn/prod/!svn/bc/28/Production/summons' path not found: 404 Not Found (http:/svnserver)
[svn] <Copy> failed.
BUILD FAILED
C:\build\promote_prod.xml:210: Can't copy
They make me think that perhaps the commit is not going through all the way before it attempts to access the path on the SVN repo? If so, what can I do to ensure that it waits for the commit goes through? Everything was committing just fine before I added this new "tag-version-number" target (and, for the record, this is the only time in the build script that target "check-in" is running.)
Is the issue something else?