Java (Eclipse) - Conditional compilation

后端 未结 3 1546
慢半拍i
慢半拍i 2021-01-01 05:11

I have a java project that is referenced in j2me project and in android project. In this project i would like to use conditional compilation.

Something like...

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-01 06:03

    Eclipse MTJ project provides preprocessing support as documented . This support was mainly targeted for tackling fragmentation problems on JavaME. I have not tested the preprocessing support together with the Android tooling but it may just work.

提交回复
热议问题