Comments (4)
Setting the daemon
property to true
does not actually fork a daemon process running Tomcat. It's actually created in a different thread. When the Gradle process finishes the thread will be killed. Maybe you can tell me a bit more about what you are trying to achieve. Are you trying to run in-container integration tests?
from gradle-tomcat-plugin.
Oh, I thought I could use it to start a Tomcat server and then continue using the command line.
With ant I was using a Tomcat installation and deploying to it through it's ant tasks, and then do something (manually) with the application. I thought I could use the daemon=true
to launch a Tomcat instance without installing it in the machine.
from gradle-tomcat-plugin.
In general the embedded Tomcat is fairly fast to bring up. Even changing code and restarting the container using this plugin should not be too painful. You can still change JSPs on the fly. If you tend to change classes a lot I'd recommend using JRebel. It allows for hot swapping the implementation on the fly while keeping your container running.
If you wanted to work similarly as before you could leverage the Cargo plugin instead. It allows for automatically downloading the container from a URL and deploying to it as you were used to in Ant.
from gradle-tomcat-plugin.
Setting the daemon property to true does not actually fork a daemon process running Tomcat. It's actually created in a different thread. When the Gradle process finishes the thread will be killed. Maybe you can tell me a bit more about what you are trying to achieve. Are you trying to run in-container integration tests?
This isn't actually the definition of a daemon, is it? I find this awfully misleading.
I would need the daemon mode to actually spawn a new process as I want for example to run 2 embedded tomcats from within 1 gradle build without using the gradle daemon. Without the tomcat daemon option this will obviously not work, with it I also need to run gradle in daemon mode in order for it to work, which leads to other class-loader issues after I stop the tomcats and run them again.
If I implement the daemon mode to actually spawn a new process will you include it? Also, any pointers on where to start?
from gradle-tomcat-plugin.
Related Issues (20)
- Daemon does not stop HOT 4
- Define which war to use HOT 9
- Gradle Daemon - Caused by: java.lang.Error: factory already defined HOT 2
- Can I tell `TomcatRun` where is the exploded web directory? HOT 1
- Documentation - add example to compile translated jsps HOT 1
- Setting default jsp package name from org.apache.jsp to your choice HOT 2
- Acessing environment variables with the plugin HOT 1
- Gradle 6.2.2 shows deprecation warning regarding jasperAttributes HOT 3
- IllegalArgumentException: The AJP Connector is configured with secretRequired="true" but the secret attribute is either null or "". HOT 7
- How to run the Tomcat server at http://localhost:8080 instead of http://localhost:8080/ProjectName? HOT 2
- Skip Jar Scanning for Annotations HOT 1
- tomcatRun fails with Gradle 7.0 due to @Internal annotation on private getter HOT 11
- 2.6 Release HOT 3
- How to configure environment variables when calling tomcatRun? HOT 1
- Tomcat 10 support
- HTTP2 support
- does this can do like maven tomcat plugin which can build jar not war HOT 1
- Remove usage of WarPluginConvention
- Getting groovy.lang.MissingMethodException after upgrading to tomcat plugin 2.7.0, was using 2.5 before HOT 1
- The AJP Connector is configured with secretRequired="true"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-tomcat-plugin.