svnant - propget not working
Neil Belch <[email protected]> Wed, 8 Jan 2014 06:52:42 -0800 (PST)
| Newsgroups | gmane.comp.version-control.subversion.subclipse.user |
|---|---|
| Message-ID | <1954756838.1725.1389192762409.JavaMail.httpd@localhost> |
Hello,
I am trying to query SVN property values using the svnant propget task but running into problems.
I have written a simple Ant target to update the build file's folder and then query a property (attached).
My SVN repo is on 1.7.5 and I have svnkit 1.7 which should be compatible.
If I comment out the propget and echo lines, it updates the folder fine. But when I try to query the svn:keywords property for a specific file I get this error:
C:\somepath\test.xml:11: java.lang.NoSuchMethodError: org.tigris.subversion.javahl.PropertyData.(Lorg/tigris/subversion/javahl/SVNClientInterface;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[B)V
I have set the svn:keywords property for file.xml to "value" so this does exist, and committed that.
If I change the propget name argument to look for an SVN property (e.g. "testprop") that doesn't exist, it doesn't fail it just returns "${prop.value}", I assume because the prop.value property is not being set. If I actually add the custom "testprop" SVN property to file.xml, I get the above error again - so it only seems to happen when it finds a property and attempts to get the value of it.
I have had previous issues trying to use javahl, hence setting this to false and using svnkit instead. However since the update task works I wouldn't have thought the javahl/svnkit binding is the issue.
Any help appreciated, thanks.
Neil
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=3071349
To unsubscribe from this discussion, e-mail: [[email protected]].
anttest.xml
(text/xml, 414 B)
<project name="svntest" default="test">
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" />
<svnSetting javahl="false" svnkit="true" username="xxx" password="yyy" id="svn.settings" />
<target name="test">
<svn refid="svn.settings">
<update dir="." />
<propget path="file.xml" name="svn:keywords" property="prop.value" />
</svn>
<echo message="${prop.value}" />
</target>
</project>