Lines 898-905
Link Here
|
898 |
" \n" + |
898 |
" \n" + |
899 |
" Warning options:\n" + |
899 |
" Warning options:\n" + |
900 |
" -deprecation + deprecation outside deprecated code\n" + |
900 |
" -deprecation + deprecation outside deprecated code\n" + |
901 |
" -nowarn disable all warnings\n" + |
901 |
" -nowarn -warn:none disable all warnings\n" + |
902 |
" -warn:none disable all warnings\n" + |
902 |
" -?:warn -help:warn display advanced warning options\n" + |
|
|
903 |
" \n" + |
904 |
" Debug options:\n" + |
905 |
" -g[:lines,vars,source] custom debug info\n" + |
906 |
" -g:lines,source + both lines table and source debug info\n" + |
907 |
" -g all debug info\n" + |
908 |
" -g:none no debug info\n" + |
909 |
" -preserveAllLocals preserve unused local vars for debug purpose\n" + |
910 |
" \n" + |
911 |
" Ignored options:\n" + |
912 |
" -J<option> pass option to virtual machine (ignored)\n" + |
913 |
" -X<option> specify non-standard option (ignored)\n" + |
914 |
" -X print non-standard options and exit (ignored)\n" + |
915 |
" -O optimize for execution time (ignored)\n" + |
916 |
" \n" + |
917 |
" Advanced options:\n" + |
918 |
" @<file> read command line arguments from file\n" + |
919 |
" -maxProblems <n> max number of problems per compilation unit (100 by\n" + |
920 |
" default)\n" + |
921 |
" -log <file> log to a file. If the file extension is ''.xml'', then\n" + |
922 |
" the log will be a xml file.\n" + |
923 |
" -proceedOnError do not stop at first error, dumping class files with\n" + |
924 |
" problem methods\n" + |
925 |
" -verbose enable verbose output\n" + |
926 |
" -referenceInfo compute reference info\n" + |
927 |
" -progress show progress (only in -log mode)\n" + |
928 |
" -time display speed information \n" + |
929 |
" -noExit do not call System.exit(n) at end of compilation (n==0\n" + |
930 |
" if no error)\n" + |
931 |
" -repeat <n> repeat compilation process <n> times for perf analysis\n" + |
932 |
" -inlineJSR inline JSR bytecode (implicit if target >= 1.5)\n" + |
933 |
" -enableJavadoc consider references in javadoc\n" + |
934 |
" -Xemacs used to enable emacs-style output\n" + |
935 |
" \n" + |
936 |
" -? -help print this help message\n" + |
937 |
" -v -version print compiler version\n" + |
938 |
" -showversion print compiler version and continue\n" + |
939 |
"\n"; |
940 |
|
941 |
this.runConformTest( |
942 |
new String[0], |
943 |
" -help -referenceInfo", |
944 |
MessageFormat.format(expectedOutput, new String[] { |
945 |
Main.bind("compiler.name"), |
946 |
Main.bind("compiler.version"), |
947 |
Main.bind("compiler.copyright") |
948 |
// because misc.version is mono-line - reconsider if this changes |
949 |
// MessageFormat.format(expectedOutput, new String[] { |
950 |
// Main.bind("misc.version", new String[] { |
951 |
// Main.bind("compiler.name"), |
952 |
// Main.bind("compiler.version"), |
953 |
// Main.bind("compiler.copyright") |
954 |
// }), |
955 |
// File.pathSeparator |
956 |
}), |
957 |
"", true); |
958 |
} |
959 |
//command line - help |
960 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=144248 |
961 |
// Progressive help text modifies the help options and messages. |
962 |
public void test012b(){ |
963 |
final String expectedOutput = |
964 |
"{0} {1}\n" + |
965 |
"{2}\n" + |
966 |
" \n" + |
967 |
" Warning options:\n" + |
968 |
" -deprecation + deprecation outside deprecated code\n" + |
969 |
" -nowarn -warn:none disable all warnings\n" + |
903 |
" -warn:<warnings separated by ,> enable exactly the listed warnings\n" + |
970 |
" -warn:<warnings separated by ,> enable exactly the listed warnings\n" + |
904 |
" -warn:+<warnings separated by ,> enable additional warnings\n" + |
971 |
" -warn:+<warnings separated by ,> enable additional warnings\n" + |
905 |
" -warn:-<warnings separated by ,> disable specific warnings\n" + |
972 |
" -warn:-<warnings separated by ,> disable specific warnings\n" + |
Lines 962-1007
Link Here
|
962 |
" varargsCast + varargs argument need explicit cast\n" + |
1029 |
" varargsCast + varargs argument need explicit cast\n" + |
963 |
" warningToken + unhandled warning token in @SuppressWarnings\n" + |
1030 |
" warningToken + unhandled warning token in @SuppressWarnings\n" + |
964 |
" \n" + |
1031 |
" \n" + |
965 |
" Debug options:\n" + |
|
|
966 |
" -g[:lines,vars,source] custom debug info\n" + |
967 |
" -g:lines,source + both lines table and source debug info\n" + |
968 |
" -g all debug info\n" + |
969 |
" -g:none no debug info\n" + |
970 |
" -preserveAllLocals preserve unused local vars for debug purpose\n" + |
971 |
" \n" + |
972 |
" Ignored options:\n" + |
973 |
" -J<option> pass option to virtual machine (ignored)\n" + |
974 |
" -X<option> specify non-standard option (ignored)\n" + |
975 |
" -X print non-standard options and exit (ignored)\n" + |
976 |
" -O optimize for execution time (ignored)\n" + |
977 |
" \n" + |
978 |
" Advanced options:\n" + |
1032 |
" Advanced options:\n" + |
979 |
" @<file> read command line arguments from file\n" + |
1033 |
" -? -help print the help message\n" + |
980 |
" -maxProblems <n> max number of problems per compilation unit (100 by\n" + |
|
|
981 |
" default)\n" + |
982 |
" -log <file> log to a file. If the file extension is ''.xml'', then\n" + |
983 |
" the log will be a xml file.\n" + |
984 |
" -proceedOnError do not stop at first error, dumping class files with\n" + |
985 |
" problem methods\n" + |
986 |
" -verbose enable verbose output\n" + |
987 |
" -referenceInfo compute reference info\n" + |
988 |
" -progress show progress (only in -log mode)\n" + |
989 |
" -time display speed information \n" + |
990 |
" -noExit do not call System.exit(n) at end of compilation (n==0\n" + |
991 |
" if no error)\n" + |
992 |
" -repeat <n> repeat compilation process <n> times for perf analysis\n" + |
993 |
" -inlineJSR inline JSR bytecode (implicit if target >= 1.5)\n" + |
994 |
" -enableJavadoc consider references in javadoc\n" + |
995 |
" -Xemacs used to enable emacs-style output\n" + |
996 |
" \n" + |
997 |
" -? -help print this help message\n" + |
998 |
" -v -version print compiler version\n" + |
999 |
" -showversion print compiler version and continue\n" + |
1000 |
"\n"; |
1034 |
"\n"; |
1001 |
|
1035 |
|
1002 |
this.runConformTest( |
1036 |
this.runConformTest( |
1003 |
new String[0], |
1037 |
new String[0], |
1004 |
" -help -referenceInfo", |
1038 |
" -help:warn -referenceInfo", |
1005 |
MessageFormat.format(expectedOutput, new String[] { |
1039 |
MessageFormat.format(expectedOutput, new String[] { |
1006 |
Main.bind("compiler.name"), |
1040 |
Main.bind("compiler.name"), |
1007 |
Main.bind("compiler.version"), |
1041 |
Main.bind("compiler.version"), |