Hi Max,

Does it copy on startup or build?

I am using Eclipse 3.5 , 3.6 and it doesn't copy to lib always. It
happens when SDK is changed or maybe on startup.

Regardless, I wanted to do the same thing and what I did is write an
ANT task that runs every build.
The ANT task removed the libs that I don't want, including the JDO
classes.

Looking at the list of libs, how do you get rid of:

> geronimo-jpa_3.0_spec-1.1.1.jar
> geronimo-jta_1.1_spec-1.1.1.jar
> jsr107cache-1.1.jar

I remember when I remove those, something won't work. Maybe I need to
try again, but those files are very small anyway.

I also remove the MapReduce libs when I don't need to run data
migration task. One of those libs are huge.


On Oct 26, 9:45 am, Maxim Veksler <[email protected]> wrote:
> Hello,
>
> My project needs only 2 jars from GAE/J:
> appengine-api-1.0-sdk-1.3.8.jar
> appengine-api-labs-1.3.8.jar
>
> The rest of the jars supplied by the plugin are API's that are not used by
> our application and thus not required as part of the deployment:
> appengine-jsr107cache-1.3.8.jar
> datanucleus-appengine-1.0.7.final.jar
> datanucleus-core-1.1.5.jar
> datanucleus-jpa-1.1.5.jar
> geronimo-jpa_3.0_spec-1.1.1.jar
> geronimo-jta_1.1_spec-1.1.1.jar
> jdo2-api-2.3-eb.jar
> jsr107cache-1.1.jar
>
> I've tried to delete these jars and deployed the app to GAE/J -- It works
> great and the application is running happily ever after.
>
> The thing is GAE Eclipse plugin insists on recopying the jars to the project
> war/WEB-INF/lib folder (* it's unclear the when it decides to do so).
> I even tried to edit the values of filesCopiedToWebInfLib from the settings
> file .settings/com.google.appengine.eclipse.core.prefs which also did not
> help (further more -- The plugin just updated this entry back to it's
> original state... why put a configuration option if you ignore it?)
>
> I want these jars removed for 2 reasons:
> - 1. It makes the project lighter, removes clutter and is generally better
> to pull small project over wire.
> - 2. I remember reading in the mailing list that fewer jars help improve the
> application cold start times. I'm not talking about projects like spring
> that have large startup penalty but simply having "jar flles" in the
> classpath. Don't know if this is true and I haven't done any benchmarks to
> verify this. OTOH to be on the safe side -- Why test if I can simply not
> upload the unwanted jars and be done with it?
>
> So, in conclusion - What is the proper method (if any) to instruct GAE
> Eclipse Plugin to skip checking and copying of jar's that are "basic GAE sdk
> jars" into my WEB-LIB/lib folder?
>
> Thanks for reading,
> Maxim.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to