wsadmin + jython删除文件夹 [英] wsadmin + jython delete folder

查看:78
本文介绍了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:

fileContent变量是您的Ant脚本,您可能需要对其进行更多调整,尤其是在Windows上,以便处理被阻止的文件/目录.

fileContent variable is you Ant script, you may have to tweak it a bit more, especially on Windows in order to deal with blocked files/directories.

这篇关于wsadmin + jython删除文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆