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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:13:59+00:00 2026-05-29T04:13:59+00:00

We have a large amount of apps. They all have a build.xml file located

  • 0

We have a large amount of apps. They all have a build.xml file located in the projects base directory. I am trying to create an ant script that will go through and call a specific target on each of the build.xml files in all the projects.

Here are the issues:

  1. Some of the projects are in deeper directories than others.
  2. Only some of the projects need to be built at a time.

I was trying to use subant + antfile and defining a CSV of file paths in a properties file, but this did not work. Below is what i have and the error i am getting.

If there is a better way to do this or you know what my problem is, please let me know! Thanks!

This is the property defined in a property file. I am wanting the person running the script to add the file paths in here that are relative to the current location of the script they are running.

projects.to.build=

This is the subant task i am trying to use in the main build script.

    <filelist
        id="projectNames"
        dir="${basedir}"
        files="${projects.to.build}"
    />

    <target name="debugAll" description="Builds all the projects listed in the projectNames.properties file.">
        <subant target="debug" antfile="${projects.to.build}">
        </subant>
    </target>

Here is the error i get when i try to run the build script when there are projects defined in the properties file. I am using the relative path. For example: ..\Apps\AnApp1\build.xml,..\Apps\AnApp2\build.xml,..\OtherApps\foo\AnotherApp1\build.xml

"No Build Path Specified" (at my subant task)
  • 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-29T04:14:00+00:00Added an answer on May 29, 2026 at 4:14 am

    You specified the antfile attribute, so ANT was expecting to a single build.xml file.


    The subant documentation describes how you can use a fileset as child parameter.

    Here’s an example:

    <project name="Subant demo" default="run-debug-target">
        <target name="run-debug-target">
            <subant target="debug">
                <fileset dir="." includes="**/build.xml" excludes="build.xml"/>
            </subant>
        </target>
    </project>
    

    Update

    Alternatively a filelist could be used:

    <project name="Dry run" default="run">
        <target name="run">
            <subant target="test">
                <filelist dir="projects" files="one/build.xml,two/build.xml,three/build.xml,four/build.xml"/>
            </subant>
        </target>
    </project>
    

    Processing the following build files:

    • projects/one/build.xml
    • projects/two/build.xml
    • projects/three/build.xml
    • projects/four/build.xml
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large amount of data stored in an XML file, 173 MB
I have to send a large amount of xml data through sockets. Example of
I have a highly formatted file with large amount of data which I used
I have a large amount of files which I am trying to organize into
I have a large amount of data that I am pulling from an xml
I have a large amount of zipped files in a single directory that I
I have a large amount of data in a database. When I attempt to
I have a large amount of data to sort and query, and I can't
I have a program in which I have a large amount of items listed
I need some help in solving this problem. We have a large amount of

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.