Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add a build.xml to an existing GWT project in Eclipse?

I have a running Java GWT application, that I can compile using Eclipse.

Now I wan't to also be able to build this application from the command line using ant.

As of my understanding I therefore need a build.xml file. I used the webAppCreator tool, that comes with the SDK to create this build.xml file and adapted it to my needs and got it working.

But how do I tell Eclipse now to automatically update the build.xml file upon code changes?

I know it is possible for it works in projects created with webAppCreator. But I just copied the build.xml to another project. So what do I need to adapt? Or where do I need to set up the link to the build.xml?

like image 629
JochenJung Avatar asked Nov 06 '22 06:11

JochenJung


1 Answers

You could use Ant4Eclipse to get the Eclipse classpath into your ant build file. That's probably only part of the solution you're looking for... I'm not sure, how useful this will actually be when used together with a GWT project (do you want automatic copying of the libraries to WEB-INF/lib, too? Etc...)

like image 190
Chris Lercher Avatar answered Nov 09 '22 10:11

Chris Lercher