2010-05-16 47 views
3

使用Java的APT處理器調用Eclipse編譯器的正確方法是什麼?帶APT的Eclipse編譯器

我使用編譯器

<dependency> 
    <groupId>org.eclipse.jdt.core.compiler</groupId> 
    <artifactId>ecj</artifactId> 
    <version>3.5.1</version> 
</dependency> 

以下Maven依賴我想測試的APT處理器,除了javac的Eclipse編譯器。

回答

0

我使用自定義構建器完成了此操作。 右鍵項目 - >屬性 - >建設者 設置一個新的使用apt

0

AndroidAnnotations是一個基於使用APT生成基於註釋的Java代碼的框架。

該框架使用Maven作爲默認構建環境,並具有關於如何將AndroidAnnotations集成到基於maven的項目的文檔。

我想你會通過查看代碼找到所需的全部內容。

你可以看看到: *展示頁面:http://androidannotations.org/ * GitHub的庫:https://github.com/excilys/androidannotations