简体   繁体   English

蚂蚁脚本执行svn设置svn:externals不起作用

[英]Ant script execute svn to set svn:externals doesn't work

In Ant's build.xml, I use Ant's exec task to call svn with the args like this: 在Ant的build.xml中,我使用Ant的exec任务通过如下所示的args调用svn:

 <exec executable="svn" outputproperty="svnoutput" output="D:\log.txt">
    <arg line="ps svn:externals . -F E:\Dailybuild\${client_path}\text.txt"/>
 </exec>

And what in my text.txt file is: 在我的text.txt文件中是什么:

 Res\Txt https://raphaelchen-pc1.****.com:8443/svn/QQSG_Resource/trunk

When I build my project with this build.xml, the output log shows: 当我使用build.xml构建项目时,输出日志显示:

 property 'svn:externals' set on '.'

It seems that I have set svn:externals to The path("Res\\Txt") successfully, 看来我已成功将svn:externals设置为The path(“ Res \\ Txt”)

but when I use TortoiseSvn to check whether this set works, there is nothing happened. 但是,当我使用TortoiseSvn检查此设置是否有效时,什么都没有发生。

there is no property been set in my work copy. 我的工作副本中未设置任何属性。

Maybe the path(Res\\Txt) int text.txt is not right? 也许路径(Res \\ Txt) int text.txt是不正确的?

Because when I use Windows's cmd to set this property, it succeed. 因为当我使用Windows的cmd设置此属性时,它会成功。

First I go to my work copy's directory (E:\\Dailybuild\\deployForDelta) 首先,我进入工作副本的目录 (E:\\ Dailybuild \\ deployForDelta)

and execute svn ps command: 并执行svn ps命令:

 svn ps svn:externals . -F E:\Dailybuild\deployForDelta\text.txt

Then use Tortoise SVN to check the results and find the property has been set. 然后使用Tortoise SVN检查结果并找到已设置的属性。

Why the action in script does not work? 为什么脚本中的操作不起作用? Anyone can help me? 有人可以帮助我吗?

Is the current directory ( . ) the svn working copy directory that you need to set a property to? 当前目录( . )是您要为其设置属性的svn工作副本目录吗?

Maybe you need to add dir="${PATH_TO_YOUR_SVN_WORKING_COPY}" to the <exec> task. 也许您需要将dir="${PATH_TO_YOUR_SVN_WORKING_COPY}"<exec>任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM