Can someone help me with
this? I am trying to include a file with property values and get the
following message:
Buildfile: file:///z:/test.build.xml
BUILD FAILED
z:\test.build.xml(7,3):
Could not include build file
Z:\generic.include.xmlThere are multiple root elements. Line 4, position
2.
Try 'nant -help' for more
information
File = test.build.xml
=>
<?xml
version="1.0"?>
<!-- <include
buildfile="Z:\generic.include.xml"/> -->
<project name="test"
default="clean">
<include buildfile="Z:\generic.include.xml"/>
<target name="clean" description="Remove all files and
dir">
<delete dir="${BuildDrive}\${BuildPath}\${ProjectPath}\${ProjectName}"
verbose="${Verbose}" failonerror="false"/>
<echo message="Removed
[${BuildDrive}\${BuildPath}\${ProjectPath}\${ProjectName}]"
if="${Debug}"/>
</target>
</project>
EndFile
File = generic.include.xml
=>
<if
propertyexists="OtherBuildDrive">
<property
name="BuildDrive"
value="${OtherBuildDrive}"/>
</if>
<ifnot
propertyexists="OtherBuildDrive">
<property
name="BuildDrive"
value="Z:"/>
</ifnot>
<if
propertyexists="OtherBuildPath">
<property
name="BuildPath"
value="${OtherBuildPath}"/>
</if>
<ifnot
propertyexists="OtherBuildPath">
<property
name="BuildPath"
value="user"/>
</ifnot>
<if
propertyexists="OtherBuildArea">
<property
name="BuildArea"
value="${OtherBuildArea}"/>
</if>
<ifnot
propertyexists="OtherBuildArea">
<property
name="BuildArea"
value="prod"/>
</ifnot>
<if
propertyexists="OtherBuildType">
<property
name="BuildType"
value="${OtherBuildType}"/>
</if>
<ifnot
propertyexists="OtherBuildType">
<property
name="BuildType"
value="release"/>
</ifnot>
<if
propertyexists="OtherTag">
<property
name="Tag"
value="${OtherTag}"/>
</if>
<ifnot
propertyexists="OtherTag">
<property
name="Tag"
value="INSTALL_V97"/>
</ifnot>
<property
name="SCMUserName"
value="procmon"/>
EndFile
Edward M Overton, III
CPS IT
Core
(410) 230-1123
Yams=EMO
Aim=eover3
Ym=ejoverton