This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 242614 - Project Dependencies: LIBlets support is broken
Summary: Project Dependencies: LIBlets support is broken
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Roman Svitanic
URL: https://javafx-jira.kenai.com/browse/...
Keywords: 8.0_WAIVER_APPROVED
Depends on:
Blocks:
 
Reported: 2014-03-06 14:34 UTC by alexander.burdukov
Modified: 2014-04-30 17:17 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alexander.burdukov 2014-03-06 14:34:44 UTC
Since NB 8 all libraries/project declared in Project Properties-Libraries category, Compile tab are always packaged into the main project JAR.

This approach breaks LIBlets paradigm, since it is impossible to reference to a project/JAR with LIBlets and to do not pack them with the main project (which is the main featiure of LIBlets).

Note, that in previous NB versions each referenced library/project has "Package" attribute that allows to either pack or do not pack it with the main project.

In NB8 this functionality is lost.
Comment 1 Roman Svitanic 2014-03-06 15:00:11 UTC
LIBlets support in NetBeans is planned, but currently it's blocked by https://javafx-jira.kenai.com/browse/MERT-5945.

When that issue will be solved, we will include LIBlet support in patch for NB 8.0 (which might be at the same time as ME 8 SDK release).
Comment 2 Roman Svitanic 2014-03-06 15:07:23 UTC
You can bypass this by adding extra.classpath property into project.properties.

Example:

extra.classpath=\
    ${reference.J2meLiblet1.jar}:\
    ${reference.J2meLiblet2.jar}


where for example: ${reference.J2meLiblet2.jar} is defined in project.properties like:
reference.J2meLiblet2.jar=<path to jar>
Comment 3 Roman Svitanic 2014-03-06 15:08:34 UTC
Libraries defined enumerated in extra.classpath are ignored when libraries are extracted.
Comment 4 alexander.burdukov 2014-03-06 15:48:15 UTC
Sounds reasonable.
The priority of MERT-5945 is increaed to P1.
Comment 5 Marian Mirilovic 2014-03-06 15:52:33 UTC
(In reply to alexander.burdukov from comment #4)
> Sounds reasonable.
> The priority of MERT-5945 is increaed to P1.

I just want to stress out, that there is no way to fix it in 8.0, it's too late guys.
Comment 6 alexander.burdukov 2014-03-06 15:55:25 UTC
It is OK to fix it after 8.0 release, but before ME8 release.
However, we need to know if it will be just an update of corresponding plugin working on top of NB8.0 or, probably, it will be new NB release (e.g., 8.0.1)
Comment 7 Roman Svitanic 2014-03-24 14:52:06 UTC
LIBlet support implemented in jet-main:
http://hg.netbeans.org/jet-main/rev/9e4e461f9ac0
Comment 8 alexander.burdukov 2014-04-16 21:08:55 UTC
Verified on latest nightly build.
Comment 9 Roman Svitanic 2014-04-18 08:20:41 UTC
transplanted to release80 branch:
http://hg.netbeans.org/releases/rev/6b8787b56382
Comment 10 alexander.burdukov 2014-04-30 17:17:22 UTC
Verified on NetBeans 8.0 with all updates available on Apr 30, 2014 applied.
Works for me.
Closing.