Is the an API for ANT?
Posted: 2007-09-11 03:22:49
Hi, Thanks for the great program!
I am in process of writing several scripts to aid in my "media management." Currently I MANUALLY export several fields from my ANT DB to a text file (call this DATA.TXT). I then open DATA.TXT from within a Visual Basic script for some further processing.
I would like the VB script to initiate the generation of DATA.TXT, instead of manually starting ANT, and manually exporting every time the ANT DB is changed.
I can think of a couple of ways to do this, but perhaps there is an easier way?
1) Write my own "Read" procedure for the underlying ANT binary database- bad option
2) Write my own parser to extract the required fields from the XML representation of the ANT database- better option, but still bad
3) Is there some kind of API that I can call from within VB to start ANT, open a specified database, then export the required fields to a specified file?
4) Are there any command line utilities already written which can be used to open a database, and export the required fields?
(I am comparing this to MS Excel, in which I can start the application, open a file, process the file, then save the file.... all from within an external VB script)
Thank You!
I am in process of writing several scripts to aid in my "media management." Currently I MANUALLY export several fields from my ANT DB to a text file (call this DATA.TXT). I then open DATA.TXT from within a Visual Basic script for some further processing.
I would like the VB script to initiate the generation of DATA.TXT, instead of manually starting ANT, and manually exporting every time the ANT DB is changed.
I can think of a couple of ways to do this, but perhaps there is an easier way?
1) Write my own "Read" procedure for the underlying ANT binary database- bad option

2) Write my own parser to extract the required fields from the XML representation of the ANT database- better option, but still bad

3) Is there some kind of API that I can call from within VB to start ANT, open a specified database, then export the required fields to a specified file?
4) Are there any command line utilities already written which can be used to open a database, and export the required fields?
(I am comparing this to MS Excel, in which I can start the application, open a file, process the file, then save the file.... all from within an external VB script)
Thank You!