Hi all,

 

In short – I’m trying to open an xml document and run a task on an element and then further tasks on its sub-elements.

 

Full explanation;

 

I’m trying to generate SVN logs using details stored in an XML file.  Using the example below, the api code for the project is in 1 repository, the front ends for the project are in another repository.  I’ve only put 2 in the example but there’s over 50 in the proper list.

 

Example of file;

 

<projects>

<svn repository="svn://localhost/repo1" extension=".xml">

      <project name="api"/>

</svn>

<svn repository="svn://localhost/repo2" extension=".xml">

      <project name="site1"/>

      <project name="site2"/>

</svn>     

</projects>

 

This was my original code to produce the SVN log;

 

<xmltask source="mylist.xml">

<call path="projects/svn/project">

            <param name="repo" path="../@repository" default="n/a"/>

            <param name="project" path="@name" default="n/a"/>

            <param name="extension" path="../@extension" default=""/>

            <actions>

                  <echo>svn log --xml -v @{repo}/@{project}/${codeline} -r${current.tag.rev}:${comparison.tag.rev} > @{project}@{extension} </echo>

          </actions>

      </call>

</xmltask>

 

I had a separate process to get the revisions used to get the log, however, I realised they need to be different per svn.  I though maybe I could use another <Call> in the first calls actions (see below), but that didn’t work.

 

<xmltask source mylist.xml ">

      <call path="projects/svn">

            <param name="repo" path="@repository" default="n/a"/>

            <actions>

                  <ant antfile="log.xml" target ="get-revisions"/>

                  <call path="projects/svn/project">

                        <param name="project" path="@name" default="n/a"/>

                        <actions>

<echo>svn log --xml -v @{repo}/@{project}/${codeline} -r${current.tag.rev}:${comparison.tag.rev} > @{project}@{extension} </echo>

                        </actions>

                  </call>

            </actions>

      </call>

</xmltask>

 

Any idea how I could open mylist.xml, run a task on the each of the <svn> elements and a nested task on the <project> elements within each <svn> element?

 

Any help would be much appreciated.

 

Kind Regards,

Phil Jeary

 


______________________________________________________________________

This email (and any attachments) is confidential and may contain
personal opinions which are not the views of Dovetail Services (UK)
Limited unless specifically stated. If you have received it in error,
please delete it from your system. Do not use, copy or disclose the
information in any way nor act in reliance on it and notify the sender
immediately. Please note that: * Dovetail Services (UK) Limited
monitors all emails sent or received, any further communication will
signify your consent to this.

Dovetail Services (UK) Ltd Registered in England and Wales Number 5412224
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________