Convert a .jar file into a .cod file using bb-ant

2019-01-29 12:49发布

I'm working on a Blackberry application (JDE 4.6.1) on a Windows system. I need to convert a .jar file in a .cod file using bb-ant-tools. Does anybody know how to do it? I'm using:

<target name="convert">
        <rapc import="source.jar" destdir="${path}\bin\" output="source"  jdehome="${testing.jde}" generatesourcelist="true">
         <src> 
            <fileset file="${testing_path}\lib\microlog.jar">
             </fileset>
         </src>
        </rapc>  
</target>

Unfortunately I receive back this error message:

[rapc] C:\test\source.jar: error! Duplicate definition for 'net.sfender.AbstarctFileAppender' found in....

which could be the problem?

thanks

1条回答
劫难
2楼-- · 2019-01-29 13:04

Your target is converting microlog.jar, with source.jar as a reference jar. Is that what you want?

If you want to convert source.jar, include it in the src element, and remove it from import.

查看更多
登录 后发表回答