Java Web Development

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

Java Web Development

by Corbesero, Stephen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am working on a project that has grown a bit, and I wish to break up some of my code into libraries.  I am trying to make use the dedicated library folder, but I am not getting the results I would expect.

I have a main project and two (could be more) auxiliary library projects.  I have specified a dedicated library folder.

If I make changes to a source file in one of the libraries, I would expect the library to get remade and the new jar file to be "deployed" in the dedicated library folder. Well, it appears there is no concept of "deploying" a library. It looks like I would have to manually copy the newly created jar file into the appropriate folder.  My memory not being what it used to these days, I could easily imagine forgetting and compiling the main project with an older copy of the library.  Plus, would the projects know about inter-library dependencies and rebuild automatically?

Can anyone enlighten me on the correct process to achieve my development goals?



--
Stephen Corbesero
Systems Administrator
PenTeleData, Palmerton, PA



Re: Java Web Development

by Futaleufu_John :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can make the main project dependent on the library project.

Here's how to do it...

In the Projects panel, right-click the main project and select Properties.

When the Project Properties dialog opens, click Libraries.

Click Add Project.

Navigate to the library project and select it.

Click OK to close the Project Properties dialog.

Now, whenever you build your main project, it will check to see if the library project is up to date. If not it will build that first.

Corbesero, Stephen wrote:
I have a main project and two (could be more) auxiliary library projects.  I have specified a dedicated library folder.

Can anyone enlighten me on the correct process to achieve my development goals?
Any ads or links to ads that appear in this post are not endorsed nor recommended by this poster.