Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse - Disabling compiling of XML files while in Java perspective

When compiling android stuff in eclipse, I am forever annoyed when I hit the "Run" button to compile and run, if I am in a .java file everything works great if im in an .xml file (for android layouts) it compiles the xml file and produces an _out.xml file which screws up the project so that I first have to delete the "out" file then clean my project files.

Any quick answer on how to disable the compiling of xml files?

like image 551
GaryD Avatar asked Dec 14 '10 14:12

GaryD


1 Answers

Samuel has told already a solution. What I prefer is to use the "always run the last project" setting.

Go to window -> preferences -> Run/Debug -> Launching and than activate the option on the bottom labeled: "Always launch the previously launched application"

If you have multiple projects you will sometimes have the issue that you start a project you didn't meant to start. That will occur only once, because after starting the right project, you will stick to that until you switch to the next project (which shouldn't happen very often on a working day).

Its not a perfect solution, but prevents the mentioned issue with, in my experience, the lowest/smallest (whats the right term?) side effects.

like image 88
WarrenFaith Avatar answered Sep 19 '22 21:09

WarrenFaith