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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:33:32+00:00 2026-05-11T11:33:32+00:00

The documentation for ant’s task states: The performance of the depend task is dependent

  • 0

The documentation for ant’s task states:

The performance of the depend task is dependent on a number of factors such as class relationship complexity and how many class files are out of date. The decision about whether it is cheaper to just recompile all classes or to use the depend task will depend on the size of your project and how interrelated your classes are.

I suspect that using the task before calling may speed up the build for the project I work on, and possibly prevent the need for clean builds in certain cases. However, the ant documentation is very cryptic for this task and I could use some clarification. I work with a large code base containing about 16k classes in src and 4k classes in testsrc. We build a core jar file containing about a quarter of the classes, followed by about 15 other jars that depend on the core.jar and not each other. I would just try it out, but our build.xml requires a lot of clean-up before I can make this change, and I want to understand the task better anyway.

  • 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-11T11:33:33+00:00Added an answer on May 11, 2026 at 11:33 am

    You need to be very careful with this. There are some things, like declaring constants like this:

    public static final int FOO = 1; 

    that the depends on task (and javac itself) don’t always pick up on (I am not 100% certain that the one above messes with Ant, but I know some things do).

    I did use the depend task a long time ago and quickly removed it as I kept needed to do full builds to ensure that things were sane.

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

Sidebar

Ask A Question

Stats

  • Questions 91k
  • Answers 91k
  • 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 Check out User32.GetWindowPlacement May 11, 2026 at 6:13 pm
  • Editorial Team
    Editorial Team added an answer Your problem is that the or - | - you… May 11, 2026 at 6:13 pm
  • Editorial Team
    Editorial Team added an answer Assuming you have a value of type IEnumerable<Item>, you can… May 11, 2026 at 6:13 pm

Related Questions

The documentation for ant's task states: The performance of the depend task is dependent
I am involved in a project in which public API documentation is a clear
We currently use a hand-rolled setup and configuration script and a hand-rolled continuous integration
We have an ant build script for a project we're developing for a PDA.
I want to use the FTP task in ant, and I have found the

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.