svn ant - name is undefined -


i'm trying update codebase using ant. have placed svnant.jar, svnclientadapter.jar, svnjavahl.jar under ant_home\lib directory. i'm using bellow code snippet , gives error.

problem: failed create task or type svnsetting
cause: name undefined.
action: check spelling.
action: check custom tasks/types have been declared.
action: check <presetdef>/<macrodef> declarations have taken place.

<path id= "svnant.classpath" >      <fileset dir= "${antlib.dir}" >          <include name= "*.jar" />      </fileset> </path> <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath" />   <target name="init-svn">  <svnsetting svnkit="false" javahl="true" username="***" password="****" id="svn.settings" />     </target>  <target name="update-source" depends="init-svn">         <svn refid="svn.settings" >           <update  dir="${basedir}" revision="head" url="${svn.url}"/>         </svn> </target> 

can me please?

i guess didn't defined property antlib.dir anywhere. here build empty classpath taskdef.

actually if put jars ant_home\lib, don't need build classpath taskdef. do:

<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" /> 

and sure ant see jars correctly, run ant -diagnostics


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -