I have an Android project, which I'm working on in Eclipse. There are no special requirements, however I do have a couple of files in the project which I do not want/need to include into the final build, yet I do want to keep them where they are. They are all java source files and are all in the same package. There are no files in that package, which I do need to include - so I can safely skip that whole package from build.
So, to my question: is there a way in Eclipse to exclude a package (or an individual file for that matter) from the build when the android app is built?
Thanks in advance.
In Visual Studio, right-click on the file to be excluded from build, choose Properties, Configuration Properties -> General -> Excluded From Build -> Yes -> OK. In Eclipse, right-click on the file to be excluded from build, choose Properties, C/C++ Build -> Excluded from build -> OK.
To exclude specified files using the standard Eclipse preferences: Select Window | Preferences. The Preferences dialog box appears. Click the plus sign next to Team and select Ignore Resources.
In Eclipse right click on a file (or package) in the Package Explorer. There should be a Build Path > Exclude option
Go to eclipse File->new->Other->Faceted Project->Give project name and add it to a working set if u want
Eclipse will not build that project or working set
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With