[EMAIL PROTECTED] wrote:

I have a problem where a target defined in an <include>d build file
isn't being found when I make it a dependency of a target in my main
build file, although the file appears to have been <include>d
successfully. The included build file is valid and runs correctly if I
use it alone using the -f command line option.

I've cut the build files down to the bare minimum, and can still
reproduce the problem. The files are shown below:

test.build (a project-specific build file):

<?xml version="1.0" encoding="utf-8" ?> <project xmlns="http://hbosfs.com/DDC/DDCNAntSchema.xsd";
snip

include.build (the included file, initialises department-wide settings):

<?xml version="1.0" encoding="utf-8" ?>
<project
xmlns="http://nant.sf.net/release/0.85-rc3/nantcontribandvault.xsd";
                 name="CommonProperties">


I'm pretty sure the problem is the differend xmlns attributes in the two files. Make them the same or remove them entirely and it should work.

Ian



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to