|
AntTask
XML Directory Listing Ant TaskA custom task for Apache Ant which acts as an interface to the XML Directory Listing program. DescriptionThe XML Directory Listing Ant task acts as an interface to the XmlDirectoryListing Java class. The task can be used to generate an XML representation of a directory, this could then be taken and transformed further with Ant for different end uses.
UsageThe task needs to be defined in your Ant build file. The definition must point to the xml-dir-listing.jar file which is included the lib directory of your XML Directory listing distribution. <taskdef name="xml-dir-listing"
classname="net.matthaynes.xml.dirlist.AntFileListing"
classpath="/path/to/xml-dir-list.jar"/>XML Directory Listing references two external libraries. You will need to ensure that Ant can find these too, and that they are in the same directory as xml-dir-listing task. The simplest way is to copy the below files into Ant's lib directory:
Please see the External Tasks page in the ant manual for more information on using external tasks and referencing external libraries in Apache Ant Parameters
ExamplesDefine the task in your build file: <taskdef name="xml-dir-listing"
classname="net.matthaynes.xml.dirlist.AntFileListing"
classpath="/path/to/xml-dir-list.jar"/>Using the task on the current directory with depth set to 5 and verbose output: <xml-dir-listing depth="5" verbose="true" srcDir="." destFile="fileList.xml"/> SupportIf you have any issues then please let us know, I will see what I can do. I would also be very interested to hear what platforms and Ant versions people are using as I have not had time to extensivley test this task. | ||||||||||||||||||||||||||||||
<xml-dir-listing/> NOT <xml-dir-list/>
in "Using the Task" section please
@kjetil.midtlie Thanks, have updated page
http://mnatives.com/sitemap.aspx