假设我已经签出了文件夹BuildI12
中的一个文件夹,我想使用蚂蚁更新它,我该怎么做。?
我不知道如何在蚂蚁中创建自定义任务。
如果我了解您的需求,并且您的意思是从自定义 ant 任务运行 SVN UPDATE,您可以执行以下操作:
<target name="svn_command" description = "run svn update command">
<if> <os family="windows"/>
<then>
<exec dir="." executable="cmd.exe" outputproperty="svnlog.out" failonerror="true" >
<arg line="/c svn update"/>
</exec>
</then>
<else>
<exec executable="svn" outputproperty="svnlog.out">
<arg line=" update"/>
</exec>
</else>
</if>
</target>
显然,您可以做更多技巧,使用占位符并创建可用于不同SVN操作的动态任务。
让我知道这是否符合您的需求。