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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:41:17+00:00 2026-06-17T11:41:17+00:00

I have a javascript project with the following structure: root – /docs /dist /source

  • 0

I have a javascript project with the following structure:

root - 
  /docs
  /dist
  /source
  /resources
  /plugins

Code is in source directory and an ant script is executed to generate compressed files in dist directory. All the files are in source control.

I want to run a directory diff before running the ant script to make sure the list of files in source and dist directories are same. If not, stop execution and tell the user to checkin the needed files before running the build.

I am new to ant and am unable to find any documentation to list differences in files list between 2 directories. Appreciate any inputs.

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

    You could try the following. Prints a list of the files to be checked in before failing:

    <project name="demo" default="build">
    
        <target name="check">
            <apply executable="echo" failonerror="false" resultproperty="files.found">
                <arg line="missing file:"/>
                <srcfile/>
                <fileset id="srcfiles" dir="source" includes="*.txt">
                    <present present="srconly" targetdir="dist"/>
                </fileset>
            </apply>
    
            <fail message="Files need to be checked in" if="files.found"/>
        </target>
    
        <target name="build" depends="check">
            ..
            ..
            ..
        </target>
    
    </project>
    

    Note:

    • Tested on Linux. Probably won’t work on windows.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a NetBeans javascript project with several included paths for plugins. I do
I have a Maven project with JavaScript code. There is a special javascript compiler
I have the following JavaScript code where I'm trying to get some data from
I have the following directory structure: limejs/ closure/ closure/ goog/ base.js projects/ myGame/ myGame.html
Let say I have a project the consists of following parts: Front-end App (JavaScript)
I have the following code in my ASP.NET MVC 3 project: <script src=@Url.Content(~/Scripts/jquery.validate.min.js) type=text/javascript></script>
I made a jsf project and have the following example from http://docs.openlayers.org/library/introduction.html but as
The following is a Javascript class that I have created. (function(window){ function Project(name,description){ this.name
i have a JavaScript project (using jquery), inside it i draw a canvas by
I am working on a javascript project which involves parsing xml data. I have

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.