mynkow
mynkow

Reputation: 4548

How to execute nant build file from another build file?

I have a big project here where I created some build files which I use in different scenarios including ccnet. So, I have BF1.build and BF2.build

I just want somewhere in BF1 to call/execute the script from BF2.build

Upvotes: 4

Views: 2896

Answers (1)

mynkow
mynkow

Reputation: 4548

You can delete that. Just found a solution:

<target name="somename" >

<nant>
    <buildfiles>
        <include name="BF2.build" />
    </buildfiles>
</nant>  </target>

NAnt docs

Upvotes: 6

Related Questions