在我的build.xml中,我有:
<svn javahl="false" svnkit="true">
<wcVersion path="."/>
</svn>
但是当我在Linux命令行上使用ant dist
进行构建时,会得到:
$ ant dist
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Buildfile: /home/one/sp5/h-cs.sp5.uplift/sp5/build.xml
-init:
clean:
-ant-contrib:
-setsvnrevision:
[svn] <WcVersion> started ...
BUILD FAILED
/home/one/sp5/h-cs.sp5.uplift/sp5/build.xml:75: java.lang.NullPointerException
at org.tigris.subversion.svnant.commands.WcVersion.getWorkingCopySumary(Unknown Source)
at org.tigris.subversion.svnant.commands.WcVersion.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:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:853)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
我认为它没有从SVN中获得任何好处,但是我看不出来,因为我没有看到任何证据表明它消耗了url。
有什么想法吗?