title: adding file to svn using ant
body: <p>As I move from CVS to SVN I'm trying to add a file in svn using ant.  </p>
  
  <p>My <strong>build.properties</strong>:</p>
  
  <pre><code>svn.root=http://svn/projects2
  
  svn.rsh=/usr/bin/ssh
  </code></pre>
  
  <p>My .xml script:</p>
  
  <pre><code>&lt;svn&gt;
              &lt;add 
                  path="${relative.metadata}/Build_@{product}_@{major}.@{minor.next}"
                  cvsRoot="${svn.root}" 
                  cvsRsh="${svn.rsh}" /&gt;
  
              &lt;add 
                  path="${relative.metadata}/Build_@{product}_@{major}.@{minor.next}/master-@{product}_@{major}.@{minor.next}.sql"
                  cvsRoot="${svn.root}" 
                  cvsRsh="${svn.rsh}" /&gt;
  
              &lt;add 
                  path="-q commit -m 'Adding the next build directory' ${relative.metadata}/Build_@{product}_@{major}.@{minor.next}"
                  cvsRoot="${svn.root}"
                  cvsRsh="${svn.rsh}" /&gt;
  
          &lt;/svn&gt;
  </code></pre>
  
  <p>As you can see it's a mix of using CVS with SVN so I'm sure I was wrong in doing this.  I'm just trying to get a file committed into SVN using this type of script.  Am I making it more complicated than it really is? </p>
  
  <p>Ok... I've done some research and this is what I have so far...</p>
  
  <p>My build.properties contain this</p>
  
  <p>svn.repo.url=http://svn.project.com/projects</p>
  
  <p>My .xml is this now</p>
  
  <pre><code>&lt;property name="svn.repository.url" value="${svn.repo.url}"/&gt;
  
  &lt;svn&gt;
        &lt;add
            dir="${relative.metadata}/Build_@{product}_@{major}.@{minor.next}"/&gt;
  
  &lt;/svn&gt;
  </code></pre>
  
  <p>So my question is now, what is missing for this operation to be successful ?</p>