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

  • Home
  • SEARCH
  • 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 136039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:53:08+00:00 2026-05-11T06:53:08+00:00

What is a good strategy for dealing with generated code? One of our projects

  • 0

What is a good strategy for dealing with generated code? One of our projects uses Apache CXF’s wsdl2java tool to generate JAX-WS stubs for a set of wsdls. How should this code be dealt with?

There are two options that I can see:

  1. Generate the stubs once and store them in version control. With this, you don’t have to deal with IDE classpath issues since you have the source files right there in your tree (or nearby). However, you have a lot of extra clutter in version control in addition to the temptation for someone to monkey with the generated code

  2. The stubs are generated every time at build time. This reverses the pros/cons for #1 in that the developer now has to deal run the build script and add the resulting jars to his/her classpath.

We went with #2 because the annoyance of classpath related issues seemed to outweigh the problems detailed in #1.

What are other people doing? Does anyone have any recommendations to streamline this process?

  • 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. 2026-05-11T06:53:09+00:00Added an answer on May 11, 2026 at 6:53 am

    My attitude is that generated code should practically never be stored in version control. There has to be a compelling reason to do it. I typically create an ant task ‘build-for-eclipse’ that builds all generated code. I run that, refresh the directory into which generated code is created, and voilà, I am fit to go.

    The goal is that you have a ‘one-button’ trivial task that any developer can do so they’ll have all the source — generated and not — in their IDE, but that no output of anything is stored in source control. If it’s the output of a generator, then by definition it’s not source. 🙂

    This should safely meet everyone’s needs.

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

Sidebar

Ask A Question

Stats

  • Questions 164k
  • Answers 164k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It depends on your shell/system e.g., for bash on Ubuntu… May 12, 2026 at 12:26 pm
  • Editorial Team
    Editorial Team added an answer Binding of items is handled rather differently than standard binding… May 12, 2026 at 12:26 pm
  • Editorial Team
    Editorial Team added an answer They will have whatever value was in that memory before,… May 12, 2026 at 12:26 pm

Related Questions

I'm developing a procedurally-generated game world in Python. The structure of the world will
The domain of this question is scheduling operations on constrained hardware. The resolution of
I have a similar problem to this post . I need to display up
I'm about to add IMAP email integration to one of our web applications (ASP.NET

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.