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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:16:08+00:00 2026-05-31T05:16:08+00:00

My build begins by defining 2 properties files, importing another build XML, and then

  • 0

My build begins by defining 2 properties files, importing another build XML, and then commencing with all my other targets & tasks:

build.main.xml:

<project name="${proj.name}" default="assemble" basedir=".">
    <!-- BASIC CONFIGURATIONS -->
    <!-- Define build properties. -->
    <property file="build.main.properties"/>
    <property file="build.app.properties"/>

    <!-- Imports. -->
    <import file="${alt.build.file}"/>

    <!-- Rest of buildscript omitted for brevity... -->
</project>

build.app.properties:

proj.name=test-proj
alt.build.file=build.app.xml

It seems that build.main.xml cannot seem to see/find any properties defined inside build.app.properties; specifically:

  • It cannot resolve ${proj.name}, and when I add the build.main.xml file to the Eclipse Ant view, the name of the build shows up as ${proj.name}
  • It cannot find build.app.xml imported from build.main.xml

What’s going on here? Do ant builds only get to import one properties file or something?!? Where could I start troubleshooting?

Edit: using Eclipse editor my buildscript does not have any red/highlighted syntax errors that might be causing the ant plugin to work incorrectly, etc.

Edit: I am noticing issues with properties defined inside the build.main.properties to. If I try to echo them they don’t get noticed by Ant either…

  • 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-31T05:16:09+00:00Added an answer on May 31, 2026 at 5:16 am

    The Ant project name cannot be itself a property for the reason Jochen mentioned in his comment.

    Try running your script with the -v option to see more logging. I have used a technique very similar to your <import file="${alt.build.file}"/> to branch my script based on the db platform, so there should be no problem with it.

    I wondered if your property files are in the same directory then your build script is.

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

Sidebar

Related Questions

I build a project in C#. From another project I have 5 DLLs. Is
I build a website, that: reads data from a website by HttpWebRequest Sort all
Windows 8 build 8102, Kinect SDK V1.0 And so it begins that I had
I have project configured in Jenkins that polls an SCM and begins a build
We build complicated console-based tools that produce a lot of commentary on the console.
I build a composite widget and would like it to have it's own accelerators
I build a parsing algorithm using NSXMLParser. Im having doubt as to what is
We build a system that handling the billing analyse and what it does it
my build is a 3 step process. run ant to build. transfer war to
I build a css file using PHP which allows me to easily customize the

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.