Reputation: 17471
My project has properties for the svn:externals
but to get it working I have to svn update
the whole project to get the latest jars from the repository.
Now I have build script and would like to get the svn:externals
in the build script.
I have used svn commands in the build before but don't know how to use svn:externals
in it .
Could any one help me on this ?
Upvotes: 0
Views: 663
Reputation: 18714
The svn property svn:externals
does not need any special handling. Whenever you call update those externals will be retrieved.
To call svn update
from ant you need a svn library for it.
Svnant for example offers nearly all svn commands as ant tasks
<path id="path.svnant">
<pathelement location="SVN_ANT_DIR/svnant.jar"/>
<pathelement location="SVN_ANT_DIR/svnClientAdapter.jar"/>
<!-- ... -->
</path>
<typedef
resource="org/tigris/subversion/svnant/svnantlib.xml"
classpathref="path.svnant"
/>
<svn javahl="${javahl}">
<update dir="DIRECTORY_TO_UPDATE" />
</svn>
Upvotes: 2