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 6346133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:57:33+00:00 2026-05-24T20:57:33+00:00

I have multiple targets, which I’ll call Foo and Bar, in my build file.

  • 0

I have multiple targets, which I’ll call Foo and Bar, in my build file. Assume that Foo is built first. Each target consists of tasks to run javac, jar, and javadoc.

I would like for both javadoc commands to use the same destination directory; however,Bar’s javadoc command produces a package-list file that overwrite’s Foo’s package-list. Additionally, I would like for Bar’s javadoc to be able to link to javadoc generated for Foo, but it can only do so if there is a package-list it can read — which would be at the same location I want it to write.

The reason I don’t create a separate Javadoc target is that I would like to be able to build the javadoc for Foo, whether or not Bar compiles, and vice versa.

(How) can I have multiple javadoc commands write to the same base directory?

  • 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-05-24T20:57:33+00:00Added an answer on May 24, 2026 at 8:57 pm

    I don’t think there is a good way to do this – there is not only the package-list, but also a number of other files which will regenerated (differently) by both javadoc processes:

    • constant-values.html
    • allclasses-frame.html
    • allclasses-noframe.html
    • deprecated-list.html
    • index-all.html (or per-letter index files)
    • overview-frame.html
    • overview-summary.html
    • overview-tree.html
    • serialized-form.html

    These are possible alternatives:

    • Generate separate outputs, but link them to each other (using the -link or -linkoffline option).

    • Generate a common output using the last version of the other project that was known to compile. Use your version control system for this.

    • Occassionally generate a big output with both (i.e. from stable versions).

      Then regenerate only the part for your project (into a new directory), and then copy it (without the files in the top level directory, i.e. overview and the frameset files) over the big output. The index, tree, and class lists in the top-level frameset will not be up-to date, but how often do these change anyway?

    If you want to invest lots of time, you could modify the third option to merge the new top-level files into the existing ones. Good luck.

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

Sidebar

Related Questions

I have a project with multiple targets each of which builds a pretty similar
I have set up multiple targets in a single xml file. I expect all
We have a large amount of C /C++ code that's compiled for multiple targets,
Is there any way to create a project/application which will have multiple targets. Its
In my app I have multiple UIButtons for which I add targets. It turns
We have multiple MFC apps, which use CMutex( false, blah ), where blah allows
I have multiple classes that all derive from a base class, now some of
I have multiple threads (C# application running on IIS) running that all need to
I have multiple branches of a project checked out, each under their own directory
I have multiple logos of various companies in various formats that needs to be

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.