Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 22nd, 2012  |  syntax: None  |  size: 1.64 KB  |  hits: 84  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Using SVNAnt in eclipse Build Failed (Could not load definitions from resource)
  2. Buildfile: X:XXXbinantaxis_bujava.xml
  3.   [typedef] Could not load definitions from resource org/tigris/subversion/svnant/svnantlib.xml. It could not be found.
  4. testSVNAnt:
  5.  
  6. BUILD FAILED
  7. X:XXXbinantaxis_bujava.xml:11: Problem: failed to create task or type svn
  8. Cause: The name is undefined.
  9. Action: Check the spelling.
  10. Action: Check that any custom tasks/types have been declared.
  11. Action: Check that any <presetdef>/<macrodef> declarations have taken place.
  12.        
  13. <?xml version="1.0"?>
  14.  
  15. <project default="testSVNAnt" basedir=".">
  16.  
  17. <path id="path.svnant">
  18.     <pathelement location="${basedir}/svnant.jar"/>
  19.     <pathelement location="${basedir}/svnClientAdapter.jar"/>
  20. </path>
  21. <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="path.svnant" />
  22.     <target name="testSVNAnt">
  23.         <svn username="username" password="pass">
  24.             <checkout url="svn://svnurl" destPath="localpath" revision="HEAD"/>  
  25.         </svn>
  26.         <echo message= "Subversion repository url: ${repository.url}" />
  27.     </target>
  28. </project>
  29.        
  30. <taskdef />
  31.        
  32. <?xml version="1.0"?>
  33.  
  34. <project default="main" basedir=".">
  35.  
  36.     <path id="path.svnant">
  37.         <pathelement location="${basedir}/svnant.jar" />
  38.         <pathelement location="${basedir}/svnClientAdapter.jar" />
  39.         <pathelement location="${basedir}/svnjavahl.jar" />
  40.  
  41.     </path>
  42.  
  43.     <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="path.svnant" />
  44.     <target name="main">
  45.         <svn>
  46.             <checkout url="svn://xxx" destPath="X:/XXX" revision="HEAD" />
  47.         </svn>
  48.     </target>
  49. </project>