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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:44:16+00:00 2026-05-11T01:44:16+00:00

The build.xml has a test and a build target. The test target obviously depends

  • 0

The build.xml has a test and a build target. The test target obviously depends on the build target.

How can I run the test target only, temporarily skipping the compilation, without modifying the build.xml file ?

I’m asking because the compilation is too long, and kept up-to-date by a continuous integration server ; and I’m chasing after an issue with the unit tests.

  • 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-11T01:44:17+00:00Added an answer on May 11, 2026 at 1:44 am

    No, you can’t skip it without modifying the build file.

    Here is what I do in my projects to solve this issue. For every public target I will create a private target with ‘do-‘ in front of it. The private target has no dependency, and the public target has the ‘do-‘ target as a dependency.

    For example:

    <target name='compile' depends='init, do-compile' description='Compiles all of the source code' />  <target name='do-compile'>         <javac destdir='${classes.dir}' debug='true' encoding='ISO-8859-1'>             <src refid='src.path' />             <include name='*.java' />             <classpath refid='external.libraries.classpath' />         </javac> </target> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Imagine this as the code from build.xml: <project name=test project> <target name=first> <echo>first</echo> </target>
I'm trying to run Junit test from my ant build.xml file. I read here
I have several projects, most of them has test target, which run tests and
Can I run a Grails war under Tomcat in a machine without JDK (Only
I've downloaded jquery-ui to my webapp which has a build.xml for compressing and minifying.
Nothing within the environment has changed, nor has the test suite itself. The XML
I'm trying to build xml for a library I'm making. What I'm trying to
I have a master build file which is calling other build.xml files of different
I'm trying to better integrate Eclipse with my build.xml. My build file calls GNU
Do you have some predefined set of targets which all build.xml files you create

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.