Created
March 5, 2012 09:48
-
-
Save 65/1977665 to your computer and use it in GitHub Desktop.
svn update via ANT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Properties to be set by SVN $ID$ $REV$ --> | |
<project name="SVN Update" default="update" basedir="."> | |
<description> Updates to head revision </description> | |
<!-- all properties are in build.properties --> | |
<property file="build.properties" /> | |
<!-- path to the svnant libraries. Usually they will be located in ANT_HOME/lib --> | |
<path id="svnant.classpath"> | |
<fileset dir="${ant.home}"> | |
<include name="**/*.jar"/> | |
</fileset> | |
</path> | |
<!-- load the svn task --> | |
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath" /> | |
<target name="updateserver"> | |
<echo message="Automatic updater" /> | |
<property name="svn.username" value="xxxxx" /> | |
<property name="svn.password" value="xxxxx" /> | |
<!-- update working copy to make sure --> | |
<echo message="updating working copy at ${svn.dev.wc}" /> | |
<svn username="${svn.username}" password="${svn.password}"> | |
<update dir="${svn.dev.wc}"/> | |
</svn> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment