How to share api from web project to other project

View: New views
3 Messages — Rating Filter:   Alert me  

How to share api from web project to other project

by roamerchan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have two web projects, A & B, in A, I have some api in package myweb.mypackage.*, I would like to share them to other web project B.

I don't want to hardcopy the whole package source files and put them in src/java/ of project B, how can I do this?

RE: How to share api from web project to other project

by Chris Stier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Right click on project B
Select properties->Libraries and click the "Add Project" button to add
project A to B.

Cheers!


-----Original Message-----
From: roamerchan [mailto:roamerchan@...]
Sent: Monday, June 29, 2009 8:54 PM
To: nbj2ee@...
Subject: [nbj2ee] How to share api from web project to other project


I have two web projects, A & B, in A, I have some api in package
myweb.mypackage.*, I would like to share them to other web project B.

I don't want to hardcopy the whole package source files and put them in
src/java/ of project B, how can I do this?
--
View this message in context:
http://www.nabble.com/How-to-share-api-from-web-project-to-other-project-tp2
4263679p24263679.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.


RE: How to share api from web project to other project

by roamerchan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks.

But it seemed did not work when I followed your instruction, after your steps, I didn't see any files were ADDED in the list.