- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想在 Eclipse 中使用 SVNAnt。但是当我运行脚本时,我收到以下消息:
Buildfile: X:\XXX\bin\ant\axis_bujava.xml
[typedef] Could not load definitions from resource org/tigris/subversion/svnant/svnantlib.xml. It could not be found.
testSVNAnt:
BUILD FAILED
X:\XXX\bin\ant\axis_bujava.xml:11: Problem: failed to create task or type svn
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
这是 Ant 构建文件:
<?xml version="1.0"?>
<project default="testSVNAnt" basedir=".">
<path id="path.svnant">
<pathelement location="${basedir}/svnant.jar"/>
<pathelement location="${basedir}/svnClientAdapter.jar"/>
</path>
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="path.svnant" />
<target name="testSVNAnt">
<svn username="username" password="pass">
<checkout url="svn://svnurl" destPath="localpath" revision="HEAD"/>
</svn>
<echo message= "Subversion repository url: ${repository.url}" />
</target>
</project>
JAR 文件当然位于 basedir 中。我找不到类似的问题,也找不到任何解决方案。
最佳答案
它终于可以使用 SvnAnt 1.3.1 工作了。
使用此代码结帐工作正常:
<?xml version="1.0"?>
<project default="main" basedir=".">
<path id="path.svnant">
<pathelement location="${basedir}/svnant.jar" />
<pathelement location="${basedir}/svnClientAdapter.jar" />
<pathelement location="${basedir}/svnjavahl.jar" />
</path>
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="path.svnant" />
<target name="main">
<svn>
<checkout url="svn://xxx" destPath="X:/XXX" revision="HEAD" />
</svn>
</target>
</project>
感谢您的帮助。
关于eclipse - 在 eclipse 中使用 SVNAnt 构建失败(无法从资源加载定义),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8138807/
我下载并安装了 SVNAnt 1.3.0、Ant 1.8 和 Java 1.6。 当我尝试通过 https 进行简单的结帐时,我得到一个 java.lang.NoClassDefFoundError:
我已经在我的系统上安装了一个更新版本的 svn 到 ~my/home/bin 并放置了它的路径。所以现在从命令行使用更新版本的 svn 代替位于/usr/bin/中的旧版本。 但是 svnant 一直
我有一个需要从 Subversion checkout 目录的 Ant 脚本。这可以使用 svnant/svnkit。但是,Subversion 访问是经过身份验证的,我不想将我的用户密码存储在文件中
如果 SvnAnt 有错误,Ant 任务将在控制台上显示所有内容。 ${svnLog} [echo] started ... [echo] export --no-auth-cach
我正在尝试让 svnkit 与 svnant 一起使用。 这是我的构建文件:
我对 Ant 和 SvnAnt 的了解足够危险。不久前我将 build.xml 和 .properties 文件放在一起,现在我遇到了一些问题,我担心我超出了我的范围。 简单的场景。我有一个 SvnA
我正在维护一个构建系统,该系统使用一个目录中的 svnant 来更新另一个目录中的大量项目。然后它移动到那些已更新的项目之一,并进行实际构建。 从那个主要项目做所有事情是否安全?主工程可以用svnan
我想在 Eclipse 中使用 SVNAnt。但是当我运行脚本时,我收到以下消息: Buildfile: X:\XXX\bin\ant\axis_bujava.xml [typedef] Coul
我正在使用tortoise svn,最近我更新到了1.7版本。尽管如此,在我们的构建系统(ant 脚本)中,我们使用 svnant lib(为了获取当前修订号,我们将其用作版本号)。因此无法再构建项目
我正在使用 SVNANT 在我的 Windows XP 机器上检查我的项目目录。我第一次使用 tortoiseSVN 进行检查时……结果我收到了一条与不兼容版本相关的错误消息,因此我不得不使用降级脚本
我是一名优秀的程序员,十分优秀!