Nant call parent Tasks in nested build files

Ales Vojacek <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nant.user
Message-ID <[email protected]>
Hi All,
I have two build files
one which I will execute with nant
<project ......>
                <target name= “def”>
                                <nant buildfile=”second.build”/>
                </target>

                <target name=”copysmt”>
                </target>

</project>

 second nested ”second.build”

 <project ......>
                <target name= “def”>
                                <call target=”copysmt”/>
                </target>
</project>

 Nant will end with en error, that Target ' copysmt ' does not exist in
this project.
I does not help, when I will try to give same name to projects in both
build files.
How can I do that.
Do I need use include task and then call instead of nant task to execute
this scenario?
Thx for your help.

A.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)

iEYEARECAAYFAkqXKNsACgkQRrjcrN3fICSMvgCffM3KI2KdyhqVff00K5CcMRPP
spQAn2RBVXKUBWdTw3LVqGYYUjah65RE
=EjWL
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.