How to temporarily disable a package in a project from compilation in the Java EE IDE

How can I temporarily disable a package in a project from compiling in the Java EE IDE? There are some source files in the package that I want to prevent from compiling temporarily.

+6
source share
3 answers

If it's an eclipse, try -

Project properties -> Java Build Path -> Source -> Excluded 
+7
source

If it is in another project, just right-click on the project and select "close project", you can easily open it again when you need it. If it is in the same project, go to Properties-> Java Build Path-> Source-> Excluded. You can easily move up and down and set priorities. Hope that helps.

+2
source

To disable a class / package in Eclipse:

  • Right-click the class file / package;
  • Hover over Build Path;
  • Then click "Exclude";
  • Done.

About the same to enable class / package in Eclipse:

  • Right-click the class file / package;
  • Hover over Build Path;
  • Then click "Enable";
  • Done.
0
source

Source: https://habr.com/ru/post/969736/


All Articles