Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8954195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:15:58+00:00 2026-06-15T14:15:58+00:00

I am using SVN ANT version 1.3.1, ANT 1.7.1, Java 1.6u, and the SVN

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:15:59+00:00Added an answer on June 15, 2026 at 2:15 pm

    Are you using svn-kit? If so, I ran into the same problem today while trying to get some tried and true build scripts migrated to a new instance of Jenkins at work. When preparing an official release, we tag with the release number and then pull the code based on the tag to build it. Like the OP, I feel like this must be a pretty standard use case.

    By the way, run ant with the -v flag and svnant will report whether it’s using svnkit, javahl or falling back to the command line:

      [svn] Using svnkit
      [svn] <Export> started ...
      [svn] export -r HEAD https://foo.com/svn/project
    

    As best as I can tell, svnant 1.3.1 (and the version of svnkit that it depends on) simply doesn’t work 100% with SVN server 1.7.x. It works fine for us for some commands, including export, but when it came time to tag by using svn copy, we were getting the same error described above:

    22:06:48        [svn] copy -rHEAD https://foo.com/svn/project/trunk https://foo.com/svn/project/tags/tag3
    22:06:48        [svn] svn: File not found: revision 64, path '/project/trunk/project/trunk'
    22:06:48        [svn] svn: '/svn/project/!svn/bc/64/project/trunk' path not found: 404 Not Found (https://foo.com)
    

    Thankfully, a savior was out there by the name of opticylic. Open a new tab in your browser and head on over to:

    https://github.com/opticyclic/svntask

    Grab svntask-1.7-1.0.9.zip from the Downloads section and follow the installation instructions, largely just a matter of declaring the taskdef with the appropriate classpath. The usage of the task is slightly different from tigris’ svnant. Specifically it’s

    <copy src="url" dst="url2" commitMessage="tmbg"/> 
    

    instead of

    <copy srcUrl="url" destUrl="url2" message="flood"/>, 
    

    and the newish svnsettings are no longer supported, so you’ll have to specify username and password directly in the tag.

    Once this is done, svn copy should work fine, making it possible to apply a tag from ant. N.B. make sure that opticylic’s svnant task does not see any of the old svnant libraries during execution time. I previously had the svn-related jars in my ant/lib, so had to remove them in order to use opticyclic’s svnant.

    Finally, I realized that svn export is unfortunately NOT supported by opticylic’s svnant, but we require it for the build I was working on. As such, I was forced to make BOTH svnant’s available to my build. As long as you specify both of their classpaths independently and (important!) give one of them a new name, since they both use svn as the tagname by default), you should be able to do the same:

    <path id="svnant.classpath">
            <fileset dir="lib/svnant">
              <include name="*.jar"/>
            </fileset>
    </path>
    <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath"/>
    
    <path id="svnant2.classpath">
                <fileset dir="lib/svn2">
                  <include name="*.jar"/>
                </fileset>
    </path>
    <taskdef name="svn2" classname="com.googlecode.svntask.SvnTask" classpathref="svnant2.classpath"/>
    

    Here, I’ve allowed tigris’ svnant to claim the default ‘svn’ tag name while giving opticyclic’s the tag svn2. In this manner, we can call either in the course of the ant script. Just remember to pay attention that you’re using the correct syntax required for the svnant you’re using at any given moment.

    Perhaps opticyclic will add export to their svnant, now that they have a few new fans. That would allow us to simplify the above and simply use the newer svnant outright.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have checked out code using command-line SVN. I have an Ant build script
I'm using svn:externals and I've specified a specific revision using the SVN1.5+ format ,
Using svn, is it possible to see the differences in a file from the
I have been using svn fast and furious to do commits and, because I'm
I am developing a desktop app using Java and Swing Application Framework. I have
I'm using tortoise svn, and recently I updated to version 1.7. Still, in our
We are using SVN for version control for our web application. I want to
I've started using svn with Versions.app locally, as I want to keep trace of
I am using svn merge urlToSomeBranch from my working subversion copy of a freshly
I am using svn to download the source code to an open source project.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.