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

[Subclipse-users] [svn-ant] Problem using svnant info task

From: Irving, Dave <dave.irving_at_logicacmg.com>
Date: 2006-05-19 13:00:07 CEST

Hi,

From my previous mails, you'll probably know I want to retrieve the
latest repository version using SVNAnt.
It seems the <info> task is exactly what I need - as it sets various ant
properties - including "latestRev".

However, I cant get the <info> task to work. Im using the javaSvn
binding (Im using it on some platforms where I cant get javaHL).
So my target looks something like this:

<target name="testInfo">
  <svn javahl="false">
    <info target="http://someRepoPath"/>
  </svn>
</target>

However, when I run this, I hit a NullPointerException coming from the
-- Java HL -- client adapter classes ?!?!?!

Heres what I get if I do an "ant -verbose testInfo"

...

showLatestRevision:
      [svn] Using javasvn

BUILD FAILED
C:\eclipse\3.2RC1\eclipse\workspace\Test\builds\local\build.xml:21:
Failed to set 'info' properties
        at org.tigris.subversion.svnant.Info.execute(Info.java:94)
        at
org.tigris.subversion.svnant.SvnTask.execute(SvnTask.java:319)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: java.lang.NullPointerException
        at
org.tigris.subversion.svnclientadapter.javahl.JhlInfo2.getFile(Unknown
Source)
        at org.tigris.subversion.svnant.Info.getValue(Info.java:144)
        at org.tigris.subversion.svnant.Info.execute(Info.java:85)
        ... 11 more
--- Nested Exception ---
java.lang.NullPointerException
        at
org.tigris.subversion.svnclientadapter.javahl.JhlInfo2.getFile(Unknown
Source)
        at org.tigris.subversion.svnant.Info.getValue(Info.java:144)
        at org.tigris.subversion.svnant.Info.execute(Info.java:85)
        at
org.tigris.subversion.svnant.SvnTask.execute(SvnTask.java:319)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

However, I -- can -- use other SVN ant tasks (I've used checkout - and
it works fine), so it doesn't seem to be "general" setup problem.

Any help would be really appreciated!

Thanks,

Dave

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Fri May 19 13:00:25 2006

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.