Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why change xml file in Eclipse project will trigger project auto build

Tags:

xml

eclipse

build

If there is a xml file in a Eclipse java project, and with "build Automatically" enabled, every time I change the xml file, and save, it will trigger Eclipse to build the project, and sometimes it cause much time to finish.

I just thought that xml files are just resource files, or at least it is not code change and should not trigger project build. What's the reason for this, and is there anyway to disable it?

like image 382
moonese Avatar asked Nov 27 '25 20:11

moonese


1 Answers

You are right there xml files are resource files. If the project code depends on the xml listed resource and there is some change in the xml file, auto build gets triggered to verify if the valid resource is available to the project, if not it shows warnings, or errors as the case may be.

To stop auto build in Eclipse: Window > Preferences > General > Workspace > Uncheck the checkbox 'Build automatically'

like image 52
TheCottonSilk Avatar answered Dec 01 '25 00:12

TheCottonSilk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!