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 135990 - Create a wrapper module for Apache Commons Net in IDE cluster
Summary: Create a wrapper module for Apache Commons Net in IDE cluster
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Mysik
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2008-05-28 13:15 UTC by Tomas Mysik
Modified: 2008-06-11 15:55 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch for wrapper module (29.58 KB, patch)
2008-05-28 13:25 UTC, Tomas Mysik
Details | Diff
patch for mobility.deployment.ftpscp module (20.79 KB, patch)
2008-05-28 13:26 UTC, Tomas Mysik
Details | Diff
updated patch for wrapper modules (43.42 KB, patch)
2008-05-29 09:25 UTC, Tomas Mysik
Details | Diff
updated patch for wrapper modules (43.76 KB, patch)
2008-06-02 14:43 UTC, Tomas Mysik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2008-05-28 13:15:25 UTC
Create a wrapper module for Apache Commons Net in IDE cluster. The reason for this is that we would like to use 
Commons Net in PHP cluster but because commons-net.jar (and jakarta-oro.jar) is already used in Mobility, it has to be 
in IDE cluster (I don't want to have these 2 jars in 2 places).
I will provide 2 patches - one for wrapper module, one for mobility.deployment.ftpscp module.
Comment 1 Tomas Mysik 2008-05-28 13:25:47 UTC
Created attachment 62058 [details]
patch for wrapper module
Comment 2 Tomas Mysik 2008-05-28 13:26:35 UTC
Created attachment 62059 [details]
patch for mobility.deployment.ftpscp module
Comment 3 Tomas Mysik 2008-05-28 13:29:32 UTC
If anyone has any comments/ideas/objections, please let me know, thanks.
Comment 4 Jesse Glick 2008-05-28 15:01:57 UTC
[JG01] Perhaps jakarta-oro.jar belongs in a different module? I don't see what it is doing here.

[JG02] The change removes jakarta-oro.jar from the Ant CP - intentional?
Comment 5 Tomas Mysik 2008-05-28 15:42:14 UTC
[JG01] Archive jakarta-oro.jar is a required dependency for apache-commons.jar and I would prefer to create a separate 
module for it after some other module needs it. Am I missing something?

[JG02] Definitely not - in fact I spent about 2 hours yesterday evening by solving this and wasn't really sure how to 
put jakarta-oro.jar to the Ant CP - apparently no success. What is the correct way to do this Jesse, please? I tried 
to run FTP task (in mobile application) and it was OK after adding jakarta-oro.jar to the project.xml and 
project.properties so I hoped that it is OK. Sorry about that.

Jesse, thanks a lot for the review.
Comment 6 Jesse Glick 2008-05-28 16:04:16 UTC
JG01 - generally I would not encourage dumping unrelated libraries into one library wrapper module.

JG02 - you are already adding commons-net.jar to the Ant CP in the correct fashion (using AutomaticExtraClasspath.url);
I was just asking why you did not do the same for jakarta-oro.jar as well (as the current code does in the oddly named
FtpScpClasspathProvider).
Comment 7 Tomas Mysik 2008-05-29 09:23:20 UTC
[JG01] New wrapper module for Jakarta ORO created.

[JG02] Fixed, you are right, of course.

Attaching refreshed patch.
Comment 8 Tomas Mysik 2008-05-29 09:25:02 UTC
Created attachment 62105 [details]
updated patch for wrapper modules
Comment 9 Petr Suchomel 2008-05-29 12:33:50 UTC
Look good for me now.
Comment 10 Tomas Mysik 2008-06-02 14:42:15 UTC
One minor change/improvement - Jakarta ORO doesn't provide public API but only friend API (the only client is Commons 
Net). 

Attaching updated patch.
Comment 11 Tomas Mysik 2008-06-02 14:43:15 UTC
Created attachment 62253 [details]
updated patch for wrapper modules
Comment 12 Tomas Mysik 2008-06-06 09:51:25 UTC
If there are no objections, I'll push this on monday.
Comment 14 Quality Engineering 2008-06-11 15:55:00 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #251 build
Changeset: http://hg.netbeans.org/main/rev/ed1e66937c3f
User: Tomas Mysik <tmysik@netbeans.org>
Log: #135990: Create a wrapper module for Apache Commons Net in IDE cluster [Part 1]