【问题标题】:Preprocessor in Blackberry (through bb-ant-tools)黑莓中的预处理器(通过 bb-ant-tools)
【发布时间】:2011-12-03 14:03:30
【问题描述】:

有一个项目有#preprocess 指令。 IE。文件开头有#preprocess 指令,文件内有类似#ifdef BlackBerrySDK6.0.0 的东西。

虽然在eclipse中编译得很好,但是使用bb-ant-tools还是有问题。它的行为就好像没有预处理:在不应该包含的字符串上编译错误。

我有 build.properties 文件;它通过<property file="build.properties"><jdp file="build.properties"> 包含在内。我有BlackBerrySDK5.0.0=true

【问题讨论】:

    标签: blackberry ant preprocessor


    【解决方案1】:

    我自己意识到了。我应该在任务属性中声明 defined="blabla":<rapc output="foo" destdir="bar" defines="blabla">

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多