Login | Register
My pages Projects Community openCollabNet

Discussions > users > [svn-ant] Problem using svnant info task

subclipse
Discussion topic

Back to topic list

[svn-ant] Problem using svnant info task

Author "Irving, Dave" <dave dot irving at logicacmg dot com>
Full name "Irving, Dave" <dave dot irving at logicacmg dot com>
Date 2006-05-19 04:00:07 PDT
Message 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.subversio​n.svnant.Info.execut​e(Info.java:94)
    at
org.tigris.subversio​n.svnant.SvnTask.exe​cute(SvnTask.java:31​9)
    at
org.apache.tools.ant​.UnknownElement.exec​ute(UnknownElement.j​ava:275)
    at org.apache.tools.ant​.Task.perform(Task.j​ava:364)
    at org.apache.tools.ant​.Target.execute(Targ​et.java:341)
    at org.apache.tools.ant​.Target.performTasks​(Target.java:369)
    at org.apache.tools.ant​.Project.executeTarg​et(Project.java:1214​)
    at
org.apache.tools.ant​.Project.executeTarg​ets(Project.java:106​2)
    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.mai​n(Launcher.java:55)
Caused by: java.lang.NullPointerException
    at
org.tigris.subversio​n.svnclientadapter.j​avahl.JhlInfo2.getFi​le(Unknown
Source)
    at org.tigris.subversio​n.svnant.Info.getVal​ue(Info.java:144)
    at org.tigris.subversio​n.svnant.Info.execut​e(Info.java:85)
    ... 11 more
--- Nested Exception ---
java.lang.NullPointerException
    at
org.tigris.subversio​n.svnclientadapter.j​avahl.JhlInfo2.getFi​le(Unknown
Source)
    at org.tigris.subversio​n.svnant.Info.getVal​ue(Info.java:144)
    at org.tigris.subversio​n.svnant.Info.execut​e(Info.java:85)
    at
org.tigris.subversio​n.svnant.SvnTask.exe​cute(SvnTask.java:31​9)
    at
org.apache.tools.ant​.UnknownElement.exec​ute(UnknownElement.j​ava:275)
    at org.apache.tools.ant​.Task.perform(Task.j​ava:364)
    at org.apache.tools.ant​.Target.execute(Targ​et.java:341)
    at org.apache.tools.ant​.Target.performTasks​(Target.java:369)
    at org.apache.tools.ant​.Project.executeTarg​et(Project.java:1214​)
    at
org.apache.tools.ant​.Project.executeTarg​ets(Project.java:106​2)
    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.mai​n(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.

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

[svn-ant] Problem using svnant info task "Irving, Dave" <dave dot irving at logicacmg dot com> "Irving, Dave" <dave dot irving at logicacmg dot com> 2006-05-19 04:00:07 PDT
Messages per page: