Dear friends,

I am facing one problem regarding accessing property from other build file. How can I access or use property of other build file in top level build file.
Here with this mail I am sending sample build files to you.

Regards
Sachin Gedam

--------------------------------------------------------------------------------



root.build
<?xml version="1.0"?>
<project name="rootProject" basedir=".">
    <description>This is root project</description>
    How to access property from other project/ other nant file like I want to access project1.property1 in this build file.
</project>

--------------------------------------------------------------------------------

nant1.build
<?xml version="1.0"?>
<project name="Project1" basedir=".">
    <description>This is project 1</description>
    <!-- this property help you to set your folder -->
    <property name="project1.property1" value="abc" />
    <property name="project1.property2" value="xyz" />
</project>


--------------------------------------------------------------------------------

nant2.build
<?xml version="1.0"?>
<project name="Project2" basedir=".">
    <description>This is project 2</description>
    <!-- this property help you to set your folder -->
    <property name="project2.property1" value="efg" />
    <property name="project2.property2" value="mno" />
</project>

--------------------------------------------------------------------------------







Reply via email to