B4J Tutorial Modules Attributes

Discussion in 'B4J Tutorials' started by Erel, Dec 8, 2013.

  1. Erel

    Erel Administrator Staff Member Licensed User

    The following module attributes are supported:

    Main Module
    • MainFormWidth / MainFormHeight - Set the main form initial width and height.
    • AdditionalJar - An additional jar file that will be added during compilation. The jar file should be located in the libraries folder. This attribute is used for example with jSQL library to reference the native SQL engine jar. You can add this attribute multiple times.
    • CommandLineArgs - Sets the command line arguments that will be passed during deployment.
    • VirtualMachineArgs - Passes the attribute value to the JVM. Usage example: http://www.basic4ppc.com/android/forum/threads/parsing-huge-text-files.34923/#content
      Note that this attribute doesn't affect the generated jar file.
    • CustomBuildAction - See the B4A tutorial: http://www.basic4ppc.com/android/forum/threads/modules-attributes.24721/#content
    • MergeLibraries - True or False. Whether libraries should be merged into the generated jar file. If set to False then you need to copy the libraries to a folder named libs under the main jar folder (when distributing the app).
    • Library compilation attributes. Covered in the library compilation tutorial

    Classes
    • Event - Adds an event to the list of events. This attribute only affects the IDE autocomplete feature.
    • RaisesSynchronousEvents - Similar to the libraries @RaisesSynchronousEvents annotation. Only relevant for library compilation and debug mode. The given sub will be marked as a sub that can raise events.
    General
    • IgnoreWarnings - A list of warnings numbers that will be ignored in this module.
     
    Last edited: Jan 30, 2014
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice