Community
Participate
Working Groups
this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_6);
this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_6);
// TODO FIXME (olivier) REMOVE BEFORE 3.3 once the APT1.6 IS WORKING FINE
for (String option : options ) {
if ("-processorpath".equals(option) //$NON-NLS-1$
|| ("-processor".equals(option))) { //$NON-NLS-1$
this.options.put(CompilerOptions.OPTION_Process_Annotations, CompilerOptions.ENABLED);
this.options.put(CompilerOptions.OPTION_DocCommentSupport, CompilerOptions.ENABLED);
break;
}
ArrayList<String> allOptions = new ArrayList<String>();
if (options != null) {
for (Iterator<String> iterator = options.iterator(); iterator.hasNext(); ) {
printUsage();
return;
// enable annotation processing by default in batch mode: 185768
this.options.put(
CompilerOptions.OPTION_Process_Annotations,
CompilerOptions.ENABLED);
final int INSIDE_CLASSPATH_start = 1;
final int INSIDE_DESTINATION_PATH = 3;
final int INSIDE_TARGET = 4;
if (currentArg.equals("-processorpath")) { //$NON-NLS-1$
mode = INSIDE_PROCESSOR_PATH_start;
continue;
if (currentArg.equals("-processor")) { //$NON-NLS-1$
mode = INSIDE_PROCESSOR_start;
if (currentArg.equals("-proc:only")) { //$NON-NLS-1$
if (ENABLED.equals(optionValue)) {
this.processAnnotations = true;
this.storeAnnotations = true; // annotation processing requires annotation to be stored
this.docCommentSupport = true; // annotation processing requires javadoc processing
} else if (DISABLED.equals(optionValue)) {
this.processAnnotations = false;
this.storeAnnotations = false;