1

I want to checkout project, get the revision number, build jar with that number in menifest, on the server with a web interface. There are some other minor steps in the whole process, but that's the main goal. everything in the build script is working fine locally, but I always get stuck when it is done on the server. when I try to use svnant task on the project I checked out, it's telling me the parent dir is not a working copy, so I tried a copy first, then the whole project again into that copy, it's still telling me that the parent dir (the first edition) is not a working copy.

what sould I do?

p.s. I have tried all possible combination of , , , . none of them worked. can anyone else get the in svnant work? I always get error as following:

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:288) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) ..........

can anyone help with either question?

Thank you

4

1 回答 1

1

请检查您是否在服务器和客户端上安装了相同版本的 SVN (svn --version)。

另外,我想提醒您,svnant 绑定到 SVN 1.5,如果在服务器端您有 1.6 版本,您可以获得类似的行为。

如何解决这个问题:将你的脚本从 javahl 切换到 svnkit。即将 svnkit jars 添加到你的类路径并添加到所有与 svnant 相关的命令中适当的提示:

javahl="false" svnkit="true"
于 2009-07-07T07:40:04.657 回答