tags:

views:

75

answers:

2

Hi everyone.

I have a project written in Java using eclipse and I would like to generate an Ant build file for it. How can it be done? I constantly need to keep it synchronized with the source code, so that I could promote it along with the code to the common repository when with the project structure is modified.

I'm sorry for a stupid question like this. I've browsed across the forums, but still no luck.

Thanks in advance.

A: 

You can create Ant build file and attach it to Eclipse http://help.eclipse.org/help33/topic/org.eclipse.platform.doc.user/gettingStarted/qs-81_basics.htm

demas
I need the tool, that would make it automatically. I don't want to maintain it with my own hands.
Negai
I am not sure it is possible.
demas
A: 

I have accidentally discovered the way to do it. It's quite simple: Right click on the project -> Export -> Ant build file :)

Negai
It will be Eclipse specific build.xml, as it has ${ECLIPSE_HOME} variable. So it will be necessary to make additional refactore of this file.
demas
It provides a little customization. You can get a build file that knows nothing about eclipse.
Negai