Glassfish v2 asadmin “部署” jar 文件
glassfish v2 asadmin 实用程序中有没有办法将 jar 文件复制到服务器库或域的库中?我想在不同的机器上使用 hudson 进行远程部署,所以我有一个执行一堆 asadmin 命令的脚本。
Is there a way in glassfish v2 asadmin utility to copy jar files into the server lib or the domain's lib? I want to do a remote deployment using hudson on a different box so i have a script that executes a bunch of asadmin commands.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
asadmin deploy 将可部署代码移动到 autodeploy 目录,使 glassfish 知道其存在并进行部署。我相信如果没有正确的部署描述符,复制一个简单的库不会产生任何效果。无论如何,我认为 asadmin 部署无法访问您的 domain/lib 或 server/lib 目录,而只能访问您的应用程序目录结构本身。
要实现您想要实现的目标,听起来更像是编写一个简单的蚂蚁脚本。
asadmin deploy moves your deployable code to the autodeploy directory making glassfish aware of its existence to deploy. I believe copying a simple library out there won't net any effect without proper deployment descriptors. In any event I don't think the asadmin deploy would have access to your domain/lib or server/lib directory but rather only your application directory structure itself.
To do what you are trying to achieve, it sounds more like writing a simple ant script.