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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:57:34+00:00 2026-06-06T14:57:34+00:00

We have our large build broken into many build files with a master build

  • 0

We have our large build broken into many build files with a master build that calls each of them with an ant target. In the case of unit tests, we want to be able to run all of the tests (so reports are generated) and then fail the entire build on an error or failure at the end. I understand errorProperty and failureProperty (doc) can be used to set a property to true to be referenced at the end of the build, but don’t know how to bubble that back up to the top level build. How can we bubble up a JUnit failure or error from a sub build, but only fail once all tests are done?

  • 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-06T14:57:35+00:00Added an answer on June 6, 2026 at 2:57 pm

    One option is to use AntUnit:

    The <antunit> task drives the tests much like <junit> does for JUnit tests.

    When called on a build file, the task will start a new Ant project for that build file and scan for targets with names that start with “test”. For each such target it then will

    • Execute the target named setUp, if there is one.
    • Execute the target itself – if this target depends on other targets the normal Ant rules apply and the dependent targets are executed first.
    • Execute the target names tearDown, if there is one.

    AntUnit provides a summary for each subproject tested and fails the entire build if one of the subprojects fails.

    In master build.xml

    <target name="test" depends="compile" description="Run tests.">            
      <antunit>
        <plainlistener loglevel="info" />
        <fileset dir="${subprojects.dir}" includes="**/*.xml" />
      </antunit>
    </target>
    

    Subproject build.xml

    <target name="testJUnit">
      <junit printsummary="on" fork="true" forkmode="once" showoutput="true">
        ...
      </junit>
    </target>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a large collection of nAnt scripts that build our various products. They
We have a smallish C++ Linux project that accompanies our large C++/MFC Windows project.
I currently have a large form that gets sent to our payment authorizer (done
Where I work, we have a large codebase of C code that we build
I have a very large C project with many separate C files and headers
We have our own data streaming algorithm that include some metadata+records+fields values. Currently we
We need to have our apps be translated into other languages. This entails renaming
I have imported our SVN repository into Mercurial and now we have entries for
We currently use SQL Server 2005 Enterprise for our fairly large application, that has
We have a very large GWT project that results in a monolithic app about

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.