eclipse java annotation processing

后端 未结 3 1639
陌清茗
陌清茗 2021-02-14 07:01

I want to do something using Annotation processing in eclipse jdt.

Eclipse jdtapt help tells me I should configure things on the java/compiler/annotation processing pref

3条回答
  •  伪装坚强ぢ
    2021-02-14 07:42

    I autogenerate my eclipse project files, so I prefer setting this stuff w/o using the UI ...

    project/.factorypath:

    
        
    
    

    project/.settings/org.eclipse.jdt.apt.core.prefs:

    eclipse.preferences.version=1
    org.eclipse.jdt.apt.aptEnabled=true
    org.eclipse.jdt.apt.genSrcDir=.apt_generated
    org.eclipse.jdt.apt.reconcileEnabled=true
    

    project/.settings/org.eclipse.jdt.core.prefs:

    eclipse.preferences.version=1
    org.eclipse.jdt.core.compiler.processAnnotations=enabled
    

提交回复
热议问题