You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by udi <uk...@hotmail.com> on 2007/07/26 16:13:30 UTC
ANT and SubVersion
Hello,
I am running below script to update the working directory(project) from
Subversion Repository.
But I am getting below error:-
D:\Project-trunk>build.bat
Using Java from C:\j2sdk
Buildfile: build.xml
BUILD FAILED
D:\Project-trunk\build.xml:23: Reference C:\svnant not found.
Line number 23 is below in the build.xml:-
<taskdef resource="${svnant}\svnantlib.xml" classpathref="${svnant}"/>
I didn't found "svnantlib.xml" file in the svnant package which I have
downloaded and installed in the C:\svnant folder :-
I have donwload svnant package from below link
http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=7046&expandFolder=7046&folderID=7046
Script is given below for references:-
<property name="svnant" value="C:\svnant"/>
<property name="svnant.jar" value="svnant.jar"/>
<property name="svnClientAdapter.jar" value="svnClientAdapter.jar"/>
<property name="svnjavahl.jar" value="svnjavahl.jar"/>
<path id="ant.task.classpath">
<pathelement location="${svnant.jar}"/>
<pathelement location="${svnClientAdapter.jar}"/>
<pathelement location="${svnjavahl.jar}"/>
</path>
<taskdef resource="${svnant}\svnantlib.xml" classpathref="${svnant}"/>
<svn>
<update="${svn.url}" destPath="${svn.destination}" />
</svn>
When i will get the "svnantlib.xml" file?
Please help me to resolve this...
--
View this message in context: http://www.nabble.com/ANT-and-SubVersion-tf4152629.html#a11813831
Sent from the Subversion Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: ANT and SubVersion
Posted by Blair Zajac <bl...@orcaware.com>.
Hello,
You probably want to direct this question over to the Subclipse mailing list
instead, given that svnant was downloaded from there.
Regards,
Blair
--
Blair Zajac, Ph.D.
<bl...@orcaware.com>
http://www.orcaware.com/svn/
udi wrote:
> Hello,
> I am running below script to update the working directory(project) from
> Subversion Repository.
>
> But I am getting below error:-
>
> D:\Project-trunk>build.bat
> Using Java from C:\j2sdk
> Buildfile: build.xml
>
> BUILD FAILED
> D:\Project-trunk\build.xml:23: Reference C:\svnant not found.
>
> Line number 23 is below in the build.xml:-
> <taskdef resource="${svnant}\svnantlib.xml" classpathref="${svnant}"/>
>
> I didn't found "svnantlib.xml" file in the svnant package which I have
> downloaded and installed in the C:\svnant folder :-
>
> I have donwload svnant package from below link
> http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=7046&expandFolder=7046&folderID=7046
>
> Script is given below for references:-
> <property name="svnant" value="C:\svnant"/>
> <property name="svnant.jar" value="svnant.jar"/>
> <property name="svnClientAdapter.jar" value="svnClientAdapter.jar"/>
> <property name="svnjavahl.jar" value="svnjavahl.jar"/>
>
> <path id="ant.task.classpath">
> <pathelement location="${svnant.jar}"/>
> <pathelement location="${svnClientAdapter.jar}"/>
> <pathelement location="${svnjavahl.jar}"/>
> </path>
>
> <taskdef resource="${svnant}\svnantlib.xml" classpathref="${svnant}"/>
>
> <svn>
> <update="${svn.url}" destPath="${svn.destination}" />
> </svn>
>
> When i will get the "svnantlib.xml" file?
>
> Please help me to resolve this...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: ANT and SubVersion
Posted by Rob Wilkerson <r....@gmail.com>.
>
> But I am getting below error:-
>
> D:\Project-trunk>build.bat
> Using Java from C:\j2sdk
> Buildfile: build.xml
>
> BUILD FAILED
> D:\Project-trunk\build.xml:23: Reference C:\svnant not found.
>
> Line number 23 is below in the build.xml:-
> <taskdef resource="${svnant}\svnantlib.xml" classpathref="${svnant}"/>
>
> I didn't found "svnantlib.xml" file in the svnant package which I have
> downloaded and installed in the C:\svnant folder :-
>
> I have donwload svnant package from below link
> http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=7046&expandFolder=7046&folderID=7046
>
> Script is given below for references:-
> <property name="svnant" value="C:\svnant"/>
> <property name="svnant.jar" value="svnant.jar"/>
> <property name="svnClientAdapter.jar" value="svnClientAdapter.jar"/>
> <property name="svnjavahl.jar" value="svnjavahl.jar"/>
>
> <path id="ant.task.classpath">
> <pathelement location="${svnant.jar}"/>
> <pathelement location="${svnClientAdapter.jar}"/>
> <pathelement location="${svnjavahl.jar}"/>
> </path>
>
> <taskdef resource="${svnant}\svnantlib.xml" classpathref="${svnant}"/>
>
> <svn>
> <update="${svn.url}" destPath="${svn.destination}" />
> </svn>
For what it's worth, here's how one of my working build files looks:
<!-- path to external libraries -->
<path id="project.classpath">
<pathelement location="${svnjavahl.jar}" />
<pathelement location="${svnant.jar}" />
<pathelement location="${svnClientAdapter.jar}" />
<pathelement location="${antelope.jar}" />
</path>
<!-- load the svn task -->
<taskdef resource="svntask.properties"
classpathref="project.classpath"
/>
The properties referenced are set in a build.properties files as shown:
tasklib.dir=C:/Apache/ant-1.7.0/tasks
svnant.jar=${tasklib.dir}/svnant-1.0.0/lib/svnant.jar
svnClientAdapter.jar=${tasklib.dir}/svnant-1.0.0/lib/svnClientAdapter.jar
svnjavahl.jar=${tasklib.dir}/svnant-1.0.0/lib/svnjavahl.jar
Hope this helps.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org