/* 65 */ usage();
/* 66 */ System.exit(1);
/* 67 */ return;
/* */ }
/* 69 */ String outputFile = "metadata-aop.xml";
/* 70 */ JavaDocBuilder builder = new JavaDocBuilder(new AnnotationDocletTagFactory());
/* 71 */ for (int i = 0; i < args.length; i++)
/* */ {
/* 73 */ if (args[i].equals("-o"))
/* */ {
/* 75 */ i++; outputFile = args[i];
/* */ }
/* */ else {
/* 78 */ if (args[i].equals("-xml"))
/* */ {
/* */ continue;
/* */ }
/* 82 */ File f = new File(args[i]).getCanonicalFile();
/* 83 */ builder.addSource(new FileReader(f));
/* */ }
/* */ }
/* 86 */ FileOutputStream os = new FileOutputStream(outputFile);
/* 87 */ PrintWriter pw = new PrintWriter(os);
/* 88 */ pw.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
/* 89 */ pw.println("<aop>");
/* 90 */ for (int i = 0; i < builder.getSources().length; i++)
/* */ {
/* 92 */ JavaSource src = builder.getSources()[i];
/* 93 */ for (int j = 0; j < src.getClasses().length; j++)
/* */ {
/* 95 */ JavaClass clazz = src.getClasses()[j];
/* 96 */ compileClass(clazz, pw);
/* */ }