Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When in RAD mode, jar files should *not* be copied into src/main/webapp/WEB-INF/lib folder #17

Open
codeconsole opened this issue Sep 19, 2012 · 2 comments

Comments

@codeconsole
Copy link
Contributor

If we are just using
gradle gaeRun

Why are all the jar files placed in the src/main/webapp/WEB-INF/lib folder?
Why do they even need to be there?

the
mvn gae:run
plugin does not do this?

gradle compile does not do this?
Is it not possible to use the gradle classpath when running gaeRun while not having to resolve all the jar files into the source tree?

@erdi
Copy link
Contributor

erdi commented Oct 21, 2012

I had a look and it seems like one can only add classes to classpath via lib and classes directories of WEB-INF inside of root application directory.

You could in theory modify 'java.class.path' property when starting dev server as it gets passed down the chain, but then DevAppServer class is loaded using DevAppServerClassLoader which is described with the following javadoc:

This ClassLoader refuses to load anything off of the JVM's System ClassLoader except for JRE classes (i.e. it ignores classpath and JAR manifest entries).

I also couldn't find any parameter/option of KickStart or DevAppServer that could be used to modify the classpath directly.

@bmuschko
Copy link
Member

@erdi is correct. KickStart and DevAppServer do not support setting a classpath directly. We discussed this before in this issue. Not sure how the Maven plugin does this. I'd need to have a look at their source code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants