-->

Run Ant files when performing Build and Deploy Wor

2019-08-13 14:30发布

问题:

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.

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?

Hope the question is clear.

回答1:

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

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

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