wsadmin + jython删除文件夹 [英] wsadmin + jython delete folder
本文介绍了wsadmin + jython删除文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用独立的wsadmin进行部署后脚本.它应该删除配置文件(/profile/temp/profile/myCacheFolder)上的所有缓存.我的问题是,是否可以使用wsadmin执行此操作?如果可以,怎么办?我可以以某种方式使用AdminConfig.deleteDocument或类似的东西吗?
I want to do post-deploy script using standalone wsadmin. It should delete all caches on profile (/profile/temp /profile/myCacheFolder). My question is, is it possible to do this with wsadmin? If so how? Can I somehow use AdminConfig.deleteDocument or something like this?
谢谢
推荐答案
使用AntAgent
MBean,您可以上传ant脚本,然后在远程节点上调用它:
With AntAgent
MBean you can upload ant script and then invoke it on remote node:
查看全文