[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] svnant: svnkit

From: Maciek Sakrejda <msakrejda_at_truviso.com>
Date: 2007-08-03 18:28:32 CEST

No one? The odd thing is, I need svnjavahl.jar in my classpath, or the
task falls back to command line if I set

javahl=false
svnkit=true

And after inspecting the trace some more and digging into the classes,
it looks like that's a JavaHL clas that throws the original exception,
even though svnant claims that it's using svnkit. If that is the case,
the NullPointerException itself is not surprising (since I don't think I
have the native library required for JavaHL), but it is surprising that
it's using the the JavaHL adapter in the first place.

Any suggestions? Here is how I'm registering the svnant tasks:

<path id="ant.svn.libs">
        <fileset dir="${truviso.ant.lib}">
                <include name="svnant.jar" />
                <include name="svnClientAdapter.jar" />
                <include name="javasvn.jar" />
                <include name="svnkit.jar" />
                <include name="ganymed.jar" />
                <include name="svnjavahl.jar" />
        </fileset>
</path>

<taskdef resource="org/tigris/subversion/svnant/svnantlib.xml"
        classpathref="ant.svn.libs">
</taskdef>

On Wed, 2007-08-01 at 09:45 -0700, Maciek Sakrejda wrote:
> Hi, I had an svnant question:
>
> I am trying to use the svnkit adapter but I get a NullPointerException
> doing an svninfo on my repository. The verbose ant output of the whole
> run follows. Any suggestions?
>
> Thanks,
> Maciek
>
> maciek@maciek-desktop:~/svntest$ ant -v -Dsvn.use.javahl=false
> -Dsvn.use.svnkit=true -f svntest.xml
> Apache Ant version 1.7.0 compiled on December 13 2006
> Buildfile: svntest.xml
> Detected Java version: 1.5 in: /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre
> Detected OS: Linux
> parsing buildfile /home/maciek/svntest/svntest.xml with URI =
> file:/home/maciek/svntest/svntest.xml
> Project base dir set to: /home/maciek/svntest
> [antlib:org.apache.tools.ant] Could not load definitions from resource
> org/apache/tools/ant/antlib.xml. It could not be found.
> Importing file /home/maciek/svntest/xdeps/ant/common.xml
> from /home/maciek/svntest/svntest.xml
> parsing buildfile /home/maciek/svntest/xdeps/ant/common.xml with URI =
> file:/home/maciek/svntest/xdeps/ant/common.xml
> Override ignored for property "truviso.ant.lib"
> parsing buildfile
> jar:file:/home/maciek/svntest/xdeps/ant/lib/svnant.jar!/org/tigris/subversion/svnant/svnantlib.xml with URI = jar:file:/home/maciek/svntest/xdeps/ant/lib/svnant.jar!/org/tigris/subversion/svnant/svnantlib.xml
> Build sequence for target(s) `testinfo' is [testinfo]
> Complete build sequence is [testinfo, cleandeps, ]
>
> testinfo:
> [svn] Using svnkit
> [svn] <Info> started ...
> [svn] <Info> failed !
>
> BUILD FAILED
> /home/maciek/svntest/svntest.xml:20: Failed to set 'info' properties
> at
> org.tigris.subversion.svnant.commands.SvnCommand.executeCommand(Unknown
> Source)
> at org.tigris.subversion.svnant.SvnTask.execute(Unknown Source)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
> at org.apache.tools.ant.Task.perform(Task.java:348)
> at org.apache.tools.ant.Target.execute(Target.java:357)
> at org.apache.tools.ant.Target.performTasks(Target.java:385)
> at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> at
> org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> at org.apache.tools.ant.Main.runBuild(Main.java:698)
> at org.apache.tools.ant.Main.startAnt(Main.java:199)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> Caused by: java.lang.NullPointerException
> at
> org.tigris.subversion.svnclientadapter.javahl.JhlInfo2.getFile(Unknown
> Source)
> at org.tigris.subversion.svnant.commands.Info.getValue(Unknown
> Source)
> at org.tigris.subversion.svnant.commands.Info.execute(Unknown
> Source)
> ... 18 more
> --- Nested Exception ---
> java.lang.NullPointerException
> at
> org.tigris.subversion.svnclientadapter.javahl.JhlInfo2.getFile(Unknown
> Source)
> at org.tigris.subversion.svnant.commands.Info.getValue(Unknown
> Source)
> at org.tigris.subversion.svnant.commands.Info.execute(Unknown
> Source)
> at
> org.tigris.subversion.svnant.commands.SvnCommand.executeCommand(Unknown
> Source)
> at org.tigris.subversion.svnant.SvnTask.execute(Unknown Source)
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
> at org.apache.tools.ant.Task.perform(Task.java:348)
> at org.apache.tools.ant.Target.execute(Target.java:357)
> at org.apache.tools.ant.Target.performTasks(Target.java:385)
> at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> at
> org.apache.tools.ant.Project.executeTargets(Project.java:1181)
> at org.apache.tools.ant.Main.runBuild(Main.java:698)
> at org.apache.tools.ant.Main.startAnt(Main.java:199)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>
> Total time: 1 second
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
> For additional commands, e-mail: users-help@subclipse.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Fri Aug 3 18:27:40 2007

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.