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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:01:53+00:00 2026-06-11T11:01:53+00:00

I think this may be easiest explained by an example, so here goes: <target

  • 0

I think this may be easiest explained by an example, so here goes:

<target name="test">
    <fileset id="fileset" dir="target">
        <include name="*"/>
    </fileset>
    <echo>${toString:fileset}</echo>
    <touch file="target/test"/>
    <echo>${toString:fileset}</echo>
</target>

Outputs:

test:
     [echo] 
    [touch] Creating target/test
     [echo] test

What I ideally want is to have the fileset stay the same so I can have a before/after set (in order to get a changed set using <difference>, so if you know of a way to skip right to that…).

I’ve tried using <filelist> instead, but I can’t get this correctly populated and compared in the <difference> task (they’re also hard to debug since I can’t seem to output their contents). I also tried using <modified/> to select files in the fileset, but it doesn’t seem to work at all and always returns nothing.

Even if there is an alternative approach I would appreciate a better understanding of what ANT is doing in the example above and why.

  • 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-11T11:01:55+00:00Added an answer on June 11, 2026 at 11:01 am

    The path selector is evaluated on the fly. When a file is added, it will reflect in the set when you use it.

    You may able to evaluate and keep it in variable using pathconvert. Then this can be converted back to filest using pathtofilest

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think this may be relatively straight forward. I have a rewrite rule that
Instead of posting in Angular mailing list, I think this may be more of
I think this question may end up being a bit subjective so I'm marking
Hopefully this question isn't as subjective as I think it may be. I have
I am new at JavaScript so I think my problem may be simple. This
I think this is easily explained by looking at code, so I'm posting a
I think this may be my most embarrassing question to date. Why does this
I think this may be a very simple question, but I am only just
I think this may be a browser dependent question- Suppose I have 10 Javascript
I think this may be more SQL than Django but Django is what I'm

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.