Bug 238134 - [library]: include runtime lib on create project wizard
Summary: [library]: include runtime lib on create project wizard
Status: CLOSED DUPLICATE of bug 249824
Alias: None
Product: MTJ (Archived)
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P5 enhancement (vote)
Target Milestone: 0.9.1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: core
Depends on:
Blocks:
 
Reported: 2008-06-23 11:17 EDT by Gustavo de Paula CLA
Modified: 2008-12-30 14:14 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo de Paula CLA 2008-06-23 11:17:12 EDT
current there is no way to easy way to select a runtime library to be included as part of an MTJ project. 

the create project wizard can be modified in order to add an option to do that. when a library is selected it would be automatically included on the project build process in a way that when the JAR is created all library classes would be included on it.

this features is not initially planned to the first MTJ release.
Comment 1 Dan Murphy CLA 2008-07-12 20:55:20 EDT
Hi, is there a patch available to enable this feature ? ... Regards Dan
Comment 2 Gustavo de Paula CLA 2008-07-13 09:05:00 EDT
currently there is not. but according to craig, if you select one JAR file in the project and mark it as "Exported" it will already be included in the MIDlet suite build (but i never tested it :))

we want to implement a more "user friendly" way of doing that.

(In reply to comment #1)
> Hi, is there a patch available to enable this feature ? ... Regards Dan
> 

Comment 3 Dan Murphy CLA 2008-07-13 19:43:05 EDT
I'm trying to use floggy (opensource rms<->pojo). The jar is in the build path and marked as exported. However it doesn't seem to be included any any jars (as far as I can see anyway). Should the classes be built into a jar file in the midletProject/deployed/ directory? (after selecting 'create package')
Thanks in advance,
Dan
Comment 4 Dan Murphy CLA 2008-10-06 03:33:32 EDT
Hi,
For me (OS X, Eclipse 3.4 & MJT) it seems that adding the lib to the classpath does nothing to include it's contents in the deployment JAR. Is this jira going to track this functionality in addition to the "Add jar to project" button on the create project wizard ?

I have a patch (although not tried it on very latest trunk) which copies the class files from the preverified JARs to the deployment jar. Would you chaps like it ?
Best regards,
Dan
Comment 5 Gustavo de Paula CLA 2008-10-07 08:37:53 EDT
this is suppose to be working. at least mtj build already check for the export JARs to add them to the final deployable package. on 0.9.1 we plan to improve this functionality and allow that the user can easily choose that on the project creation wizard.

if you have a patch, code is always welcome :). please attach to the bug the we will evaluate if we can use it on this new feature.

:)
gustavo

(In reply to comment #4)
> Hi,
> For me (OS X, Eclipse 3.4 & MJT) it seems that adding the lib to the classpath
> does nothing to include it's contents in the deployment JAR. Is this jira going
> to track this functionality in addition to the "Add jar to project" button on
> the create project wizard ?
> 
> I have a patch (although not tried it on very latest trunk) which copies the
> class files from the preverified JARs to the deployment jar. Would you chaps
> like it ?
> Best regards,
> Dan
> 

Comment 6 Diego Madruga Sandin CLA 2008-11-05 07:21:06 EST

*** This bug has been marked as a duplicate of bug 249824 ***
Comment 7 Gustavo de Paula CLA 2008-12-30 14:14:10 EST
bug released into 0.9.1