>
> 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
Received on Thu Jul 26 21:30:13 2007