DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Dockerizing With a Custom JRE
  • Securing the Software Supply Chain: Chainguard Builds on Foundational Innovation
  • Ensuring Reliable Microservice Deployment With Spring Boot Build Info Maven Plugin
  • Building a MongoDB-Powered RESTful Application With Quarkus and Eclipse JNoSQL

Trending

  • What Is Good Database Design?
  • Vector Database: A Beginner's Guide
  • Understanding Git
  • Snowflake vs. Data Bricks: Compete To Create the Best Cloud Data Platform
  1. DZone
  2. Coding
  3. Frameworks
  4. Exclude Source Files from Build in Eclipse

Exclude Source Files from Build in Eclipse

Erich Styger user avatar by
Erich Styger
·
Sep. 27, 14 · Interview
Like (0)
Save
Tweet
Share
7.78K Views

Join the DZone community and get the full member experience.

Join For Free

sometimes i have source files in my project which i do not want to get compiled (or excluded from build). because as i’m using the ‘managed make’, all source files matching certain extensions (like *.c) are automatically included into the build.

to exclude a file from build, i right-click on it to get to the properties. there i can select a check box to have it excluded from the build:

file excluded from build

file excluded from build

that file gets marked with an icon decorator :

file with icon decorator

file with icon decorator

to include it again into the build, simply remove that check mark again.

another way is to use the ‘exclude from build’ context menu which does the same:

resource configuration to exclude from build

resource configuration to exclude from build

here it offers a dialog with the choice of build configurations where i can set a check mark from which build configuration i want to have it excluded:

exclude from build with build configurations

exclude from build with build configurations

this applies to all sources files to be compiled (usually *.c, *.cpp, *.cxx) and even linker files (*.ld, …). but what about header files????? the answer is that for header files it does not make any sense to exclude them : they are included by the compiler based on the include path (compiler) settings. so you cannot ‘exclude’ a single header file to be included. what you could do is to remove a path from the compiler settings, but then all header files will not be included.

happy excluding :-)


Build (game engine) Eclipse

Published at DZone with permission of Erich Styger, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Dockerizing With a Custom JRE
  • Securing the Software Supply Chain: Chainguard Builds on Foundational Innovation
  • Ensuring Reliable Microservice Deployment With Spring Boot Build Info Maven Plugin
  • Building a MongoDB-Powered RESTful Application With Quarkus and Eclipse JNoSQL

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: