开发者

quick way to remove all applications from stopped glassfish in netbeans?

开发者 https://www.devze.com 2023-03-12 00:23 出处:网络
I\'d like a quick script to remove all ap开发者_JAVA技巧plications from glassfish 3.1 from Netbeans.

I'd like a quick script to remove all ap开发者_JAVA技巧plications from glassfish 3.1 from Netbeans.

I work on a couple of different applications. Sometimes, I switch back and forth and I'd want to start glassfish without starting all previously deployed applications.

Most of the time, I just remove all "application" and "application-ref" elements from domain.xml.

Can I do the same with a simple trick (ant task or something else)?


easiest trick... save a copy of the domain.xml file from a clean install (before you start deploying applications) and then replace the domain.xml with your 'clean copy' as you see fit.

you can also modify the domain a bit (like register resources and the like) and save that domain.xml, if you have a lot of configuration that you needs to happen for your apps.

0

精彩评论

暂无评论...
验证码 换一张
取 消