【问题标题】:Gradle; How to start/stop JBoss AS 7.1.1摇篮;如何启动/停止 JBoss AS 7.1.1
【发布时间】:2016-02-17 03:09:29
【问题描述】:

我是 Gradle 的新手,并开始学习相同的内容。我能够通过 Gradle 将 Web 应用程序部署到 jboss 中。部署后我需要停止并启动服务器。请告诉我如何从 Gradle 调用脚本。

【问题讨论】:

    标签: gradle jboss7.x


    【解决方案1】:

    你可以编写一个自定义的 exec 任务来启动和停止 jboss。然后,您可以相应地定义 dependsOn 或在调用 gradle 时按顺序调用它们。

    task startJboss(type:Exec) {
        workingDir = "" //set the working dir
        commandLine = "" //set the command to execute to start jboss.
    }
    

    还有几个gradle jboss插件可以看看:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-28
      • 1970-01-01
      • 2014-03-05
      • 2013-10-31
      • 1970-01-01
      相关资源
      最近更新 更多