How to specify in Eclipse what to include in a .WAR file

In eclipse, which develops a java application, there are several class files that are generated by a custom ant script. This happens automatically, and it is configured as an export / publish dependency for / WEB -INF / classes. This happens well with the publication, however, when exporting to .WAR, these files simply went missing. Is there a way to automate this?

+3
source share
3 answers

I would suggest creating your war file using Ant.

I like my results, which are easy to create with a simple toolchain, i.e. No need to run Eclipse to create them. thus, it is easier to automate and document.

: Ant, - , Maven

+1
  • , .
  • Java EE

.

+2

Perhaps you can try adding an extra builder. Go to the project properties and then to the builders. You can add your own commands that will be launched after the start of the eclipse building process.

This is not an ideal solution, but it may work.

0
source

Source: https://habr.com/ru/post/1698568/


All Articles