Hi all,
It's been a while. Here's my problem:
From the main buildfile, I iterate through a file and pull the csproj file. Then, I generate the buildfile using XSLT and the csproj file and call the generated build file. Below is an excerpt from the generated build file that is not working and I don't know why. ( ${project.settings} is the location of the project specific variables file with a .include extension)
<?xml version="1.0" encoding="utf-8"?>
<project default="default" name="DeskingAppLauncher">
<include buildfile="${project.settings}" />
<ifnot test="${property::exists('project.ndoc.run')}">
<property name="project.ndoc.run" value="true" />
</ifnot>
Now, the include file contains the following text:
<project xmlns="http://nant.sf.net/schemas/nant-0.85.win32.net-1.0.xsd">
<property name="project.ndoc.run" value="true" />
<property name="keyfile.path" value="RR.snk" />
<property name="BuildStart.recipients" value="[EMAIL PROTECTED]" />
<proporty name="BuildFailed.recipients" value="[EMAIL PROTECTED]" />
</project>
So why, when I include the file, do I get the following build output?
BUILD FAILED
c:\temp\~ConfigMgmt\Desking\ApplicationLauncher\Builds\latest\ApplicationLauncher.build(313,10):
Property evaluation failed.
_expression_: ${keyfile.path}
^^^^^^^^^^^^:
NAnt.Core.BuildException: c:\temp\~ConfigMgmt\Desking\ApplicationLauncher\Builds\latest\ApplicationLauncher.build
(313,10):
Property evaluation failed.
_expression_: ${keyfile.path}
^^^^^^^^^^^^ ---> Property 'keyfile.path' has not been set.:
NAnt.Core.BuildException: Property 'keyfile.path' has not been set.
at NAnt.Core.ExpressionEvaluator.GetPropertyValue(String propertyName) in C:\DOCUME~1\drieseng\LOCALS~1\Temp\t
mp76E.tmp\src\NAnt.Core\ExpressionEvaluator.cs:line 141
at NAnt.Core.ExpressionEvaluator.EvaluateProperty(String propertyName) in C:\DOCUME~1\drieseng\LOCALS~1\Temp\t
mp76E.tmp\src\NAnt.Core\ExpressionEvaluator.cs:line 57
at NAnt.Core.ExpressionEvalBase.ParseValue() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\Ex
pressionEvalBase.cs:line 597
--- End of inner exception stack trace ---
at NAnt.Core.PropertyDictionary.EvaluateEmbeddedExpressions(String input, Location location, Hashtable state,
Stack visiting) in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\PropertyDictionary.cs:line 380
at NAnt.Core.PropertyDictionary.ExpandProperties(String input, Location location, Hashtable state, Stack visit
ing) in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\PropertyDictionary.cs:line 285
at NAnt.Core.PropertyDictionary.ExpandProperties(String input, Location location) in C:\DOCUME~1\drieseng\LOCA
LS~1\Temp\tmp76E.tmp\src\NAnt.Core\PropertyDictionary.cs:line 253
at NAnt.Core.AttributeConfigurator.InitializeAttribute(PropertyInfo propertyInfo) in C:\DOCUME~1\drieseng\LOCA
LS~1\Temp\tmp76E.tmp\src\NAnt.Core\Element.cs:line 678
at NAnt.Core.AttributeConfigurator.Initialize() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core
\Element.cs:line 553
at NAnt.Core.Element.InitializeXml(XmlNode elementNode, PropertyDictionary properties, FrameworkInfo framework
) in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\Element.cs:line 287
at NAnt.Core.Element.Initialize(XmlNode elementNode, PropertyDictionary properties, FrameworkInfo framework) i
n C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\Element.cs:line 269
at NAnt.Core.Element.Initialize(XmlNode elementNode) in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt
.Core\Element.cs:line 192
at NAnt.Core.AttributeConfigurator.InitializeBuildElement(XmlNode childNode, Element buildElement, Type elemen
tType) in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\Element.cs:line 1128
at NAnt.Core.AttributeConfigurator.InitializeBuildElementCollection(PropertyInfo propertyInfo) in C:\DOCUME~1\
drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\Element.cs:line 945
at NAnt.Core.AttributeConfigurator.Initialize() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core
\Element.cs:line 557
at NAnt.Core.Element.InitializeXml(XmlNode elementNode, PropertyDictionary properties, FrameworkInfo framework
) in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\Element.cs:line 287
at NAnt.Core.Element.Initialize(XmlNode elementNode, PropertyDictionary properties, FrameworkInfo framework) i
n C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\Element.cs:line 269
at NAnt.Core.Element.Initialize(XmlNode elementNode) in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt
.Core\Element.cs:line 192
at NAnt.Core.Project.CreateTask(XmlNode taskNode, Target target) in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.
tmp\src\NAnt.Core\Project.cs:line 998
at NAnt.Core.Target.Execute() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\Target.cs:line 24
7
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in C:\DOCUME~1\drieseng\LOCALS~1\Te
mp\tmp76E.tmp\src\NAnt.Core\Project.cs:line 873
at NAnt.Core.Project.Execute(String targetName) in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core
\Project.cs:line 843
at NAnt.Core.Tasks.CallTask.ExecuteTask() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\Tasks
\CallTask.cs:line 110
at NAnt.Core.Task.Execute() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\Task.cs:line 176
at NAnt.Core.TaskContainer.ExecuteChildTasks() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\
TaskContainer.cs:line 103
at NAnt.Core.TaskContainer.ExecuteTask() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\TaskCo
ntainer.cs:line 73
at NAnt.Core.Tasks.IfTask.ExecuteTask() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\Tasks\I
fTask.cs:line 335
at NAnt.Core.Task.Execute() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\Task.cs:line 176
at NAnt.Core.Target.Execute() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\Target.cs:line 24
9
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in C:\DOCUME~1\drieseng\LOCALS~1\Te
mp\tmp76E.tmp\src\NAnt.Core\Project.cs:line 873
at NAnt.Core.Project.Execute() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\Project.cs:line
830
at NAnt.Core.Project.Run() in C:\DOCUME~1\drieseng\LOCALS~1\Temp\tmp76E.tmp\src\NAnt.Core\Project.cs:line 898
Total time: 1.2 seconds.
Thanks,
Evan A. Bonnett
Reynolds & Reynolds, IT
ERA Integrated Desking Development
937-485-8577
Confidentiality Statement:
this message is confidential and may contain confidential information. it is intended only for the individual[s] named herein. If this message is being sent from a member of the legal department, it may also be legally privileged. if you are not the named addressee[s] you must delete this email immediately. do not disseminate, distribute or copy.