ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nilesh Sharma" <sharma.nil...@gmail.com>
Subject Problem with import using property file
Date Mon, 07 Jan 2008 23:46:22 GMT
Guys,

I am facing a l,ittle problem with the ant build. Here is the problem
description:
I am having three folders:

A

->B

                    -> C

folder A contains B and B contains C

A also contains:

base.properties

build-common.xml

build-common.xml calls buildA.properties inside and able to access all the
properties defined in property file


C contains:

          buildC.xml

"buildC.xml" imports "build-common.xml" but I am not able to access the
properties defiend in the  base.properties file.

*base.properties*

devenv.home=C:/dev

*build-common.xml*

<project name="build-common" default="Init" basedir=".">

      <property file="${basedir}/build.properties" />

      <property name="devenv.home" location="${devenv.home}" />

          <echo message="${devenv.home}"/> *(this works fine)*

*buildC.xml*

<project name="buildC " default="dist">

<property name="root.dir" location="../.." />

      <import file="${root.dir}/build-common.xml"/>

          <echo message="${devenv.home}"/> *(Problem)*
Any Idea?

Thanks


Nilesh Sharma

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message