问题
I need to know how to use an an Ant tool for preprocessing in Blackberry. I have a project which needs to be used in 4.6 and 5.0 versions of Blackberry, since JDE4.6 doesn't support preprocessor. I need to know how we can use Ant tool in Eclipse?
Any sites or example will do.
I referred this site.
回答1:
http://www.blackberryforums.com/developer-forum/138210-setup-up-eclipse-blackberry-development.html
and
http://bb-ant-tools.sourceforge.net/docs
This both links will be very helpful to you as a use Ant tool in blackberry eclipse.
回答2:
Eclipse has a versioning preprocessor plugin. It's like a preprocessor who's only commands are #define and #ifdef
However I wanted something more myself. I don't know how to use Ant, but I did just manage to get the C preprocessor working in Eclipse on windows for java, using the non-Ant Builders and some glue in Ruby. I wanted it for an android project, maybe for similar reasons to why you would want it for Blackberry.
Since I was looking for an answer on Stackoverflow before I rolled my own and didn't find one, I'm copying my post into a few questions like this one:
https://stackoverflow.com/a/10497206/1137626
来源:https://stackoverflow.com/questions/10442995/how-to-use-ant-in-eclipse-for-preprocessing