Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

How to set warDir #174

Closed
RUSSCITY opened this issue Oct 13, 2017 · 1 comment
Closed

How to set warDir #174

RUSSCITY opened this issue Oct 13, 2017 · 1 comment

Comments

@RUSSCITY
Copy link

In the old plugin (com.google.appengine:gradle-appengine-plugin) we could simply set
appengine { warDir = file("src/main/webapp") ...
This is usefully to explode the app in the same directory as the sources, so you can modify *.jsp or *.html and see directly all the updates, without having to 'restartApp' each time you do simple layout change, etc.

How to get it working with this plugin? I tried all possible things. E.g. with
explodeWar.explodedAppDirectory = file('src/main/webapp') I got to explode the app on the same location like sources, but when appengineRun it takes files from build/.... Setting stage.sourceDirectory doesn't help as well. I tried sourceDirectory = file('src/main/webapp'), sourceDirectory = 'src/main/webapp' and stagingDirectory = 'src/main/webapp'. Nothing helps.

Would be happy if you can help me.

@loosebazooka
Copy link
Contributor

Have you tried using continuous (the gradle feature). This is a little more complicated, but will satisfy what you need.

These are instructions for doing this from the command line.
You will need two terminals.
Terminal 1 : watch and rebuild changes

$ ./gradlew explodeWar --continuous

Terminal 2 : run the dev server

$ ./gradlew appengineRun

Now when you make changes, explodeWar will rebuild the war and appengine DevServer will pick them up.

If you're running from the Android you might need to do something else since the gradle daemon mechanism inside may not allow you to run all these gradle processes at the same time.

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

No branches or pull requests

3 participants