Mit SVNAnt in eclipse Build Failed (Konnte nicht geladen werden Definitionen von Ressourcen)
Möchte ich SVNAnt in eclipse.
Aber wenn ich mein Skript auszuführen, habe ich diese Meldung :
Buildfile: X:\XXX\bin\ant\axis_bujava.xml
[typedef] Could not load definitions from resource org/tigris/subversion/svnant/svnantlib.xml. It could not be found.
testSVNAnt:
BUILD FAILED
X:\XXX\bin\ant\axis_bujava.xml:11: Problem: failed to create task or type svn
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Hier ist die Ant-build-Datei :
<?xml version="1.0"?>
<project default="testSVNAnt" basedir=".">
<path id="path.svnant">
<pathelement location="${basedir}/svnant.jar"/>
<pathelement location="${basedir}/svnClientAdapter.jar"/>
</path>
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="path.svnant" />
<target name="testSVNAnt">
<svn username="username" password="pass">
<checkout url="svn://svnurl" destPath="localpath" revision="HEAD"/>
</svn>
<echo message= "Subversion repository url: ${repository.url}" />
</target>
</project>
JAR-Dateien sind natürlich in basedir. Ich kann nicht finden, ähnliche problem noch keine Lösungen.
InformationsquelleAutor thomaf | 2011-11-15
Du musst angemeldet sein, um einen Kommentar abzugeben.
Es endlich funktioniert mit SvnAnt 1.3.1.
Checkout funktioniert Prima mit diesem code :
Danke für die Hilfe.
InformationsquelleAutor thomaf
Verwenden Sie
statt
<typedef/>
Alles andere sieht gut aus.
können Sie das bestätigen, dass org/tigris/subversion/svnant/svnantlib.xml ist in svnant.jar
InformationsquelleAutor oers
hatte das gleiche problem.. und ersetzen Sie den Wert der "Ressource" aus "org/tigris/subversion/svnant/svnantlib.xml" "svntask.Eigenschaften" hat es für mich.
Beispiel unten: (svn_1.0.0; eclipse juno)
AUSGABE>>>>>
ifAvailable:
[echo] SVNAnt ist verfügbar = true
BAUEN SIE ERFOLGREICH
Zeit insgesamt: 306 Millisekunden
InformationsquelleAutor sunbabaphu
Ersetzen
mit
Den svntask.Eigenschaften sind in der svnant.jar
InformationsquelleAutor Shrikant