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

Reply
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
filmaj
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
filmaj
Posts: 18
Registered: ‎09-02-2009
My Device: Not Specified

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

Thanks - you're right :smileyhappy: fixed.

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

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>