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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:03:42+00:00 2026-06-09T10:03:42+00:00

This is my first ant project and I just can’t seem to wrap my

  • 0

This is my first ant project and I just can’t seem to wrap my mind around it. I want to effectively delete the jar and then bring it back after I run my unit tests. I think this can be simulated with the exclude command. I also think that it should be done under the <classpath> tag. Am I correct in my thinking? I also want this jar to still exist, I just want my build to ignore it when i run this particular target. I have tried this:

<junit fork="no" showoutput="false" printsummary="yes" haltonfailure="false">
     <classpath>
         <fileset dir="${lib.dir}">
             <exclude name="**/*xmlparserv2.jar" />
          </fileset>
     </classpath>
</junit>

But to no avail. Can anyone point me in the right direction?

  • 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-09T10:03:43+00:00Added an answer on June 9, 2026 at 10:03 am

    I ended up moving the jar around during my tests. At the beginning, I delete it, and keep a reference at the root of my class path. Then at the end, i just copy it back: e.g.

    <delete file="lib/xmlparserv2.jar"/>
    <!--run lots of tests-->
    <copy todir="lib" file="xmlparserv2.jar"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just setup my first project using apache ant with ivy as dependency
This first bit works: $my_id = 617; $post_id_7 = get_post($my_id); $title = $post_id_7->post_excerpt; echo
i have two arrays like this first array Array ( [0228] => Array (
Using Dozer to map two objects, I have: /** /* This first class uses
How to create in-app step by step instructions? Like this ( first boot android
#include <iostream> using namespace std; // This first class contains a vector and a
this my first shot at this awesome new (to me) programmers site, I hope
Code first: '''this is main structure of my program''' from twisted.web import http from
I am following this example (First comment), How to create a custom ListView with
If I got this XML(first tag is empty) <messages> <message> <name>Kiro</name> <acc></acc> <date>20120506</date> <template>TMPL_ACC_UP</template>

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.