Hi folks,
In another question - http://stackoverflow.com/questions/3530181/getting-directory-listing-from-svn-for-use-in-ant-dropdown/3546043#3546043
I asked about how I can connect SVN up to my ANT scripts directly. The answer I got was really good and follows the lines of exporting a directory listing from SVN as XML and then using XSL to build the form.
I've no experience with XSL so I was wondering if anyone who has might be able to give me any pointers? More specifically with building forms in ANTForms through XSL. Their website doesn't seem to mention anything about using it and I can't find anything on Google.
Any help is appreciated.
Cheers, James
Additional Info...
Here's a small sample of the XML I'm getting back from SVN.
<?xml version="1.0"?>
<lists>
<list path="https://mydomain.com/svn/website/tags">
<entry kind="dir">
<name>archive</name>
<commit revision="1337">
<author>itncj</author>
<date>2010-02-17T12:21:22.342500Z</date>
</commit>
</entry>
<entry kind="dir">
<name>milestone 1-0-0</name>
<commit revision="1302">
<author>jcb4337</author>
<date>2010-02-12T10:15:00.282625Z</date>
</commit>
</entry>
<entry kind="dir">
<name>milestone 1-0-0b</name>
<commit revision="1329">
<author>itncj</author>
<date>2010-02-17T12:08:56.248750Z</date>
</commit>
</entry>
</list>
All I'm needing from this is the name nodes so I can build a form of the following structure -
- SOME TITLE LABEL
- LABEL | TEXTFIELD
- SVN CALL1 NAMES IN A DROPDOWN
- SVN CALL2 NAMES IN A DROPDOWN
- SVN CALL3 NAMES IN A DROPDOWN
- YES / NO <- Radio button - For releasing the core files of our applications framework
- SVN CALL4 NAMES IN A DROPDOWN <- Which version of the core
- Test / Production /> <- Radio Button - the environment we're wanting to release to
- PASSWORD TEXTFIELD
- DEPLOY BUTTON
- CANCEL BUTTON
Hope that makes sense but what I'm needing to do is make x4 SVN calls, one for each repository which holds our projects files ( the main project files, associated components, plugins & core ) and populate these dropdowns using ANTForm's selectionProperty (http://antforms.sourceforge.net/usageaf.html).
There is more I need to do beyond that (like append "Trunk" to the start of each dropdown) but one step at a I time.
Thanks again, James