akhikhl / gretty

Advanced gradle plugin for running web-apps on jetty and tomcat.
MIT License
657 stars 173 forks source link

ExtraClasspath support #86

Open riceyeh opened 10 years ago

riceyeh commented 10 years ago

Hi, In jetty-maven-plugin, we can use extraClasspath to add extra classpath. Is it possible to do this in gretty? If not, could this new feature be added to gretty.

Rice

akhikhl commented 10 years ago

Hi Rice, There is servlet container classpath feature in Gretty: http://akhikhl.github.io/gretty-doc/Servlet-container-classpath.html Maybe, you are looking for this feature?

riceyeh commented 10 years ago

Hi Andrey, No. The extraClasspath in jetty-maven-plugin is used to config the classpath of the webapp, not the classpath of the servet container. This can be illustrated by the following configuration for jetty-maven-plugin:

/lavita target/test-classes target/test-classes .. ../xs-workspace-google/src/main/webapp

On Tue, Sep 30, 2014 at 7:16 PM, Andrey Hihlovskiy <notifications@github.com

wrote:

Hi Rice, There is servlet container classpath feature in Gretty: http://akhikhl.github.io/gretty-doc/Servlet-container-classpath.html Maybe, you are looking for this feature?

— Reply to this email directly or view it on GitHub https://github.com/akhikhl/gretty/issues/86#issuecomment-57298520.

riceyeh commented 10 years ago

I find that I can use classPath like below to solve my problem:

gretty { classPath 'build/resources/test' }

On Wed, Oct 1, 2014 at 12:52 AM, Rice Yeh riceyeh@gmail.com wrote:

Hi Andrey, No. The extraClasspath in jetty-maven-plugin is used to config the classpath of the webapp, not the classpath of the servet container. This can be illustrated by the following configuration for jetty-maven-plugin:

/lavita target/test-classes target/test-classes .. ../xs-workspace-google/src/main/webapp

On Tue, Sep 30, 2014 at 7:16 PM, Andrey Hihlovskiy < notifications@github.com> wrote:

Hi Rice, There is servlet container classpath feature in Gretty: http://akhikhl.github.io/gretty-doc/Servlet-container-classpath.html Maybe, you are looking for this feature?

— Reply to this email directly or view it on GitHub https://github.com/akhikhl/gretty/issues/86#issuecomment-57298520.

akhikhl commented 10 years ago

Good that you found the solution. Sorry for lacking documentation on this function, I'll add it as soon as I can.

riceyeh commented 9 years ago

Just find that classPath does not work in tomcat. Is this tomcat's problem?

On Wed, Oct 1, 2014 at 8:40 PM, Andrey Hihlovskiy notifications@github.com wrote:

Good that you found the solution. Sorry for lacking documentation on this function, I'll add it as soon as I can.

— Reply to this email directly or view it on GitHub https://github.com/akhikhl/gretty/issues/86#issuecomment-57456965.