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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:42:38+00:00 2026-06-01T03:42:38+00:00

I have an Ant copy task (defined in a Maven script invoked by a

  • 0

I have an Ant copy task (defined in a Maven script invoked by a Jenkins build) that appears to be correct but is not copying correctly. The task is defined as

<copy todir="./Virgo/config" overwrite="true" verbose="true">
    <fileset dir="${config.folder}">
        <include name="*.properties, *.xml" />
    </fileset>
</copy>

When I run the task, I can see that the correct directory is specified, but the copy task doesn’t select any files. Both the source and destination directories exist, and I’m not getting any errors. What I’m seeing is

14:52:40  [INFO] Executing tasks
14:52:40  [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
14:52:40  [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
14:52:40       [echo] Copying files from ../com.x.y.z.container.build/config...
14:52:40  fileset: Setup scanner in dir C:\Jenkins\workspace\container-build\com.x.y.z.container.build\config with patternSet{ includes: [*.properties, *.xml] excludes: [] }
14:52:40  [INFO] Executed tasks

I’ve tried adding files to the source directory, making the source files newer than the ones in the destination, even removing the files in the destination directory. What bothers me is that it appears that the fileset isn’t matching any files, even though the path is correct. Has anyone ever seen this behavior before?

  • 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-01T03:42:39+00:00Added an answer on June 1, 2026 at 3:42 am

    From the PatternSet section in the Ant manual: http://ant.apache.org/manual/Types/patternset.html

    Note that while the includes and excludes attributes accept multiple elements separated by commas or spaces, the nested <include> and <exclude> elements expect their name attribute to hold a single pattern.

    You could change your script to something like

    <copy todir="./Virgo/config" overwrite="true" verbose="true">
        <fileset dir="${config.folder}">
            <include name="*.properties" />
            <include name="*.xml" />
        </fileset>
    </copy>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Ant script that performs a copy operation using the 'copy' task
I have an ant build script that needs to pull files down from a
I have here a Windows distribution server that runs an ANT task to build
I have a ant build script that uses a build.properties file. There I have
The ant replace task is not like copy task which have a overwrite property,
We currently have an ant task that contains something similar to the following: <filelist
We have inherited an ant build file but now need to deploy to both
I have a bunch of ant projects that build plug-ins that all conform to
working on an ANT build file, where I have two macros defined and need
The ANT build script I have does the following: Perform the builds on Windows

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.