Hi,

I might be wrong in details but you might find it helpful. Gradle
jetty plugin is port of maven jetty plugin. Maven jetty:run uses app
resources (jsp, etc.) directly from the source tree. At least this is
the default behavior and I'm not sure you can configure it or use
different task/goal to make the server use resources from build
folder. jettyRunExploded seems a good guess. You might refer to jetty
maven plugin documentation and get back to us when you figure out
everything you need :)

Usually, it's a good thing the server reads resources directly from
the source tree. It gives faster and cheaper feedback and shortens the
dev cycles (e.g. change->see it working)

Cheers,
Szczepan Faber

On Mon, Dec 29, 2008 at 9:06 AM, Eric Bowman <[email protected]> wrote:
> Hi,
>
> I'm struggling a bit with the jetty plugin, and I noticed that if you do
> "gradle jettyRun", it runs the application directly out of the source
> directory:
>
> 08:02:16.952 [main] INFO  o.gradle.api.plugins.jetty.JettyRun - Webapp
> source directory = /var/pickaxe/dev/server/admin-web/src/main/webapp
> 08:02:16.952 [main] INFO  o.gradle.api.plugins.jetty.JettyRun - Reload
> Mechanic: automatic
> 08:02:16.952 [main] INFO  o.gradle.api.plugins.jetty.JettyRun - web.xml
> file = /var/pickaxe/dev/server/admin-web/src/main/webapp/WEB-INF/web.xml
> 08:02:16.952 [main] INFO  o.gradle.api.plugins.jetty.JettyRun - Classes
> = /var/pickaxe/dev/server/admin-web/build/classes
>
> I can use jettyRunExploded, but I was wondering what the logic behind
> this is.
>
> I would have expected the contents of src/main/webapp to be copied (and
> potentially filtered) into the build directory, and run from there.  Am
> I missing something?
>
> Thanks,
> Eric
>
> --
> Eric Bowman
> Boboco Ltd
> [email protected]
> http://www.boboco.ie/ebowman/pubkey.pgp
> +35318394189/+353872801532
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to