junkdog / artemis-odb

A continuation of the popular Artemis ECS framework
BSD 2-Clause "Simplified" License
779 stars 112 forks source link

[CLI] add command for configuring eclipse projects with AP #211

Closed junkdog closed 10 years ago

junkdog commented 10 years ago

dl annotation processor jar into project

add to .settings/org.eclipse.jdt.core.prefs:

org.eclipse.jdt.core.compiler.processAnnotations=enabled

add to .factorypath

<factorypath>
    <factorypathentry id="/${PROJECT}/artemis-odb-processor-0.8.0.jar"
        kind="WKSPJAR"
        enabled="true"
        runInBatchMode="false"/>
</factorypath>

create and add source folder src-generated

eclipse.preferences.version=1
org.eclipse.jdt.apt.aptEnabled=true
org.eclipse.jdt.apt.genSrcDir=src-generated
org.eclipse.jdt.apt.reconcileEnabled=true
junkdog commented 10 years ago

Alternatively, check if this solves it: http://stackoverflow.com/questions/1480912/setup-java-6-annotation-processing-configuration-for-eclipse-compiler-with-maven