ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lenhof,Danny" <>
Subject RE: ant and svn
Date Tue, 29 Apr 2008 17:35:18 GMT
Here is two examples...hope this helps.


    <target name="svn">

         <exec executable="svn">

             <arg line="update --username jpyork --password jpyork29
c:/ " />




Or try this...


     <property name="repo" value="repository  path of files" />

     <property name="file.location" value="local path to files" />

     <property name="SVNUser " value="jpyork" />

     <property name=" SVNPassword" value="jpyork29" />


    <target name="svn" description="Update project">

                <echo message="Updating ${file.location} from subversion

         <exec executable="svn">

             <arg line="update --username ${SVNUser} --password
${SVNPassword} --no-auth-cache ${repo} ${file.location}" />






-----Original Message-----
From: jpyork [] 
Sent: Tuesday, April 29, 2008 12:31 PM
Subject: ant and svn



Does anyone use the svn task in there ant scripts?  I am trying to use

update in my ant script and it just does not seem to work.


this is what I have in my script:

<target name="svn">

     <svn username="mine" password="1234">






And this is what it says when the step is run:


Svn: Updating

update -r HEAD /Location/on/computer/running/script



I have one master script above all my small projects and this is where I

have the target thinking that if I have it in the top level, it will

any updates below it.  I update and commit changes to files below the

level and they are not grabbed.




View this message in context:

Sent from the Ant - Users mailing list archive at




To unsubscribe, e-mail:

For additional commands, e-mail:


This e-mail message, including any attachments, is for the sole use of the person to whom
it has been sent, and may contain information that is confidential or legally protected. If
you are not the intended recipient or have received this message in error, you are not authorized
to copy, distribute, or otherwise use this message or its attachments. Please notify the sender
immediately by return e-mail and permanently delete this message and any attachments.  Gartner
makes no warranty that this e-mail is error or virus free. 

  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message