- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如果 SvnAnt <export>
有错误,Ant <loadfile>
任务将在控制台上显示所有内容。
<svn refid="svn.settings" logFile="C:/Logfile.log">
<export destpath="LOCAL Location" srcUrl="Source Url" />
</svn>
<loadfile property="svnLog" srcFile="C:/Logfile.log"/>
<echo>${svnLog}</echo>
[echo] <Export> started ...
[echo] export --no-auth-cache -r HEAD https://lbsm8-svn.path.local/svn/DB_Scripts/SCRIPTS/Reporting/FTR/ORAX/ftr1241000000430105_orax.pbd D:\Copyof\anttt\RET\ORA
[echo] svn: E170000: URL'https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-rng'
[echo] <Export> failed.
[echo] the execution failed for some reason. cause: Can't export
[echo] at org.tigris.subversion.svnant.commands.SvnCommand.ex(Unknown Source)
[echo] at org.tigris.subversion.svnant.commands.Export.execute(Unknown Source)
[echo] at org.tigris.subversion.svnant.commands.SvnCommand.executeCommand(Unknown Source)
[echo] at org.tigris.subversion.svnant.SvnTask.executeImpl(Unknown Source)
[echo] at org.tigris.subversion.svnant.SvnTask.execute(Unknown Source)
[echo] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
我可以只从日志文件中显示这一点而忽略其余部分吗?
[echo] svn: E170000: URL'https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-rng'
最佳答案
<linecontains>
FilterChain可以给<loadfile>
从文件中提取您想要的行:
<loadfile property="svnLog" srcFile="C:/Logfile.log">
<filterchain>
<linecontains>
<contains value="svn: E170000:"/>
</linecontains>
</filterchain>
</loadfile>
<echo>${svnLog}</echo>
[echo] svn: E170000: URL'https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-rng'
关于java - 使用 Ant 回显 SvnAnt 错误消息的单行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42746637/
我下载并安装了 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 进行检查时……结果我收到了一条与不兼容版本相关的错误消息,因此我不得不使用降级脚本
我是一名优秀的程序员,十分优秀!