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 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

I have an object that can build itself from an XML string, and write
When I build XML up from scratch with XmlDocument , the OuterXml property already
I'm using TinyXML to parse/build XML files. Now, according to the documentation this library
I've got a ant build.xml that uses the <copy> task to copy a variety
I'm trying to call an Antlr task in my Ant build.xml as follows: <path
I'm using IXMLDOM in MSXML 6 to build an XML file in a C++
I am attempting to build a simple method that creates an XML file from
I want to attach an xslt stylesheet to an XML document that I build
I'm running JUnit via Ant using a target something like this: <target name=junit depends=compile>
Google has failed me and I can't find an answer even here on SO

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.