Note that there are some explanatory texts on larger screens.

plurals
  1. POSVN-ANT copy task doesn't work, svn copy from CLI does, same arguments
    primarykey
    data
    text
    <p>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 <code>prod\db\format</code> file says "4".) </p> <p>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.)</p> <p>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:</p> <pre><code>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" </code></pre> <p>and I get, of course</p> <pre><code>Committed revision 27. </code></pre> <p>However, when I try:</p> <pre><code>&lt;target name="check-in" &gt; &lt;svn refid="svn.settings"&gt; &lt;commit message="${application.name} - Committed to Prod" &gt; &lt;fileset dir="${src.dir}"&gt; &lt;include name= "**/*"/&gt; &lt;/fileset&gt; &lt;/commit&gt; &lt;/svn&gt; &lt;/target&gt; &lt;target name="tag-version-number" depends="check-in" &gt; &lt;svn refid="svn.settings"&gt; &lt;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"&gt; &lt;/copy&gt; &lt;/svn&gt; &lt;/target&gt; </code></pre> <p>I'm getting back weird errors:</p> <pre><code>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] &lt;Copy&gt; failed. BUILD FAILED C:\build\promote_prod.xml:210: Can't copy </code></pre> <p>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.)</p> <p>Is the issue something else? </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload