How to include external with ant + bb-ant-tools libraries

Hello

About our company, we would like to have an ant + bb-ant tools integrated environment. We would like to prepare outside of eclipse builds, and the BB plugin. For us, it is also a requirement to have a localized application (so we need bundles of compiled resources generated by the HR Manager/DRR files).

However, we find some problems when we try to include the external libraries with bb-ant-tools

The only way we found to make the build and also include the crb files in the package is:

1-CAP compile our project.  However, this pot does not include classes from external libraries

2 - Unzip the jar generated by CAP and copy classes and the crb files in a temporary directory.

3rd-package external libraries: wtkbuild + package wtk

4th - unzip the jar made by WTKPackage by putting classes in the same temporary directory in step 2.

5. make a new pot with wtkrapc from the temporary directory in order to get the BB application files.

The process described works (in spite of not being simple) so I close this topic

Tags: BlackBerry Developers

Similar Questions

  • How to include Reactjs with Phonegap?

    I'm new to Phonegap so I installed the desktop Phonegap app, created a project etc.

    This all works fine with updates in real time on a device.

    Now I want to include Reactjs with es2015 babel using webpack as I would normally,

    but I have no idea how merge these into the startup project I created with Phonegap desktop application.

    Build you just like you normally put your generated file (bundle.js) in the root level www directory and reference in your index.html.

    You can also try to use a template to get started. Something like phonegap-model-react-hot-loader

  • How to include external files when generating Setup for a stand-alone executable file?

    Hello

    I tried to build a standalone executable from my Labview project and I've been able to do successfully.  Now I would like to include a few external .txt files in the installer. These .txt files have parameters and constants that will be used by the program, and my program needs to load / read them during execution.  For now I have to manually copy / paste them into the machine targets, but I really hope that the installer can do it automatically.  In my view, there is a folder "data" in the Setup, and that's where I hope that these .txt files can be added in.

    How can I do? Can anyone give me some suggestions? Thank you!

    Rgds

    Harry

    Right-click on the target project. In your case, it would be 'My Computer'.

    Norbert

  • How to include external style sheets for the EPUB export

    Hi all

    I try to include a css for the epub export file. Here's what I'm trying.

    var doc = app.activeDocument;
    with(doc.epubExportPreferences)
    {
            includeDocumentMetadata = true;
            imageExportResolution = ImageResolution.PPI_150;
            imageConversion = ImageConversion.JPEG;
            embedFont = false;
            includeCSSDefinition = false;
            preserveLocalOverride = false;
            externalStyleSheets = "D:/Chinna/Epub/QJ-stylesheet.css";
        }
    doc.exportFile(ExportFormat.EPUB, File(doc.fullName.toString().replace(".indd",".epub")), false);
    

    It returns an error. (Expected in string table but received "D:/Chinna/Epub/QJ-stylesheet.css").

    Kind regards

    Cognet

    Try:

    externalStyleSheets = ["D:/Chinna/Epub/QJ-stylesheet.css"];

  • Generate and ears to ADFprojects with ANT

    Hi all

    What we must do is described in the documentation of Oracle ADF 12.1.2 the link below (point 4.5):

    https://docs.Oracle.com/middleware/1212/ADF/ADFAG/deploy.htm#ADFAG20592BB

    Unfortunately, it is said that it is possible to do, but it does'nt expain how.

    We want to implement section 3 (Create an Ant script to compile and package our application without the use of ojdeploy), but we have no experience with ANT and would like to know if someone in the forum has done it before and can show us some guidelines.

    Most of the information we find in google use jdeveloper (like ojdeploy) tools, but we cannot find any example of how to do it only with ANT.

    What we can do is to generate the build.xml for the model and the viewcontroller using jdeveloper, but our goal would be to create and generate the ear file when a developer submit a change in the SVN, for example automatically.

    We will ask the same thing on the forums of ANT, but I thought that, given that the ADF projects are complex, it would be easier to find the answer here.

    Thanks a lot for your help.

    You can use the build.xml files, that you can generate from within jdev to generate projects, but to my knowledge, it is not easy to pack the projects and applications (ear) without the use of ojdeploy. The task of ojdeploy, which can be generated in the build.xml too, changes some descriptors access affecting the ear file. As you do not know what changes are made, and there is no documentation on this provision,

    You can always write ant tasks that will make the same changes to the descriptors as ojdeploy will do, but you need to check the changes whenever you make a change to the project or you change the jdev version. As this can be a lot of time in the normal way of dealing with this is to install a jdev headless on the build server to make available ojdeploy. Then use ojdeploy and you're done.

    Timo

  • Conditional with Ant (withdrawal, the Release version of debugger instrumentation code)

    I started to try the MonsterDebugger of. On the first thing that comes to my mind was the instrumentation code and have it in the Release version of the application.

    Does anyone have a good tip on how to make a conditional generation with Ant to remove this code?

    Unit tests are easy to remove by the exclusion of the name of file, since the tests do not alter the unit under test, but for the debugger, I need to at least import the debugger class and instantiate in the code.

    Thank you.

    You mean like this: http://livedocs.adobe.com/flex/3/html/compilers_21.html ?

  • Configuration of the OSB to generate with ant

    Hello

    How to build the configuration for OSB with ant or maven? It is possible without Enterprise pack for eclipse oracle?

    OSB 11 g EPCO 11.1.1.5

    Thank you

    >
    How to build the configuration for OSB with ant or maven?
    >

    http://download.Oracle.com/docs/CD/E14571_01/doc.1111e15866.pdf
    2.1.11.2.2 export a Configuration using Ant

  • Donkey to compile with ant

    I try to compile donkey with ant, but got this message:

    [java] Missing implementation for platform: Android-ARM
    

    My ant task:

    <target name="compile.ane">
        <java jar="${FLEX_HOME}/lib/adt.jar" fork="true">
            <arg value="-package"/>
            <arg value="-target"/>
            <arg value="ane"/>
            <arg value="commExtension.ane"/>
            <arg value="extension.xml"/>
            <arg value="-swc"/>
            <arg value="commExtLib.swc"/>
            <arg value="-platform Android-ARM -C android/ ."/>
            <arg value="-platform default -C default/ ."/>
        </java>
    </target>
    

    But if I compile with the command line, it's ok:

    adt -package -target ane commExtension.ane extension.xml -swc commExtLib.swc -platform     Android-ARM -C android . -platform default -C default
    

    What I am doing wrong?

    Thank you!

    Two small changes and it works.

    
         
              
              
              
              
              
              
              
              
         
    
    
  • How to include files and dependencies (such as txt/json) in the package/project?

    Hello

    I had a project with a JSON file. This one, I read to load images and other information.

    These images are in a directory IMG and my json file in the root of the project.


    When I publish my project, animate dashboard do not copy the necessary files. Ditto for the oam packet.


    How can I include external file in my project?


    Kind regards.


    Stone

    Hello

    for the web, you can manually put the json/text file in a folder of publication.

    For the package of the oam, open it with a zip software, include your json text under Assets folder

    Register under a zip zip and rename to *.oam extention

    Rémy

  • BB-Ant-tools and deployment to the Simulator

    Hello world:

    I have a library intern that I developed called Ichabod required by one of our applications, Spyder, which runs on the operating system Blackberry 4.5.0 (our original goal was to 8330 devices).  I had all this work with bb-ant-tools to compile the library, which is located in a separate project, and deploy it in C:\Program Files\eclipse\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.21\components\simulator.  The Spyder application debugged very well in the eclipse plugin (I use Galileo with the 1.1.2 version of the plugin RIM).

    Today, however, I went to debug the Spyder application after making a few changes to the code (no code changes have been made in Toad) and found that the application could not find the module Ichabod suddenly.  I noticed that there is now a directory net.rim.ejde.componentpack4.5.0_4.5.0.28\ in my eclipse plugins folder, thinking that maybe I've updated component packs without realizing account, I adjusted the path target library of Ichabod and rebuilt with bb-ant-tools.  The same problem.  So, I tried to delete the .cod and all associated files the two directories 4.5.0.21 and 4.5.0.28, recompiled the Ichabod library to deploy in two places and found that it worked with 4.5.0.21, but not with 4.5.0.28 (it is not listed in the screen modules under settings, either).

    I checked the .cod file is present in the components\simulator folder, but I can't understand why the simulators do not recognize the file.

    Any suggestions?

    My build.xml ant-bb-tools script is attached.

    Thank you

    ~ Scott

    
    
    
    
        
    
        
    
        
    
        
    
        
            
                
                    
                    
                    
                    
                
            
        
    
        
            
            
        
    
        
            
    
                
                
    
                
                    
                        
                        
                    
                
            
        
    
    

    So it turns out, after removing the 4.5.0.28 Eclipse plugin and put it back, it was what was causing my problems.  I don't know if this has anything to do with it, but I also removed the JDE 4.5.0 library (which has been correctly updated version 28) from the path of construction of the project Ichabod and replaced by the JDE even.

    After all of this nonsense, my library now appears in the Simulator.

  • Photo Viewer shows photos directly in spite of, including files with Irfanview

    I associate the pictures files including jpg, with Irfanview, but when I connect my camera to my computer and open a file directly, Windows Photo Viewer displays the image instead. Despite the fact the Irfanview icon will appear in the directory for all jpg images, these files are taken hostage by the Windows Photo Viewer. My default viewer works with files on my computer of the disks. This only happens when I connect my camera. How can I stop this program quite useless and buggy of misappropriation of my file associations?

    I also had Photo Viewer 'diversion' Irfanview in Windows 8. No matter what I did, JPEG and TIFF files, but in the 'open with' associated with IrfanView, kept opening of photo viewer.

    After trying everything else, found a safe and definitive solution.

    1. start Regedit

    2 go to the ROOT of HKEY_CLASSES

    3. go to the file association that does not correctly (for example, .jpg or .tif)

    4. just rename while it becames disabled: for example to rename «.jpg' as «.jpx»

    Return to your Windows Explorer or any other file manager, make a right click on a JPG or TIF file, open with and associate with IrfanView (or any other program). THIS TIME Windows will automatically register a new .jpg or .tif extension and IrfanView open files when double-clicked.

  • Problem when using bb-ant-tools to create a multi-module application

    I am trying to redesign an application prototype into something more adapted to our needs. The prototype was built with the first version of the Eclipse plugin, but I've converted successfully to the current version.

    I have same configuration Ant with bb-ant-tools for it and have successfully build the application and the executable running on the real device.

    But this prototype had code to put them all in a single module, even the source to a third party library with support for managing messages JSON ('J2ME JSON").

    We need to build several slightly different applications from the same code base (differing mainly in aspects of the customer specific look and wording etc.).

    So I want to divide the code into several distinct modules, each providing it is build own artifacts and have a top-level project for each variant you want to produce.

    So at the beginning I want to have these three modules:

    • J2ME-json - the third party lib
    • Code base - the largest part of the source code and default localization resources
    • my-app - the main class, icon resources (and in the future some property files and resources specific to the customer location)

    I have Ant generate files for each module, which compiles and signs packages resulting - seems ok so far, no problem when executing the task of sigtool. The build for 'j2me-json' file and 'code base' defines the product as a type = "library".

    The build for "my-app" file collects the artifacts to build (* .jar, * .cod, etc.) and copy them to a local directory "dependencies", where they will be extracted for the compilation of the actual application. After compiling and signing all are copied to a deployment directory.

    Deploy the application on the device via the 'Desktop Manager' but when I run it on the device I get the error message:

    Error at startup MyAppId: Module ' code$ 2dbase ' attempts to access a secure API.

    The strange thing is, that the "Tool of Signature" window shows demand of signature of all modules during the phase of signature of the request, not only for the request form itself as the error message suggests. And I even sign the modules separately because of this message - but it does not help...

    So, what's wrong here?

    Here is the definition of the actual target of the relevant elements:

                                                                                          
    
                        
    
                                                                                                                                
    

    The *.alx file that looks like this:

             My App Name      1.2.1.35               MyAppId.codj2me-json.codcode-base.cod         
    

    I'd appreciate any help with this problem! Thanks in advance...

    Horst Weber.

    Found!

    My mistake was that I thought that I can mix attribute and property file inclusion statements in the task of jdp bb-ant-tools. My actual task for libraries looked like this:

    
    

    Obviously, the author didn't want to handle the ambiguity when someone sets the same property as an attribute, and in the file. So you should use either one or the other: If you use properties files, then declare all your properties here.

    So this message "Module attempts to access an API secured." seems to be very misleading: it disappered after correction of the generation of files and I now have a common application.

  • Bb-ant-tool to implement using point of entry

    Hello

    I am able to build one application to another point of entry with JDE...

    But does require no special configuration if I use bb-ant-tool to build?

    Problem solved.

    http://BB-Ant-tools.sourceforge.NET/docs

  • I want to buy the first pro and Photoshop.  How does it interact with creative cloud?  How much will cost me to buy all 3?

    I want to buy the first pro and Photoshop.  How does it interact with creative cloud?  How much will cost me to buy all 3?

    Hello

    Please visit:-Creative Cloud price and membership plans | Adobe Creative Cloud

    First pro and Photoshop are a part of the creative cloud, but you can buy them separately as well.

    Photoshop and Lightroom for $9.99 / month

    Add any unique application just for $19.99 / month

    And all the creative cloud just for $49.99 / month.

    This includes applications such as:-officeAdobe Creative Cloud | Adobe Creative Cloud

  • How many fonts do with teacher plan?

    How many fonts do with teacher plan?

    Hello

    Each subscription to the creative cloud includes Adobe Typekit. Complete creative cloud plans (paying) and more simple-app subscriptions include a Typekit portfolio plan, which includes hundreds of fonts for desktop and web. Other Creative Cloud subscriptions also include a selection of fonts for office use and web; refer to the needs of subscription for more information.


    Hope this Helps

Maybe you are looking for