Ketan's Musings

Where he blogs about his eclipse musings

SVNAnt: Using ant with SVN

without comments

While working on some ant build scripts today. A lot of custom batch files that were being exec’ed from within ant builds; batch files that would perform svn updates, reverts and commits, among other svn actions.

A good alternative would be to use SVNAnt (some snippets follow):

<svn>
  <delete>
    <fileset dir="workingcopy/deleteTest">
      <include name="**/*.del"/>
    </fileset>
  </delete>
  <commit message="commit deleted files"
       dir="workingcopy/deleteTest"/>
</svn>
<svn>
  <update dir="dir/to/update/" recurse="true" />
</svn>

Written by Ketan

March 13th, 2007 at 8:10 pm

Leave a Reply

IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)

What is 4 + 5 ?
Please leave these two fields as-is: