Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: Ant build.xml, device complains about Secure API access

P.S. As an experiment, try adding the following line to the .cso file then run the SignatureTool:

52525400=RIM Runtime API

Developer
Posts: 18
Registered: ‎09-02-2009
My Device: Not Specified

Re: Ant build.xml, device complains about Secure API access

Hi klyubin,

 

Solved the problem, it was my fault: my build task did not copy over the .csl file! Once I edited the build file to copy over some of the other generated files into the build directory, the signature tool recognized the need to sign RRT.

 

FYI, adding that line that you recommended to my .cso file also triggered the right required signatures in the signature tool.

 

Thanks a lot for all of your help sir, kudos to you!

Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: Ant build.xml, device complains about Secure API access

[ Edited ]

You're welcome!

 

P.S. I think you marked the wrong post as the solution. Your preceding post seems like the right solution.

 

P.P.S. Looks like some other Ant tasks in your Ant file aren't taking the .csl file into account either...

Developer
Posts: 18
Registered: ‎09-02-2009
My Device: Not Specified

Re: Ant build.xml, device complains about Secure API access

Thanks - you're right Smiley Happy fixed.

New Member
Posts: 1
Registered: ‎01-19-2012
My Device: BlackBerry curve
My Carrier: szd

Re: Ant build.xml, device complains about Secure API access

why this not compile and sign....


<project name="Finance" default="sign">
<taskdef resource="bb-ant-defs.xml" classpath="C:\bb-ant-tools-1.2.13-bin(1)\bb-ant-tools.jar" />
<property name="jde.home" location="C:\Eclipse\plugins\net.rim.ejde.componentpack4.7.0_4.7.0.57\components" />

<property name="project.name" value="Finance" />
<property name="project.vendor" value="RealSimpleEdu.com" />
<property name="project.version" value="1.2.3" />
<property name="project.description" value="" />
<property name="project.icon" value="C:\Users\q09\Desktop\New folder (5)\Finance_Slab\Build\Finance\res\img\icon.png" />

<property name="src.dir" location="src"/>
<property name="res.dir" location="./res" />
<property name="lib.dir" location="./lib" />
<property name="docs.dir" location="./docs/api" />
 <property name="build.dir" location="build"/>

<property name="simulator.home" location="C:\Eclipse\plugins\net.rim.ejde.componentpack4.7.0_4.7.0.57\components\simulator" />
<property name="simulator.name" value="9530.bat" />

<target name="build" >
<mkdir dir="${build.dir}" />
<rapc output="${project.name}" srcdir="${src.dir}" destdir="${build.dir}">
<jdp title="${project.name}" vendor="${project.vendor}" version="${project.version}" icon="${project.icon}" description="${project.description}"/>
</rapc>
</target>
<target name="sign" depends="build">
<sigtool codfile="${build.dir}/${cod.name}.cod" password="${password}" />
</target>
<target name="compile">
                <antcall target="releaseinfo">
                        <param name="url" value="${url}" />
                </antcall>
</target>
 <echo message="Compiling" />
                <rapc exepath="${jde.home}/bin" output="${project.name}" destdir="${build.dir}">
                        <jdp type="library" title="${project}" description="${description}" version="${version}" vendor="${vendor}" />
                        <src>
                                <fileset dir="${src.dir}">
                                        <include name="**/*.java" />
                                </fileset>
                                <fileset dir="${res.dir}">
                                        <include name="**/*" />
                                </fileset>
                        </src>
                </rapc>

<target name="clean">
                <delete dir="${build.dir}" />
                <mkdir dir="${build.dir}" />
                <delete dir="${release.dir}" />
                <mkdir dir="${release.dir}" />
                <delete dir="${docs.dir}" />
                <mkdir dir="${docs.dir}" />
                <delete>
                        <fileset dir="." includes="*.jad" />
                        <fileset dir="." includes="*.zip" />
                </delete>
        </target>

<target name="load" depends="build,sign">
<target name="load-simulator" depends="build">
        <copy todir="${simulator.home}">
            <fileset dir="${build.dir}" includes="*.cod,*.cso,*.debug,*.jad,*.jar" />
        </copy>
    </target>
<copy todir="${simulator.home}">
<fileset dir="${build.dir}" includes="*.cod,*.cso,*.debug,*.jad,*.jar" />
</copy>
<exec dir = "${simulator.home}" executable = "cmd">
<arg value = "/c ${simulator.name}"/>
</exec>
</target>
</project>