FinalBuilder and the subversion 'List' Command

When I run the project build interactively I want it to display an 'Enhanced Prompt for Variables' dialog, and display a list of the available subversion branches and tags for my project, so I can choose one before the build proceeds.

I know that from the command prompt I can use svn list to generate the lists of branches and tags, so I thought it would be straightforward to automate what I need.

However, I'm puzzled that there's no 'Subversion list' action.  Why is this?

I know there's a 'Subversion generic' action, but when I use that to run the subversion 'list' command and log the output to a variable, the variable ends up with the command line switches and the output from the list command.  I could use this method if there was some way of putting just the output of the svn list command into the variable.

I also tried using the 'Subversion info' command.  If I run this from the command line I can specify a recursion depth so the results contain all the child folders of the .\branches or .\tags folders, but the 'Subversion info' action offers no way of specifying the recursion depth, so I can't get the subfolders I need.

Or am I tackling this the wrong way? I hope there's an easy answer.

BrianT

I also tried using the svn --xml command-line switch, but when I log the output to a variable, the variable ends up empty, although the build log shows that the command actually produced some XML. Puzzled…
B

Hi Brian

At this stage there are only actions for the most common Subversion commands, the Generic action allows you to run any Subversion command. The list command can be run using this action.

I was not able to reproduce the issue with the empty output variable, which build are you using?

I am able to use the Subversion Generic action to run the info command and specify --xml and --depth=infinity as the command line arguments. I then use a simple script to remove the non-xml data from the output variable so that I can use the FinalBuilder Xml actions to manipulate output data as I wish.

Regards,
Steve

Hi Steve,

Can you share the script to remove the non-xml data from the output variable ?

Thanks,
Venkat