0

这是 Blackberry Development Forums 上一个主题的重新发布,但我没有得到任何答案,所以我想我会尝试 SO。

我有一个我开发的名为 Ichabod 的内部库,它是我们的一个应用程序 Spyder 所需的,它在 Blackberry 4.5.0 操作系统上运行(我们最初的目标是用于 8330 设备)。我使用 bb-ant-tools 编译库,它位于一个单独的项目中,并将其部署到 C:\Program Files\eclipse\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.21 \组件\模拟器。Spyder 应用程序在 eclipse 插件中调试得很好(我正在使用带有 1.1.2 版本的 RIM 插件的 Galileo)。

然而,今天我在对代码进行了几次更改后(在 Ichabod 中没有进行任何代码更改)去调试 Spyder 应用程序,发现应用程序突然找不到 Ichabod 模块。我注意到我的 eclipse 插件文件夹中现在有一个 net.rim.ejde.componentpack4.5.0_4.5.0.28\ 目录,所以我想也许我在没有意识到的情况下更新了组件包,我调整了 Ichabod 的目标路径库,并使用 bb-ant-tools 对其进行了重建。同样的问题。因此,我尝试从 4.5.0.21 和 4.5.0.28 目录中删除 .cod 和所有相关文件,重新编译 Ichabod 库以部署到这两个位置,发现它适用于 4.5.0.21,但不适用于 4.5.0.28 (它也没有在“设置”下的模块屏幕中列出)。

我已验证 .cod 文件存在于 components\simulator 文件夹中,但我似乎无法弄清楚为什么模拟器无法识别该文件。

有什么建议么?

附上我的 bb-ant-tools build.xml 脚本。

谢谢,

~斯科特

    <taskdef resource="bb-ant-defs.xml" classpath="lib/bb-ant-tools.jar" />

    <property name="jdehome" value="C:\Program Files\eclipse\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.28\components" />

    <property name="simulator" value="${jdehome}\simulator" />

    <property name="bin" value="${jdehome}\bin" />

    <target name="deploy" depends="build" description="Builds and Deploys Project (installs to simulator)">
        <copy todir="${simulator}" overwrite="true">
            <fileset dir="output">
                <include name="*.cod" />
                <include name="*.debug" />
                <include name="*.csl" />
                <include name="*.cso" />
            </fileset>
        </copy>
    </target>

    <target name="clean" description="Cleans the output directory">
        <delete dir="output"/>
        <mkdir dir="output"/>
    </target>

    <target name="build" depends="clean" description="Builds Project">
        <rapc jdehome="${jdehome}" 
            destdir="output" 
            output="Ichabod" 
            quiet="false">

            <jdp type="library" 
                title="Ichabod Library" 
                vendor="My Company" 
                version="0.3" 
                description="Ichabod Library for Mobile Applications" 
                arguments="" 
                systemmodule="false" 
                runonstartup="false" 
                startuptier="7" 
                ribbonposition="0">
            </jdp>

            <src>
                <fileset dir=".">
                    <include name="src/**/*.java" />
                    <!-- <include name="resource/**/*.*" /> -->
                </fileset>
            </src>
        </rapc>
    </target>
</project>
4

1 回答 1

1

So it appears, after removing the 4.5.0.28 plugin from Eclipse and reinstalling it, that this was what was causing my troubles. I don't know whether this has anything to do with it, but I also removed the JDE 4.5.0 library (which was correctly set at version 28) from the build path of the Ichabod project and replaced it with the same JDE.

After all of this nonsense, my library now shows up in the simulator. Thanks to all who looked at this. Hopefully this will help someone else.

于 2010-07-27T01:31:34.383 回答