src/share/classes/com/sun/tools/apt/main/Main.java

changeset 331
d043adadc8b6
parent 285
4ce1c1400334
child 497
16b9b7f45933
equal deleted inserted replaced
330:631425840408 331:d043adadc8b6
62 * <p><b>This is NOT part of any API supported by Sun Microsystems. 62 * <p><b>This is NOT part of any API supported by Sun Microsystems.
63 * If you write code that depends on this, you do so at your own 63 * If you write code that depends on this, you do so at your own
64 * risk. This code and its internal interfaces are subject to change 64 * risk. This code and its internal interfaces are subject to change
65 * or deletion without notice.</b> 65 * or deletion without notice.</b>
66 */ 66 */
67 @SuppressWarnings("deprecation")
67 public class Main { 68 public class Main {
68 69
69 /** For testing: enter any options you want to be set implicitly 70 /** For testing: enter any options you want to be set implicitly
70 * here. 71 * here.
71 */ 72 */
778 779
779 // For testing: assume all arguments in forcedOpts are 780 // For testing: assume all arguments in forcedOpts are
780 // prefixed to command line arguments. 781 // prefixed to command line arguments.
781 processArgs(forcedOpts); 782 processArgs(forcedOpts);
782 783
783
784 /* 784 /*
785 * A run of apt only gets passed the most recently generated 785 * A run of apt only gets passed the most recently generated
786 * files; the initial run of apt gets passed the files from 786 * files; the initial run of apt gets passed the files from
787 * the command line. 787 * the command line.
788 */ 788 */
790 java.util.List<String> origFilenames; 790 java.util.List<String> origFilenames;
791 try { 791 try {
792 // assign args the result of parse to capture results of 792 // assign args the result of parse to capture results of
793 // '@file' expansion 793 // '@file' expansion
794 origFilenames = processArgs((args=CommandLine.parse(args))); 794 origFilenames = processArgs((args=CommandLine.parse(args)));
795
796 if (options.get("suppress-tool-api-removal-message") == null) {
797 Bark.printLines(out, getLocalizedString("misc.Deprecation"));
798 }
799
795 if (origFilenames == null) { 800 if (origFilenames == null) {
796 return EXIT_CMDERR; 801 return EXIT_CMDERR;
797 } else if (origFilenames.size() == 0) { 802 } else if (origFilenames.size() == 0) {
798 // it is allowed to compile nothing if just asking for help 803 // it is allowed to compile nothing if just asking for help
799 if (options.get("-help") != null || 804 if (options.get("-help") != null ||

mercurial