Commit de9538cf authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Take the XML directory instead of all the XML files as parameter for the script.

parent fe76b2f4
......@@ -17,6 +17,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
import argparse
import os
import string
import sys
import xml.etree.ElementTree as ET
......@@ -548,6 +549,10 @@ class Project:
def initFromDir(self, xmldir):
files = [ os.path.join(xmldir, f) for f in os.listdir(xmldir) if (os.path.isfile(os.path.join(xmldir, f)) and f.endswith('.xml')) ]
def check(self):
for c in self.classes:
for name, p in
......@@ -700,7 +705,7 @@ def main(argv = None):
argparser.add_argument('-o', '--outputfile', metavar='outputfile', type=argparse.FileType('w'), help="Output XML file describing the Linphone API.")
argparser.add_argument('--verbose', help="Increase output verbosity", action='store_true')
argparser.add_argument('--pretty', help="XML pretty print", action='store_true')
argparser.add_argument('xmlfile', metavar='xmlfile', type=argparse.FileType('r'), nargs='+', help="XML file generated by doxygen.")
argparser.add_argument('xmldir', help="XML directory generated by doxygen.")
args = argparser.parse_args()
if args.outputfile == None:
args.outputfile = open('api.xml', 'w')
......@@ -709,7 +714,7 @@ def main(argv = None):
project.verbose = True
if args.pretty:
project.prettyPrint = True
gen = Generator(args.outputfile)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment