Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7794919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:55:02+00:00 2026-06-01T22:55:02+00:00

I have an Eclipse project, which has two source folders – ‘src’, and ‘test’.

  • 0

I have an Eclipse project, which has two source folders – ‘src’, and ‘test’. I would like the build from both these folders to go into separate output folders.

The reason being, both these folders have a property file called ServiceProviders.properties which has different values for production and test runs of the code.

The problem is, since there is only one output folder where all compiled classes are copied, the properties file in ‘test’ does not get copied, and as a result my test code gets the production version of the properties file. I guess I am trying to simulate the way we can have different classpaths in Maven (and their lookup order).

If this does not work, I will use a JVM property to specify certain values which I can use in the test case. However, it does not seem like an elegant solution.

Using Maven will get this to work, but I cannot use Maven in this project.

Update 1:

Thanks for both the answers. Since they were identical, I have accepted the one which was posted earlier.

Upadte 2:

Even though I could get multiple output folders for corresponding source folders, it did not solve my original problem which was to load a ServiceProviders.properties from test when I run test cases, and the one from src when I run the app on a server from Eclispe. The way I got it to work is by creating a separate jar file with ServiceProviders.properties file from the test folder. In the run configuration of my test cases, I add this jar file and change the order, so it appears as the first dependency for lookup.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T22:55:03+00:00Added an answer on June 1, 2026 at 10:55 pm

    Yes it can, i just have checked that.
    If you go into Properties of your Project, and there to Java Build Path, where you choose your different Source-Folders, there also is an option called “Allow output folders for source folders”, which, if checked adds an editable output-folder for each of your source-folders.
    just select it and click the edit-button and you’re fine

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Eclipse plugin project that has several file resources that I would
I have a maven project in Eclipse which has as a dependency another project
I have a small Java project in eclipse. The project has an src and
I have an Android Eclipse project that I'd like to divide into two sub-projects.
I have a Java project which has this file structure (shown in Eclipse): ProjectName
I have a Dynamic Web Project in Eclipse which has a dependency to another
When I have an Eclipse update site project, a site.xml file is created which
I have an Android project in eclipse IDE which was working. After some imports
I have two CVS projects, which I maintain in Eclipse. I check out first
I have a Django project in Eclipse PyDev. I have a file views.py which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.