775 |
/** |
/** |
776 |
* Parses command line arguments and subsequentially handles control to the |
* Parses command line arguments and subsequentially handles control to the |
777 |
* startDoclet() method |
* startDoclet() method |
778 |
|
* |
779 |
|
* @param args The command line parameters. |
780 |
|
*/ |
781 |
|
public static int execute(String[] args) |
782 |
|
{ |
783 |
|
try |
784 |
|
{ |
785 |
|
instance.start(args); |
786 |
|
} |
787 |
|
catch (Exception e) |
788 |
|
{ |
789 |
|
return 1; |
790 |
|
} |
791 |
|
|
792 |
|
return 0; |
793 |
|
} |
794 |
|
|
795 |
|
/** |
796 |
|
* @param programName Name of the program (for error messages). *disregarded* |
797 |
|
* @param args The command line parameters. |
798 |
|
* @returns The return code. |
799 |
|
*/ |
800 |
|
public static int execute(String programName, |
801 |
|
String[] args) |
802 |
|
{ |
803 |
|
return execute(args); |
804 |
|
} |
805 |
|
|
806 |
|
/** |
807 |
|
* @param programName Name of the program (for error messages). |
808 |
|
* @param defaultDocletClassName Fully qualified class name. |
809 |
|
* @param args The command line parameters. |
810 |
|
* @returns The return code. |
811 |
|
*//* |
812 |
|
public static int execute(String programName, |
813 |
|
String defaultDocletClassName, |
814 |
|
String[] args) |
815 |
|
{ |
816 |
|
// not yet implemented |
817 |
|
}*/ |
818 |
|
|
819 |
|
/** |
820 |
|
* @param programName Name of the program (for error messages). |
821 |
|
* @param defaultDocletClassName Fully qualified class name. |
822 |
|
* @param args The command line parameters. |
823 |
|
* @returns The return code. |
824 |
|
*//* |
825 |
|
public static int execute(String programName, |
826 |
|
String defaultDocletClassName, |
827 |
|
String[] args) |
828 |
|
{ |
829 |
|
// not yet implemented |
830 |
|
}*/ |
831 |
|
|
832 |
|
/** |
833 |
|
* @param programName Name of the program (for error messages). |
834 |
|
* @param errWriter PrintWriter to receive error messages. |
835 |
|
* @param warnWriter PrintWriter to receive error messages. |
836 |
|
* @param noticeWriter PrintWriter to receive error messages. |
837 |
|
* @param defaultDocletClassName Fully qualified class name. |
838 |
|
* @param args The command line parameters. |
839 |
|
* @returns The return code. |
840 |
|
*//* |
841 |
|
public static int execute(String programName, |
842 |
|
PrintWriter errWriter, |
843 |
|
PrintWriter warnWriter, |
844 |
|
PrintWriter noticeWriter, |
845 |
|
String defaultDocletClassName, |
846 |
|
String[] args) |
847 |
|
{ |
848 |
|
// not yet implemented |
849 |
|
}*/ |
850 |
|
|
851 |
|
/** |
852 |
|
* Parses command line arguments and subsequentially handles control to the |
853 |
|
* startDoclet() method |
854 |
* |
* |
855 |
* @param args |
* @param args |
856 |
* Command line arguments, as passed to the main() method |
* Command line arguments, as passed to the main() method |