rzwitserloot / lombok.ast

Robust parser + AST for the java language.
http://projectlombok.org/
MIT License
71 stars 22 forks source link

adding `ant intellij` to lombok.ast? #6

Closed hsanchez closed 10 years ago

hsanchez commented 10 years ago

Hi, Reinier

Do you have any plans to adding the ant intellij task in a near future? I tried adapting both the ant intellij task that appears in your rzwitserloot/lombok project and in rzwitserloot/ivyplusplus (the example) using the ant eclipse task (in lombok.ast/build.xml) as a reference. Unfortunately, I did not get good results. I was getting errors like lombok.ast/build.xml:361: module doesn't support the nested "apt" element. or missing dependencies.

I would appreciate if you could let me know about this. Thanks.

rzwitserloot commented 10 years ago

The element doesn't have an equivalent in intelliJ; intelliJ just finds all annotation processors on the classpath and uses them AFAIK, but the weird thing here is that we build an annotation processor and then want to use that for the project, so I don't quite know how to make that work in intelliJ. Presumably all that really needs to happen is for build/templateProcessor.jar to be on the classpath.

I've added the intellij task to the build.xml (on 'master' branch) with an echo to do just that (manually add that to the classpath of the project) as a workaround for now. If it doesn't work, delete lib/ivyplusplus.jar and rerun; these days ipp will figure out it needs to delete itself for an update, but if your last ant execution is long enough ago, you'll have an IPP version that can't update itself.