I need a way to undeploy all my applications from Glassfish. Normally, I would use asadmin undeploy --target=[target] [appname]"
for each application. My problem is that I don't know the name of all applications that are present on the server. Is there a command that would allow me to just undeploy everything? Thanks.
相关问题
- ClickOnce updates all files. Why?
- Reducing line width of glassfish log
- Glassfish 4.1 - Latest Jersey version
- glassfish 4 programmatic login
- JasperReports CompileReport
相关文章
- Override env values defined in container spec
- The JavaEE 8 Tutorial, deploy failed on hello1 pro
- What is a good way to deploy a Perl application?
- Stacktrace does not print in Glassfish 4.1 Cluster
- Deploying C++ game in Linux
- Can't get Jenkins to start using Tomcat
- Swift 4 - Setting a minimum deployment target
- Publish is not transforming web.config?
You can create a bash script like this one:
When you run it, it will undeploy all deployed applications automatically. It needs
awk
. Make sure to configure theASADMIN
variable with the path toasadmin
.While there isn't an 'undeploy everything' command, there is a list-applications command. This page describes list-applications and some other commands that will help you achieve your goal.