在执行构建和部署 Worklight 5.x.x 应用程序时运行 Ant 文件 [英] Run Ant files when performing Build and Deploy Worklight 5.x.x Application

查看:15
本文介绍了在执行构建和部署 Worklight 5.x.x 应用程序时运行 Ant 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Eclipse 中设置了一个 Worklight 应用程序.在执行 Build And Deploy Worklight Application 之前,我需要运行一个 bat 来编译一堆 HTML 模板.此模板是正确运行应用所必需的.

I have a Worklight application set up in Eclipse. Before executing Build And Deploy Worklight Application, I need to run a bat that compiles a bunch of HTML templates. This templates are necessary to run the app correctly.

所以,我想知道是否可以链接(可能在运行配置...下?)允许我执行的 Ant 文件或类似文件蝙蝠并执行构建 &以自动方式部署.有什么建议吗?

So, I would like to know if it is possible to link (maybe under Run Configurations...?) an Ant file or similar that allows me to execute the bat and perform the build & deploy in an automatic way. Any advice?

希望问题很清楚.

推荐答案

我相信您可以向您的应用程序添加一个额外的项目构建器,以调用您需要的 Ant 任务.

I believe you can add an extra project builder to your application that invokes the Ant task you need.

在 Eclipse 下查看 Project->Properties->Builders->New.

Under Eclipse take a look at Project->Properties->Builders->New.

你会发现Ant 构建文件作为项目构建器 一个有用的链接.

You will find Ant buildfiles as project builders a useful link.

这篇关于在执行构建和部署 Worklight 5.x.x 应用程序时运行 Ant 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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