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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:09:10+00:00 2026-05-23T11:09:10+00:00

I am using ant 1.7, getting following error: build.xml:55: fileset doesn’t support the erroronmissingdir

  • 0

I am using ant 1.7, getting following error:

build.xml:55: fileset doesn’t support the “erroronmissingdir” attribute

what is the alternative attribute for erroronmissingdir( it is in 1.8) in 1.7

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

    The fileset erroronmissingdir attribute is available since Ant 1.7.1. You must be using an earlier release of 1.7.

    The attribute is used to tell the build to silently ignore filesets for which the base dir does not exist at execution time:

    <copy todir="tmp">
      <fileset dir="foo" erroronmissingdir="false">
        <include name="**/*"/>
      </fileset>
    </copy>
    

    If you do not specify erroronmissingdir="false" (or cannot, because your version of Ant does not support it), then the default result is build failure if the dir foo does not exist.

    If you need your build to succeed whether or not the dir exists, and you cannot use the erroronmissingdir attribute, you have some options.

    For example, you could specify the base dir of the fileset to be a known-to-exist parent of your target dir, something like this:

      <copy todir="tmp">
        <fileset dir=".">
          <include name="foo/**/*"/>
        </fileset>
      </copy>
    

    (Note in this case, the copy will now create dir foo in the todir of the copy. You could strip that using a glob mapper.)

    Another alternative would be to execute your conditionally available fileset operations in targets, guarded by a condition, e.g.

    <available property="foo.available" file="foo"/>
    
    <target name="test" if="foo.available">
      <copy todir="tmp">
        <fileset dir="foo">
          <include name="**/*"/>
        </fileset>
      </copy>
    </target>
    

    Output with ant -v will show:

    [available] Unable to find foo to set property foo.available
    test: Skipped because property 'foo.available' not set.
    BUILD SUCCESSFUL Total time: 0 seconds
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Ant to build, I'm getting these errors: Buildfile: ...\build.xml clean: [delete]
When using ANT to build my Java application I keep getting this error. I
Hallo, I cannot compile my project using an ant build script. The error message:
I am running NTLM using Spring Security, I am getting the following error org.springframework.beans.factory.NoSuchBeanDefinitionException:
While building the android app using ant am getting the following exception. Couldn't figure
I can't figure out why I am getting this exception from my ant build.xml
I'm trying to compile a component using ant and keep getting this error message
I'm using ant to build my project, and use the 'svnversion' executable to insert
what's the point of using ant, maven, and buildr? won't the using build in
I'm using ant, ivy and nexus repo manager to build and store my artifacts.

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.