【问题标题】:deploy application to glassfish throw ant tasks将应用程序部署到 glassfish throw ant 任务
【发布时间】:2014-07-31 13:21:39
【问题描述】:

我正在尝试将 Web 应用程序部署到我的 glassfish 服务器 3 throw ant 任务。我在oracle网站文档上找到了follow task(http://docs.oracle.com/cd/E19798-01/821-1752/beaep/)  sun-appserv-deploy ,但是它不起作用,它显示了这个错误

构建失败 C:\MarcoDesenvolve\Atendimento\Exemp\build.xml:172:问题:未能创建任务或键入 sun-appserv-deploy 原因:名称未定义。 行动:检查拼写。 行动:检查是否已声明任何自定义任务/类型。 行动:检查任何 / 声明已经发生。

我在 build.xml 中的代码是这样的

                        <sun-appserv-deploy
                                         name="Exemp"
                                         force="true"
                                         precompilejsp="false"
                                         verify="false"
                                         upload="true"
                                         user="marco"
                                         passwordfile="${marco}"
                                         host="localhost"
                                         port="4848"
                                         target="${Exemp}"
                                         asinstalldir="${env.ANT_HOME}" />

                        </target>

我不知道我做错了什么,是关于属性还是项目的配置。如果有人对 ant Task 有更多经验,请告诉我这是哪个错误?

【问题讨论】:

    标签: eclipse ant glassfish-3


    【解决方案1】:

    我相信您错过了您提供链接的文档的第一步:“设置您的 Ant 环境”。 Glassfish 的 Ant 任务位于名为 sun-appserv-ant.jar 的 jar 文件中。然后,您需要使用适当的&lt;taskdef&gt; ... &lt;/taskdef&gt; 语句在构建脚本中定义任务。在那之后,你应该很高兴。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-16
      • 1970-01-01
      • 2016-09-29
      • 1970-01-01
      • 1970-01-01
      • 2011-05-10
      相关资源
      最近更新 更多