google-app-enginegoogle-eclipse-plugin

Using workspace projects with AppEngine


I'm trying to use a library project with my Google AppEngine project as a project on build path.

Is there a way to get that included in the AppEngine project without having to copy the entire source or make a jar ?

I only use a small portion of the library so it seems like overkill to copy the whole jar and a lot of work to find the dependencies within the source to get only the parts I'm using.


Solution

  • You are not going to like this answer, but No.

    In order to include the library as a dependency in the project once deployed the required library must be found in your WEB-INF/lib directory as a jar. This is going to require you to you to create a jar based on the library you want to use. The other option is to do just as you said pull the dependent source into your project and use it from there.

    During development you can make the library project a dependency of your app engine project by doing the following:

    Under Project->Properties->Java Build Path->Projects Tab
    select the "Add.." button to add a subproject to your build.
    

    Note: This will not address the the running in a production environment.