tags:

views:

924

answers:

3

Hello,

In eclipse developing a java app, there are several class files that are generated by a custom ant script. This happens automatically, and it is set up as an export/publish dependency for /WEB-INF/classes. With publishing it happens alright, however on exporting to .WAR these files just got missing. Is there a way to automate this?

A: 

Maybe you can try to add an extra builder. Go to project properties, and then "builders". You can add your own commands which will be run after the eclipse building process runs.

It's not an ideal solution, but maybe it works.

Rolf
+1  A: 

I'd suggest generating your war file using Ant.

I like my deliverables to be easy to generate using a simple toolchain, i.e. not need to fire up Eclipse to generate them; this way things are easier to automate and document.

alex
+1  A: 
  1. Go to the project properties you will export.
  2. Setup the Java EE Module Dependencies

Now they should exist in your exported war.

TJ