Java Question SLC with org.xxx package name

Discussion in 'Libraries developers questions' started by divinglog, Aug 12, 2019.

  1. divinglog

    divinglog Member Licensed User

    Hello

    When using Simple Library Compiler with a Java source file which includes an org.xxx package name (instead of com.xxx) SLC fails to create the xml file.

    So this works:
    Code:
    package com.mylibrary;

    import anywheresoftware.b4a.BA;
    import anywheresoftware.b4a.BA.*;
    ...
    This fails to create the xml file:
    Code:
    package org.mylibrary;

    import anywheresoftware.b4a.BA;
    import anywheresoftware.b4a.BA.*;
    ...
    Is this expected behaviour? The compilation of the JAR file seems to work even with org, but the XML file is almost empty:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
        <doclet-version-
    NOT-library-version>1.07</doclet-version-NOT-library-version>
    </root>
     
  2. DonManfred

    DonManfred Expert Licensed User

    What is the content of the b4aignore-line?
    What is the full output from slc (the log inside slc)?
     
    Erel and divinglog like this.
  3. divinglog

    divinglog Member Licensed User

    I've used the default ignore line, but now I see the problem:
    Code:
    org,com.android,com.example,com.hoho
    I've removed the org at the beginning and now it works. Thank you DonManfred!
     
    DonManfred likes this.
  4. Johan Schoeman

    Johan Schoeman Expert Licensed User

    You have org, .......
    Try with org., ......
     
  5. DonManfred

    DonManfred Expert Licensed User

    on his case removing the org was successful. No problem so far ;-)
     
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