Question

In Ant's build.xml, I use Ant's exec task to call svn with the args like this:

 <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:

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

When I build my project with this build.xml, the output log shows:

 property 'svn:externals' set on '.'

It seems that I have set svn:externals to The path("Res\Txt") successfully,

but when I use TortoiseSvn to check whether this set works, there is nothing happened.

there is no property been set in my work copy.

Maybe the path(Res\Txt) int text.txt is not right?

Because when I use Windows's cmd to set this property, it succeed.

First I go to my work copy's directory(E:\Dailybuild\deployForDelta)

and execute svn ps command:

 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.

Why the action in script does not work? Anyone can help me?

Was it helpful?

Solution

Is the current directory (.) the svn working copy directory that you need to set a property to?

Maybe you need to add dir="${PATH_TO_YOUR_SVN_WORKING_COPY}" to the <exec> task.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top