How to Build an XML file from Eclipse.

preview_player
Показать описание
1. Right Click on the project folder and choose export.
2. Choose "Ant BuildFiles" and click Next.
3. UNCLICK "Create target to compile project using Eclipse compiler" after making sure the proper project is selected above.
This ensures that the ANT build file is not dependent on eclipse.
4. Click finish and open the XML file and make sure it has xml code in it. You might get an eclipse auto-generated warning, that can be
ignored. The imporant part is to make sure this runs before making changes, so find the file in the terminal and run "ant clean", and then "ant", and then "ant Driver (1)". Your code SHOULD execute.
6. Find the line beginning with 'target depends=' and ends with 'name="build"'. change build to "compile". The error should go away. So now, when you call "ant compile" or "ant" it'll do what "ant build" or "ant" would have done previously, which is just go to the build-project and build-subprojects actions.
7. Finally, the project requires an "ant run" call, so find the "Driver (1)" or something similar, and change it to "run".

That's all the steps I needed. Now, I am not perfectly sure if the default build action is what you want in a compile command, but it'll fill everthing into a bin and make it runnable, so I think that is satisfactory. I hope the time I took to write this out will help you.

Рекомендации по теме
Комментарии
Автор

Great tutorial for making a good old, vanilla Ant file in Eclipse! Thanks.

XenRiddle
Автор

Awesome tutorial in 1 min 21 seconds. Great 

obinashobi
Автор

wich you're doing well nowadays bro

Mohmehdi.
Автор

A more in-depth description is in the About tab.

notcseliot
visit shbcf.ru