我正在尝试让 svnkit
与 svnant
合作。
这是我的建筑文件:
<path id="svnant.classpath">
<pathelement location="${env.ANT}/../lib/svnant.jar"/>
<pathelement location="${env.ANT}/../lib/svnClientAdapter.jar"/>
<pathelement location="${env.ANT}/../lib/svnkit.jar"/>
<pathelement location="${env.ANT}/../lib/ganymed.jar"/>
</path>
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath" />
<svnSetting
svnkit="true"
javahl="false"
id="svn.settings"/>
<target
name="svnTest">
<svn refid="svn.settings">
<wcversion
path="${basedir}.."
prefix="svn."
/>
<info
target="${basedir}.."
propPrefix="svn.info."/>
</svn>
</target>
当运行此构建文件时, 我得到以下错误 。 svnkit. jar
和 ganymed.jar
在我的蚂蚁/ lib 目录中, 其它我包含在类路径中的东西也是这样。 我做错什么了?
svnTest:
[svn] Missing svnkit dependencies on the classpath !
BUILD FAILED
build.xml:53: Cannot find javahl, svnkit nor command line svn client
切换错误 :
repoCheckDev:
[svn] Missing svnkit dependencies on the classpath !
BUILD FAILED
build.xml:line#: Cannot find javahl, svnkit nor command line svn client
at org.tigris.subversion.svnant.SvnFacade.getClientAdapter(Unknown Source)
at org.tigris.subversion.svnant.SvnTask.executeImpl(Unknown Source)
at org.tigris.subversion.svnant.SvnTask.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
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)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)